.resume-auth-gate {
  display: none;
}

html.resume-auth-pending body {
  min-height: 100vh;
}

html.resume-auth-pending .site-card {
  display: none !important;
}

html.resume-auth-pending .resume-auth-gate {
  align-items: center;
  color: #182018;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  text-align: center;
}

html.resume-auth-pending .resume-auth-gate img {
  height: auto;
  max-width: min(240px, 70vw);
}

.resume-page {
  width: min(100% - 64px, 1180px);
  min-height: auto;
  margin: 0 auto;
  display: block;
  padding: clamp(28px, 4svh, 54px) 0 clamp(132px, 17svh, 190px);
}

.resume-shell {
  width: 100%;
  height: auto;
  max-height: none;
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, auto);
  gap: clamp(18px, 2.6vw, 30px);
  padding: clamp(18px, 3vw, 34px);
  background:
    radial-gradient(circle at 88% 10%, rgba(141, 255, 0, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(32, 32, 41, 0.08);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(38, 48, 28, 0.1);
  backdrop-filter: blur(18px);
}

.resume-progress {
  display: grid;
  gap: 10px;
  padding: 0 0 clamp(14px, 2vw, 20px);
}

.resume-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #696a73;
  font-size: 0.86rem;
}

.resume-progress-track {
  height: 10px;
  overflow: hidden;
  background: rgba(32, 32, 41, 0.09);
  border: 1px solid rgba(32, 32, 41, 0.04);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(32, 32, 41, 0.08);
}

.resume-progress-bar {
  width: var(--resume-progress, 0%);
  height: 100%;
  display: block;
  background:
    linear-gradient(90deg, #80ff00, #63b600),
    var(--color-accent);
  border-radius: inherit;
  box-shadow: 0 0 18px rgba(99, 182, 0, 0.34);
  transition: width 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.resume-card {
  display: none;
  min-height: clamp(420px, 58svh, 660px);
  height: auto;
  overflow: visible;
  align-content: start;
  gap: clamp(20px, 3vw, 34px);
  padding: clamp(8px, 1vw, 16px) clamp(8px, 1vw, 16px)
    clamp(104px, 13svh, 142px);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.resume-card.is-active {
  display: grid;
  animation: resume-rise 260ms ease both;
}

.resume-head {
  display: grid;
  gap: 12px;
}

.resume-head h1,
.resume-head h2 {
  max-width: 820px;
  margin: 0;
  color: var(--title-color);
  font-family: var(--title-font);
  font-size: calc(clamp(2.1rem, 4vw, 4.4rem) * var(--title-size-scale));
  font-weight: var(--title-weight);
  line-height: 1.03;
  letter-spacing: var(--title-letter-spacing);
}

.resume-head p {
  max-width: 820px;
  margin: 0;
  color: var(--subtitle-color);
  font-family: var(--subtitle-font);
  font-size: calc(clamp(1rem, 1.4vw, 1.2rem) * var(--subtitle-size-scale));
  font-weight: var(--subtitle-weight);
  line-height: 1.55;
  letter-spacing: var(--subtitle-letter-spacing);
}

.resume-choice-grid,
.resume-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.resume-choice {
  display: grid;
  gap: 14px;
  min-height: 200px;
  padding: 22px;
  text-align: left;
  background: #ffffff;
  border: 1px solid rgba(32, 32, 41, 0.08);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(38, 48, 28, 0.08);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.resume-choice:hover,
.resume-choice:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(99, 182, 0, 0.32);
  box-shadow: 0 24px 56px rgba(38, 48, 28, 0.12);
}

.resume-choice.is-loading {
  pointer-events: none;
  opacity: 0.72;
}

.resume-choice-icon,
.resume-field-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #315b00;
  background: rgba(141, 255, 0, 0.22);
  border: 1px solid rgba(99, 182, 0, 0.16);
  border-radius: 999px;
}

.resume-choice-icon svg,
.resume-field-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resume-choice strong,
.resume-review strong {
  color: #202029;
  font-size: 1.1rem;
  font-weight: 600;
}

.resume-choice span,
.resume-review span {
  color: #696a73;
  font-size: 0.92rem;
  line-height: 1.45;
}

.resume-upload-modal[hidden] {
  display: none;
}

.resume-upload-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
}

.resume-upload-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 24, 29, 0.34);
  border: 0;
  backdrop-filter: blur(14px);
}

.resume-upload-card {
  position: relative;
  width: min(100%, 580px);
  max-height: min(90svh, 720px);
  overflow-y: auto;
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 30px);
  background:
    radial-gradient(circle at 82% 10%, rgba(141, 255, 0, 0.22), transparent 36%),
    rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  box-shadow: 0 34px 90px rgba(11, 13, 18, 0.28);
  animation: resume-modal-rise 220ms ease both;
}

.resume-upload-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #202029;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(32, 32, 41, 0.1);
  border-radius: 999px;
}

.resume-upload-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.resume-upload-head {
  display: grid;
  gap: 10px;
  padding-right: 46px;
}

.resume-upload-head h2 {
  margin: 0;
  color: var(--title-color);
  font-family: var(--title-font);
  font-size: calc(clamp(1.8rem, 4vw, 2.6rem) * var(--title-size-scale));
  font-weight: var(--title-weight);
  line-height: 1.08;
  letter-spacing: var(--title-letter-spacing);
}

.resume-upload-head p {
  margin: 0;
  color: var(--subtitle-color);
  font-family: var(--subtitle-font);
  font-size: calc(clamp(0.98rem, 1.4vw, 1.1rem) * var(--subtitle-size-scale));
  line-height: 1.5;
}

.resume-upload-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #315b00;
  background: rgba(141, 255, 0, 0.28);
  border: 1px solid rgba(99, 182, 0, 0.16);
  border-radius: 999px;
}

.resume-upload-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resume-upload-drop {
  display: grid;
  gap: 6px;
  min-height: 108px;
  place-items: center;
  padding: 20px;
  color: #252630;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(141, 255, 0, 0.16), transparent),
    rgba(255, 255, 255, 0.78);
  border: 1px dashed rgba(99, 182, 0, 0.44);
  border-radius: 8px;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.resume-upload-drop:hover,
.resume-upload-drop:focus-within {
  transform: translateY(-1px);
  border-color: rgba(99, 182, 0, 0.72);
  box-shadow: 0 18px 42px rgba(99, 182, 0, 0.14);
}

.resume-upload-drop span {
  font-size: 1rem;
  font-weight: 600;
}

.resume-upload-drop small {
  color: #696a73;
  font-size: 0.86rem;
}

.resume-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.resume-upload-loading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  padding: 14px;
  color: #202029;
  background: rgba(141, 255, 0, 0.12);
  border: 1px solid rgba(99, 182, 0, 0.18);
  border-radius: 8px;
}

.resume-upload-loading[hidden] {
  display: none;
}

.resume-upload-loading strong {
  font-size: 0.98rem;
  font-weight: 600;
}

.resume-upload-loading span:last-child {
  grid-column: 2;
  color: #696a73;
  font-size: 0.9rem;
}

.resume-spinner {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(99, 182, 0, 0.22);
  border-top-color: var(--color-accent-dark);
  border-radius: 999px;
  animation: resume-spin 800ms linear infinite;
}

.resume-upload-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.resume-upload-status,
.resume-validation-message {
  min-height: 1.35em;
  margin: 0;
  color: #696a73;
  font-size: 0.9rem;
  line-height: 1.45;
}

.resume-upload-status.is-error,
.resume-validation-message.is-error {
  color: #c93232;
}

.resume-upload-status.is-success {
  color: #315b00;
}

.resume-validation-message.is-success {
  color: #315b00;
}

.resume-upload-modal.is-loading .resume-upload-drop {
  pointer-events: none;
  opacity: 0.62;
}

.resume-upload-modal.is-loading .resume-upload-close,
.resume-upload-modal.is-loading .resume-upload-backdrop {
  cursor: wait;
}

body.resume-upload-open {
  overflow: hidden;
}

.resume-form-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.resume-repeat-group {
  display: grid;
  gap: 14px;
}

.resume-repeat-item {
  display: grid;
  gap: 16px;
  padding: clamp(14px, 2vw, 18px);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(32, 32, 41, 0.08);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(38, 48, 28, 0.06);
}

.resume-repeat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.resume-repeat-head strong {
  color: #202029;
  font-size: 0.95rem;
  font-weight: 600;
}

.resume-repeat-remove,
.resume-add-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  color: #202029;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(32, 32, 41, 0.12);
  border-radius: 999px;
  font-weight: 600;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.resume-repeat-remove {
  min-height: 36px;
  color: #696a73;
  font-size: 0.85rem;
}

.resume-repeat-remove[hidden] {
  display: none;
}

.resume-add-button {
  justify-self: start;
  color: #315b00;
  background: rgba(141, 255, 0, 0.16);
  border-color: rgba(99, 182, 0, 0.18);
}

.resume-repeat-remove:hover,
.resume-repeat-remove:focus-visible,
.resume-add-button:hover,
.resume-add-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(99, 182, 0, 0.38);
}

.resume-field {
  grid-column: span 6;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.resume-field.span-12 {
  grid-column: span 12;
}

.resume-field.span-4 {
  grid-column: span 4;
}

.resume-field.span-3 {
  grid-column: span 3;
}

.resume-photo-field {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(32, 32, 41, 0.1);
  border-radius: 8px;
}

.resume-photo-field.is-missing {
  border-color: #ff0000;
  box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.1);
}

.resume-photo-copy {
  display: grid;
  gap: 6px;
}

.resume-photo-copy p {
  max-width: 54ch;
  margin: 0;
  color: #666874;
  line-height: 1.45;
}

.resume-photo-control {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: min(100%, 330px);
}

.resume-photo-preview {
  width: 76px;
  aspect-ratio: 1;
  overflow: hidden;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #315b00;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.85), transparent 30%),
    linear-gradient(135deg, rgba(141, 255, 0, 0.72), rgba(99, 182, 0, 0.38));
  border: 1px solid rgba(99, 182, 0, 0.2);
  border-radius: 8px;
}

.resume-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resume-photo-preview span {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.resume-photo-actions {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.resume-photo-button {
  width: max-content;
  white-space: nowrap;
}

.resume-photo-actions small {
  color: #666874;
  font-size: 0.78rem;
}

.resume-photo-actions small.is-error {
  color: #ff0000;
  font-weight: 700;
}

.resume-photo-actions small.is-success {
  color: #315b00;
  font-weight: 700;
}

.resume-photo-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.resume-field label,
.resume-toggle-title {
  color: #252630;
  font-size: 0.88rem;
  font-weight: 500;
}

.resume-input,
.resume-select,
.resume-textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  color: #1e1f29;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(32, 32, 41, 0.12);
  border-radius: 8px;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.resume-textarea {
  min-height: 112px;
  padding-block: 14px;
  resize: vertical;
}

.resume-input:focus,
.resume-select:focus,
.resume-textarea:focus {
  border-color: rgba(99, 182, 0, 0.68);
  box-shadow: 0 0 0 4px rgba(141, 255, 0, 0.18);
}

.resume-field.is-missing label,
.resume-field.is-missing .resume-toggle-title {
  color: #ff0000;
}

.resume-field.is-missing .resume-input,
.resume-field.is-missing .resume-select,
.resume-field.is-missing .resume-textarea {
  border-color: #ff0000;
  box-shadow: 0 0 0 4px rgba(255, 0, 0, 0.1);
}

.resume-field.is-missing .resume-input::placeholder,
.resume-field.is-missing .resume-textarea::placeholder {
  color: #ff0000;
  opacity: 1;
}

.resume-toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.resume-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 14px;
  color: #555762;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(32, 32, 41, 0.1);
  border-radius: 999px;
}

.resume-chip input {
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent-dark);
}

.resume-skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.resume-skill-cloud .resume-chip {
  background: rgba(141, 255, 0, 0.1);
}

.resume-review {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(32, 32, 41, 0.08);
  border-radius: 8px;
}

.resume-current-chip {
  width: max-content;
  min-height: 50px;
  align-self: end;
  border-radius: 8px;
}

.resume-cv-preview {
  min-width: 0;
}

.resume-cv-paper {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3vw, 34px);
  padding: clamp(24px, 3.5vw, 42px);
  color: #292d33;
  background: #fff;
  border: 1px solid #dfe4db;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(38, 48, 28, 0.08);
  font-family: Montserrat, Arial, Helvetica, sans-serif;
}

.resume-cv-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #dce3da;
}

.resume-cv-masthead img {
  width: clamp(155px, 21vw, 205px);
  max-width: 55%;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.resume-cv-masthead span {
  color: #707b76;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.resume-cv-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(16px, 2.4vw, 26px);
  align-items: start;
  padding-bottom: 24px;
  border-bottom: 1px solid #dce3da;
}

.resume-cv-header.is-without-photo {
  grid-template-columns: minmax(0, 1fr);
}

.resume-cv-photo {
  grid-column: 2;
  grid-row: 1;
  width: clamp(78px, 9vw, 104px);
  aspect-ratio: 1;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #315b00;
  background: #f2f8eb;
  border: 1px solid #d7e8c6;
  border-radius: 7px;
}

.resume-cv-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resume-cv-photo span {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
}

.resume-cv-title {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  gap: 22px;
  min-width: 0;
}

.resume-cv-title h3 {
  margin: 0;
  padding-left: 18px;
  color: #292d33;
  border-left: 4px solid #84f000;
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.resume-cv-title p,
.resume-cv-title li span,
.resume-cv-address span {
  margin: 0;
  color: #444b50;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.resume-cv-title p {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 1.05rem;
  font-weight: 700;
}

.resume-cv-title p::before {
  content: "OBJETIVO";
  color: #68746c;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.resume-cv-title ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resume-cv-title li {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-size: 0.95rem;
}

.resume-cv-title li small,
.resume-cv-address small {
  color: #68746c;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.resume-cv-address {
  display: grid;
  gap: 5px;
}

.resume-cv-section {
  display: grid;
  gap: 14px;
}

.resume-cv-section h4 {
  margin: 0 0 2px;
  padding-bottom: 12px;
  color: #292d33;
  border-bottom: 1px solid #84f000;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.resume-cv-section p,
.resume-cv-list article {
  margin: 0;
  color: #505960;
  line-height: 1.6;
}

.resume-cv-list {
  display: grid;
  gap: 18px;
}

.resume-cv-list article {
  display: grid;
  gap: 4px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  break-inside: avoid;
  page-break-inside: avoid;
}

.resume-cv-list article strong {
  color: #292d33;
  font-weight: 800;
}

.resume-cv-list article span {
  display: block;
  color: #505960;
  overflow-wrap: anywhere;
}

.resume-cv-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-top: 22px;
  padding-top: 16px;
  color: #707b76;
  border-top: 1px solid #dce3da;
  font-size: 0.78rem;
  line-height: 1.55;
}

.resume-cv-footer span:last-child {
  letter-spacing: 0.02em;
}

.resume-actions {
  position: fixed;
  right: auto;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 30;
  width: min(calc(100% - 64px), 1180px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 0;
  padding: clamp(10px, 1.3vw, 14px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(32, 32, 41, 0.1);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(38, 48, 28, 0.14);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.resume-action-left,
.resume-action-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.resume-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  color: #202029;
  background: #ffffff;
  border: 1px solid rgba(32, 32, 41, 0.14);
  border-radius: 999px;
  font-weight: 600;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.resume-button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resume-button.primary {
  color: #11121a;
  background: var(--color-accent);
  border-color: transparent;
  box-shadow: 0 18px 42px rgba(99, 182, 0, 0.2);
}

.resume-button:hover,
.resume-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(99, 182, 0, 0.38);
}

.resume-button.primary:hover,
.resume-button.primary:focus-visible {
  color: #ffffff;
  background: var(--color-accent-dark);
}

.resume-button[disabled] {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.resume-button[hidden] {
  display: none;
}

@keyframes resume-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes resume-modal-rise {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes resume-spin {
  to {
    transform: rotate(360deg);
  }
}

@page {
  size: A4;
  margin: 14mm;
}

@media print {
  body.is-resume-print {
    background: #ffffff !important;
  }

  body.is-resume-print * {
    visibility: hidden !important;
  }

  body.is-resume-print [data-dashboard-resume-summary],
  body.is-resume-print [data-dashboard-resume-summary] * {
    visibility: visible !important;
  }

  body.is-resume-print [data-dashboard-resume-summary] {
    position: absolute;
    inset: 0;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  body.is-resume-print .resume-cv-paper {
    min-height: 268mm;
    gap: 6mm;
    padding: 0;
    color: #202029;
    background: #ffffff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.is-resume-print .resume-cv-header {
    grid-template-columns: minmax(0, 1fr) 26mm;
    gap: 6mm;
    align-items: start;
    padding-bottom: 6mm;
  }

  body.is-resume-print .resume-cv-header.is-without-photo {
    grid-template-columns: minmax(0, 1fr);
  }

  body.is-resume-print .resume-cv-photo {
    width: 26mm;
    box-shadow: none;
  }

  body.is-resume-print .resume-cv-title h3 {
    font-size: 27pt;
  }

  body.is-resume-print .resume-cv-title li,
  body.is-resume-print .resume-cv-list article {
    background: #ffffff;
  }

  body.is-resume-print .resume-cv-section,
  body.is-resume-print .resume-cv-list article {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.is-resume-print .resume-cv-footer {
    margin-top: auto;
  }
}

@media (max-width: 980px) {
  .resume-page {
    width: min(100% - 40px, 920px);
  }
}

@media (max-width: 760px) {
  .resume-page {
    width: min(100% - 32px, 560px);
    padding: 18px 0 128px;
  }

  .resume-shell {
    padding: 12px;
  }

  .resume-card {
    min-height: auto;
    padding: 18px 8px 108px;
  }

  .resume-head {
    text-align: center;
    justify-items: center;
  }

  .resume-head h1,
  .resume-head h2 {
    font-size: calc(clamp(2rem, 11vw, 3rem) * var(--title-size-scale));
  }

  .resume-choice-grid,
  .resume-review-grid {
    grid-template-columns: 1fr;
  }

  .resume-upload-modal {
    padding: 14px;
  }

  .resume-upload-card {
    max-height: calc(100svh - 28px);
    gap: 14px;
  }

  .resume-upload-head {
    padding-right: 38px;
  }

  .resume-upload-actions {
    grid-template-columns: 1fr;
  }

  .resume-repeat-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .resume-repeat-remove,
  .resume-add-button {
    width: 100%;
  }

  .resume-field,
  .resume-field.span-6,
  .resume-field.span-4,
  .resume-field.span-3 {
    grid-column: span 12;
  }

  .resume-photo-field {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .resume-photo-control {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .resume-photo-actions {
    width: min(100%, 260px);
  }

  .resume-photo-button {
    width: 100%;
  }

  .resume-current-chip {
    width: 100%;
    justify-content: center;
  }

  .resume-cv-paper {
    padding: 18px;
  }

  .resume-cv-header {
    grid-template-columns: minmax(0, 1fr) 72px;
    justify-items: stretch;
    text-align: left;
  }

  .resume-cv-photo,
  .resume-cv-title {
    grid-row: 1;
  }

  .resume-cv-photo {
    grid-column: 2;
    width: 72px;
  }

  .resume-cv-title {
    grid-column: 1;
  }

  .resume-cv-title ul {
    grid-template-columns: 1fr;
  }

  .resume-cv-masthead img {
    width: 150px;
  }

  .resume-cv-masthead span {
    font-size: 0.6rem;
    letter-spacing: 0.16em;
  }

  .resume-actions {
    bottom: max(12px, env(safe-area-inset-bottom));
    width: min(calc(100% - 28px), 560px);
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 10px;
    padding: 10px;
  }

  .resume-action-left,
  .resume-action-right {
    width: 100%;
  }

  .resume-button {
    width: 100%;
    min-height: 46px;
    padding-inline: 14px;
  }
}
