.resume-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 2rem 5% 3rem;
  font-size: 1.05rem;
}

@media (min-width: 48rem) {
  .resume-page {
    padding-left: 10%;
    padding-right: 10%;
  }
}

.resume-shell {
  width: 100%;
  max-width: var(--page-max-width);
  margin: 0 auto;
}

html.export-pdf,
html.export-pdf body {
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
}

html.export-pdf .resume-page {
  padding: 0;
  min-height: auto;
}

html.export-pdf .resume-shell {
  width: 210mm;
  max-width: 210mm;
}

html.export-pdf .resume-sheet {
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 10mm;
  background: none;
}

html.export-pdf .resume-updated {
  margin-top: 0.8rem;
  padding-top: 0.45rem;
}

html.export-pdf .resume-updated p {
  font-size: 0.72rem;
}

html.export-pdf .resume-entry,
html.export-pdf .resume-section--card,
html.export-pdf .resume-meta,
html.export-pdf .resume-oss-card,
html.export-pdf .resume-section--card .resume-list--grid li {
  background: none;
}

.resume-toolbar {
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.resume-toolbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  min-width: 0;
}

.language-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
  width: 6rem;
  padding: 0.25rem;
  border: 1px solid var(--divider);
  border-radius: 999px;
  background: var(--surface-soft);
}

.language-switcher .resume-toolbar__link {
  width: 100%;
  min-width: 0;
  min-height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.language-switcher .resume-toolbar__link[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.theme-dark .language-switcher .resume-toolbar__link[aria-current="page"] {
  color: #203049;
}

.resume-toolbar__link,
.resume-toolbar__button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--divider);
  background: var(--surface-soft);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: none;
}

.resume-toolbar__link--back {
  width: auto;
  justify-self: start;
  white-space: nowrap;
}

.resume-toolbar__button--primary {
  background: #f3c7c7;
  border-color: #df9b9b;
  color: #6f3640;
}

.theme-dark .resume-toolbar__button--primary {
  background: #7a4d57;
  border-color: #b5808a;
  color: #fff0f2;
}

.resume-sheet {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 1.6rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px) saturate(1.08);
  padding: 1.45rem;
}

html.export-pdf .no-print,
html.export-pdf .landscape-scene__sun {
  display: none !important;
}

.resume-sheet a {
  color: var(--link-color);
}

.resume-header {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--divider);
}

.resume-header h1 {
  margin-bottom: 0.55rem;
  font-size: 2.1rem;
}

.resume-kicker {
  margin-bottom: 0.5rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  font-weight: 700;
}

.resume-role,
.resume-meta p,
.resume-entry__company,
.resume-entry__meta {
  color: var(--text-muted);
}

.resume-role {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.resume-meta {
  align-self: end;
  padding: 0.8rem 0.9rem;
  border-radius: 1rem;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.12);
}

.theme-dark .resume-meta {
  background: rgba(var(--accent-rgb), 0.1);
}

.resume-meta p {
  margin-bottom: 0.28rem;
  font-size: 0.88rem;
}

.resume-meta__item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.resume-meta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  flex: 0 0 auto;
  font-size: 0.92rem;
  line-height: 1;
}


.resume-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.resume-highlight {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.58rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  color: var(--text-main);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.theme-dark .resume-highlight {
  background: rgba(var(--accent-rgb), 0.12);
  border-color: rgba(var(--accent-rgb), 0.22);
}

.resume-section {
  margin-top: 1rem;
}

.resume-updated {
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--divider);
}

.resume-updated p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.resume-section--card {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.1), rgba(255, 255, 255, 0.02));
}

.theme-dark .resume-section--card {
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.12), rgba(255, 255, 255, 0.03));
}

.resume-section h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--text-main);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.resume-section h2::before {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 0 0.25rem rgba(var(--accent-rgb), 0.12);
}

.resume-entry__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 0.65rem;
}

.resume-entry h3 {
  margin-bottom: 0.2rem;
  font-size: 1rem;
  color: var(--text-main);
}

.resume-entry--compact {
  margin-top: 0.9rem;
}

.resume-entry--grouped {
  padding-left: 0.95rem;
}

.resume-entry--grouped::before {
  display: none;
}

.resume-timeline {
  position: relative;
  padding-left: 1rem;
  border-left: 2px solid rgba(var(--accent-rgb), 0.3);
}

.theme-dark .resume-timeline {
  border-left-color: rgba(var(--accent-rgb), 0.25);
}

.resume-timeline__role {
  position: relative;
  padding-bottom: 0.5rem;
}

.resume-timeline__role:last-child {
  padding-bottom: 0;
}

.resume-timeline__role::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 0.45rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(calc(-50% + 1px));
  box-shadow: 0 0 0 3px var(--surface);
}

.resume-timeline__role + .resume-timeline__role {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
}

.resume-entry {
  position: relative;
  margin-top: 1rem;
  padding: 0.8rem 0.95rem 0.75rem 1.2rem;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.1), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(var(--accent-rgb), 0.12);
}

.theme-dark .resume-entry {
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.12), rgba(255, 255, 255, 0.03));
}

.resume-entry:first-of-type {
  margin-top: 0;
}

.resume-entry::before {
  display: none;
}

.resume-entry__company {
  font-size: 0.92rem;
  margin-bottom: 0;
}

.resume-entry__meta {
  white-space: nowrap;
  text-align: right;
  font-size: 0.88rem;
  padding-top: 0.12rem;
}

.resume-tech {
  margin-top: 0.7rem;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.resume-tech strong,
.resume-section strong,
.resume-list strong,
.resume-meta strong {
  color: var(--text-main);
  font-weight: 700;
}

.resume-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.resume-list li {
  position: relative;
  padding-left: 0.95rem;
  margin-bottom: 0.38rem;
  color: var(--text-main);
  line-height: 1.45;
}

.resume-list li::before {
	content: "•";
	position: absolute;
	left: 0;
	top: 0.02rem;
	color: var(--accent);
	font-weight: 700;
	font-size: 0.95em;
}

.resume-list--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: 0.15rem;
}

.resume-section--card .resume-list--grid li {
  padding: 0.44rem 0.55rem 0.44rem 1.15rem;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.22);
}

.resume-section--card .resume-list--grid li::before {
  top: 0.48rem;
}

.theme-dark .resume-section--card .resume-list--grid li {
  background: rgba(57, 68, 89, 0.42);
}

.resume-oss-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.resume-oss-card {
  padding: 0.8rem 0.95rem;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.1), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(var(--accent-rgb), 0.12);
}

.theme-dark .resume-oss-card {
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.12), rgba(255, 255, 255, 0.03));
}

.resume-oss-card h3 {
  margin-bottom: 0.3rem;
  font-size: 1rem;
  color: var(--text-main);
}

.resume-oss-card p {
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.resume-oss-card p:last-child {
  margin-bottom: 0;
}

.resume-oss-card .resume-list li {
  font-size: 0.88rem;
}

.resume-oss-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.resume-star-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.resume-section p {
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.resume-section p:last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .resume-page {
    padding: 1rem 0.75rem 2rem;
  }

  .language-switcher {
    width: 100%;
  }

  .resume-toolbar,
  .resume-toolbar__actions,
  .resume-header,
  .resume-list--grid {
    display: block;
  }

  .resume-entry__header {
    display: block;
  }

  .resume-toolbar__link,
  .resume-toolbar__button,
  .resume-toolbar .theme-toggle {
    width: 100%;
    margin-bottom: 0.75rem;
  }

  .resume-meta {
    margin-top: 0.85rem;
  }

  .resume-sheet {
    padding: 1.25rem;
  }

  .resume-highlights {
    margin-bottom: 0.25rem;
  }

  .resume-oss-split {
    grid-template-columns: 1fr;
  }

  .resume-section--card,
  .resume-entry {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .resume-entry::before {
    left: 0.25rem;
  }

  .resume-entry__meta {
    margin-top: 0.45rem;
    text-align: left;
  }
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  html,
  body {
    background: #fbf3ec !important;
    color: #46384c !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .no-print,
  .landscape-scene__sun {
    display: none !important;
  }

  .resume-page {
    padding: 0;
    font-size: 0.84rem;
  }

  .resume-sheet {
    box-shadow: none;
    border: 1px solid rgba(var(--accent-rgb), 0.18);
    background: rgba(255, 249, 246, 0.94) !important;
    padding: 0;
  }

  .resume-header h1 {
    font-size: 1.56rem;
    margin-bottom: 0.35rem;
  }

  .resume-role {
    font-size: 0.82rem;
  }

  .resume-meta p,
  .resume-entry__meta,
  .resume-tech {
    font-size: 0.72rem;
  }

  .resume-entry h3 {
    font-size: 0.86rem;
  }

  .resume-section h2 {
    font-size: 0.78rem;
    margin-bottom: 0.42rem;
  }

  .resume-section p,
  .resume-list li {
    font-size: 0.72rem;
    line-height: 1.24;
  }

  .resume-section {
    margin-top: 0.52rem;
  }

  .resume-updated {
    margin-top: 0.62rem;
    padding-top: 0.38rem;
    break-inside: avoid;
  }

  .resume-updated p {
    font-size: 0.68rem;
    color: #46384c !important;
  }

  .resume-section--card {
    padding: 0.48rem 0.62rem;
  }

  .resume-entry {
    margin-top: 0.48rem;
    padding: 0.42rem 0.56rem 0.42rem 0.78rem;
  }

  .resume-list {
    padding-left: 0;
  }

  .resume-list li {
    margin-bottom: 0.16rem;
    padding-left: 0.72rem;
  }

  .resume-entry__header {
    margin-bottom: 0.3rem;
  }

  .resume-highlights {
    gap: 0.25rem;
    margin-top: 0.45rem;
  }

  .resume-highlight {
    padding: 0.22rem 0.38rem;
    font-size: 0.62rem;
  }

  .resume-entry::before {
    left: 0.3rem;
    width: 0.12rem;
  }

  .resume-section--card .resume-list--grid li {
    padding: 0.28rem 0.34rem 0.28rem 0.82rem;
  }

  .resume-header,
  .resume-role,
  .resume-meta p,
  .resume-entry__company,
  .resume-entry__meta,
  .resume-list li,
  .resume-section p,
  .resume-tech {
    color: #46384c !important;
  }

  a {
    color: #914f69 !important;
    text-decoration: none;
  }

  .resume-entry,
  .resume-section {
    break-inside: avoid;
  }

  .resume-meta,
  .resume-header,
  .resume-highlights,
  .resume-entry__header,
  .resume-tech {
    break-inside: avoid;
  }
}
