:root {
  --bg: #f5f1eb;
  --panel: #ffffff;
  --ink: #1b1b1d;
  --muted: #5f6066;
  --accent: #ff6b3d;
  --accent-2: #2d6cdf;
  --shadow: 0 25px 60px rgba(12, 14, 24, 0.15);
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --site-accent: #ff7a52;
  --site-accent-2: #7c88ff;
  --site-bg-start: #f7efe7;
  --site-bg-end: #eef2ff;
  --site-glow-1: rgba(255, 160, 122, 0.45);
  --site-glow-2: rgba(124, 136, 255, 0.26);
  --site-panel: rgba(255, 255, 255, 0.82);
  --site-panel-border: rgba(29, 31, 36, 0.08);
  --site-shadow: rgba(124, 136, 255, 0.18);
  --site-soft: rgba(124, 136, 255, 0.1);
}

* {
  box-sizing: border-box;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  transition: background 0.45s ease, color 0.3s ease;
}

.site-main {
  min-height: 100vh;
}

body.admin-bar .ambient-background {
  top: 32px;
  height: calc(100% - 32px);
}

h1, h2, h3 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  margin: 0 0 12px;
}

p {
  margin: 0 0 12px;
  color: var(--muted);
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.ambient-background {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top left, var(--site-glow-1), transparent 55%),
    radial-gradient(circle at top right, var(--site-glow-2), transparent 50%),
    linear-gradient(120deg, var(--site-bg-start) 30%, var(--site-bg-end) 100%);
  z-index: -1;
  transition: background 0.45s ease;
}

.page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 10px 80px;
  position: relative;
}

.page::before {
  content: "";
  position: absolute;
  inset: 120px 6% auto;
  height: 240px;
  background: radial-gradient(circle at center, var(--site-soft), transparent 70%);
  pointer-events: none;
  z-index: -1;
  filter: blur(20px);
  transition: background 0.45s ease;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.lang-switcher {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(29, 31, 36, 0.16);
  background: var(--site-panel);
  border: 1px solid var(--site-panel-border);
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.3s ease, background 0.3s ease;
}

.lang-btn:hover {
  box-shadow: 0 14px 28px var(--site-shadow);
}

.lang-btn:focus-visible {
  outline: 2px solid rgba(29, 31, 36, 0.35);
  outline-offset: 2px;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--site-panel-border);
  border-radius: 16px;
  box-shadow: 0 24px 50px var(--site-shadow);
  padding: 8px;
  min-width: 200px;
  max-height: 320px;
  overflow-y: auto;
  display: grid;
  gap: 6px;
  z-index: 30;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: none;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.lang-item:hover {
  background: #f3f3f6;
}

.lang-item.active {
  background: linear-gradient(135deg, var(--site-accent), var(--site-accent-2));
  color: #fff;
}

.lang-flag {
  font-size: 16px;
}

:root[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

.hero {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  margin-bottom: 56px;
}

.hero-copy {
  animation: rise 0.8s ease both;
}

.hero-visual {
  animation: rise 0.9s ease both;
  animation-delay: 0.1s;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.lede {
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.primary-btn,
.ghost-btn,
.small-btn {
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--site-accent), var(--site-accent-2));
  color: #fff;
  box-shadow: 0 14px 28px var(--site-shadow);
}

.primary-btn:hover,
.ghost-btn:hover,
.small-btn:hover {
  transform: translateY(-2px);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--site-panel-border);
  color: #1d1f24;
  backdrop-filter: blur(10px);
}

.small-btn {
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.72);
  color: #1d1f24;
  font-size: 12px;
  border: 1px solid var(--site-panel-border);
  box-shadow: 0 10px 22px rgba(20, 24, 36, 0.04);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), var(--site-panel));
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--site-panel-border);
  box-shadow: 0 24px 60px var(--site-shadow);
  width: min(320px, 100%);
  transition: box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--muted);
}

.hero-card-header strong {
  font-size: 16px;
  color: var(--site-accent);
}

.hero-mini {
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.6)),
    linear-gradient(135deg, var(--site-bg-start), var(--site-bg-end));
  border-radius: 20px;
  padding: 18px;
  height: 160px;
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.hero-mini span {
  display: block;
  height: 10px;
  width: 80%;
  background: rgba(31, 34, 41, 0.1);
  border-radius: 999px;
}

.hero-mini span:nth-child(2) {
  width: 60%;
}

.hero-mini span:nth-child(3) {
  width: 70%;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mini-grid div {
  height: 20px;
  border-radius: 8px;
  background: rgba(31, 34, 41, 0.08);
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  letter-spacing: -0.03em;
}

.template-gallery {
  margin-bottom: 64px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.5));
  border: 1px solid var(--site-panel-border);
  box-shadow: 0 24px 70px rgba(20, 24, 36, 0.08);
  border-radius: 30px;
  padding: 28px;
  backdrop-filter: blur(10px);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.template-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.tab-btn {
  border: 1px solid rgba(29, 31, 36, 0.15);
  background: #ffffff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--site-accent), var(--site-accent-2));
  color: #ffffff;
  box-shadow: 0 12px 24px var(--site-shadow);
}

.template-panels {
  display: grid;
  gap: 16px;
}

.template-panel {
  display: none;
}

.template-panel.active {
  display: block;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.template-card {
  text-align: left;
  border: none;
  background: var(--panel);
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 18px 36px rgba(22, 24, 32, 0.08);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.3s ease;
  animation: rise 0.7s ease both;
}

.template-card:nth-child(1) { animation-delay: 0.05s; }
.template-card:nth-child(2) { animation-delay: 0.1s; }
.template-card:nth-child(3) { animation-delay: 0.15s; }
.template-card:nth-child(4) { animation-delay: 0.2s; }
.template-card:nth-child(5) { animation-delay: 0.25s; }
.template-card:nth-child(6) { animation-delay: 0.3s; }

.template-card.active {
  outline: none;
  border-color: var(--site-accent);
  transform: translateY(-4px);
  box-shadow: 0 22px 40px var(--site-shadow);
}

.template-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(22, 24, 32, 0.14);
}

.template-mini {
  border-radius: 14px;
  height: 120px;
  padding: 12px;
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.template-mini .mini-header {
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.template-mini .mini-body span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

.template-meta h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.template-mini.aurora {
  background: linear-gradient(130deg, #ffdbc7, #f6f5ff);
}

.template-mini.atelier {
  background: linear-gradient(140deg, #f7efe2, #e8d7cc);
}

.template-mini.chronicle {
  background: linear-gradient(140deg, #e9eef5, #f5f5f5);
}

.template-mini.orbit {
  background: linear-gradient(140deg, #e5f7ff, #d7e1ff);
}

.template-mini.mosaic {
  background: linear-gradient(140deg, #ffe6ea, #ffeccb);
}

.template-mini.solstice {
  background: linear-gradient(140deg, #e8f0e9, #f1f6f2);
}

.template-mini.nova {
  background: linear-gradient(140deg, #ffe5d1, #e8fff7);
}

.template-mini.harbor {
  background: linear-gradient(140deg, #dbe6ff, #f0f5ff);
}

.template-mini.canyon {
  background: linear-gradient(140deg, #ffd8b0, #fff2e2);
}

.template-mini.zenith {
  background: linear-gradient(140deg, #e9f0ff, #f7f7ff);
}

.template-mini.vellum {
  background: linear-gradient(140deg, #f6efe7, #fdfaf5);
}

.template-mini.pulse {
  background: linear-gradient(140deg, #ffd1e1, #ffe8f0);
}

.template-mini.ledger {
  background: linear-gradient(140deg, #e3efe9, #f4f8f6);
}

.template-mini.verdant {
  background: linear-gradient(140deg, #d8f3dc, #f2fbf3);
}

.template-mini.noir {
  background: linear-gradient(140deg, #2f2f35, #4a4a57);
}

.template-mini.bloom {
  background: linear-gradient(140deg, #ffe4ec, #fff6d9);
}

.builder {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.builder-form {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.88));
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--site-panel-border);
  box-shadow: 0 24px 60px rgba(20, 24, 36, 0.1);
  animation: rise 0.8s ease both;
  width: 100%;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.form-group {
  margin-bottom: 24px;
}

.form-group h3 {
  margin-bottom: 16px;
  font-size: 18px;
}

.form-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.accordion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

.accordion-toggle h3 {
  margin: 0;
}

.accordion-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(29, 31, 36, 0.08);
  font-size: 18px;
  line-height: 1;
}

.accordion-content {
  display: grid;
  gap: 12px;
}

.form-group.accordion.collapsed .accordion-content {
  display: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

label.full {
  margin-top: 12px;
}

input,
textarea {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(29, 31, 36, 0.12);
  font-size: 14px;
  font-family: "Source Sans 3", system-ui, sans-serif;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--site-accent);
  box-shadow: 0 0 0 4px var(--site-soft);
}

textarea {
  resize: vertical;
}

.photo-upload {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px dashed var(--site-panel-border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.68));
}

.photo-upload input[type="file"] {
  padding: 8px;
  background: transparent;
  border: 0;
}

.photo-upload input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--site-accent), var(--site-accent-2));
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.form-entries {
  display: grid;
  gap: 12px;
}

.entry-card {
  border: 1px solid rgba(29, 31, 36, 0.12);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  background: #fbfbfd;
}

.entry-card label.full {
  grid-column: 1 / -1;
}

.entry-card .entry-actions {
  display: flex;
  justify-content: flex-end;
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.builder-preview {
  display: grid;
  gap: 14px;
  animation: glowIn 0.9s ease both;
  animation-delay: 0.1s;
  align-content: start;
}

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.preview-toolbar > span {
  color: var(--site-accent);
  font-weight: 700;
}

.preview-actions {
  display: flex;
  gap: 8px;
}

.resume-wrapper {
  padding: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.4));
  border-radius: var(--radius-lg);
  border: 1px solid var(--site-panel-border);
  overflow: hidden;
  display: flex;
  justify-content: center;
  box-shadow: 0 24px 60px rgba(20, 24, 36, 0.09);
  transition: border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.builder-preview .resume-sheet {
  transform: scale(0.92);
  transform-origin: top center;
}

.resume-sheet {
  width: 794px;
  height: 1123px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper, #ffffff);
  box-shadow: 0 20px 40px rgba(17, 20, 28, 0.15);
  position: relative;
}

.resume-sheet::before,
.resume-sheet::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.2;
}

.resume-sheet::before {
  width: 260px;
  height: 260px;
  background: var(--accent, #ff6b3d);
  top: -120px;
  right: -120px;
}

.resume-sheet::after {
  width: 200px;
  height: 200px;
  background: var(--accent-2, #2d6cdf);
  bottom: -80px;
  left: -80px;
}

.resume-surface {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 40px 44px;
  display: grid;
  gap: 24px;
}

.resume-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: start;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.6), rgba(29, 31, 36, 0.1));
  border: 1px solid rgba(29, 31, 36, 0.1);
  background-size: cover;
  background-position: center;
  display: none;
  box-shadow: 0 16px 36px rgba(20, 24, 36, 0.14);
  transition: transform 0.25s ease, border-radius 0.25s ease, box-shadow 0.25s ease, width 0.25s ease, height 0.25s ease;
}

.avatar.active {
  display: block;
}

.identity h1 {
  font-size: 32px;
  margin-bottom: 4px;
}

.surname {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 8px;
}

.identity .title {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 10px;
}

.identity .summary {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.name-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.pronoun {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(29, 31, 36, 0.08);
  color: var(--muted);
}

.contact-card {
  display: grid;
  gap: 10px;
  font-size: 12px;
}

.contact-item {
  display: grid;
  gap: 2px;
}

.contact-item .label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
  color: var(--muted);
}

.contact-item.hidden {
  display: none;
}

.hidden {
  display: none;
}

.resume-body {
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: 24px;
}

.resume-body.single-column {
  grid-template-columns: 1fr;
}

.resume-aside.hidden {
  display: none;
}

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

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

.resume-body h2 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(29, 31, 36, 0.08);
  color: var(--ink);
}

.bullet-list {
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-size: 12px;
}

.item-list {
  display: grid;
  gap: 12px;
}

.item {
  display: grid;
  gap: 4px;
}

.item-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}

.item-title {
  font-weight: 600;
}

.item-meta,
.item-dates {
  color: var(--muted);
  font-size: 12px;
}

.item-summary {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.preview-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.preview-download {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.payment-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.payment-modal {
  position: fixed;
  inset: 0;
  background: rgba(16, 18, 24, 0.45);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 50;
}

.payment-modal.hidden {
  display: none;
}

.payment-card {
  width: min(520px, 100%);
  background: #ffffff;
  border-radius: 24px;
  padding: 24px;
  border: 1px solid var(--site-panel-border);
  box-shadow: 0 24px 60px rgba(17, 20, 28, 0.18);
  display: grid;
  gap: 14px;
  animation: glowIn 0.4s ease both;
}

.payment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.payment-header h3 {
  margin: 4px 0 0;
}

.icon-btn {
  border: none;
  background: #f3f3f5;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.payment-price {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.payment-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.payment-form {
  display: grid;
  gap: 10px;
}

.payment-form input {
  width: 100%;
}

.payment-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.payment-status {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.payment-status.success {
  color: #1b5e20;
}

.payment-status.error {
  color: #b00020;
}

.payment-checkout {
  border-top: 1px solid rgba(29, 31, 36, 0.1);
  padding-top: 12px;
}

.grid-overlay .resume-sheet {
  background-image: linear-gradient(rgba(29, 31, 36, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 31, 36, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

.compact .resume-surface {
  padding: 32px 36px;
}

.compact .resume-body {
  gap: 18px;
}

.compact .item-summary {
  font-size: 11px;
}

body[data-site-theme="aurora"] { --site-accent: #ff7a52; --site-accent-2: #7c88ff; --site-bg-start: #f7efe7; --site-bg-end: #eef2ff; --site-glow-1: rgba(255, 160, 122, 0.45); --site-glow-2: rgba(124, 136, 255, 0.26); --site-panel: rgba(255, 250, 246, 0.82); --site-panel-border: rgba(255, 122, 82, 0.16); --site-shadow: rgba(124, 136, 255, 0.18); --site-soft: rgba(124, 136, 255, 0.12); }
body[data-site-theme="atelier"] { --site-accent: #c7795d; --site-accent-2: #30343c; --site-bg-start: #f7efe5; --site-bg-end: #f2e7df; --site-glow-1: rgba(199, 121, 93, 0.36); --site-glow-2: rgba(48, 52, 60, 0.18); --site-panel: rgba(255, 248, 243, 0.84); --site-panel-border: rgba(199, 121, 93, 0.18); --site-shadow: rgba(89, 65, 54, 0.18); --site-soft: rgba(199, 121, 93, 0.1); }
body[data-site-theme="mosaic"] { --site-accent: #ff6a8b; --site-accent-2: #ffbd59; --site-bg-start: #fff0f4; --site-bg-end: #fff4df; --site-glow-1: rgba(255, 106, 139, 0.36); --site-glow-2: rgba(255, 189, 89, 0.22); --site-panel: rgba(255, 249, 244, 0.84); --site-panel-border: rgba(255, 106, 139, 0.18); --site-shadow: rgba(255, 106, 139, 0.18); --site-soft: rgba(255, 106, 139, 0.1); }
body[data-site-theme="bloom"] { --site-accent: #f26a8d; --site-accent-2: #ffd166; --site-bg-start: #fff5f9; --site-bg-end: #fff9e8; --site-glow-1: rgba(242, 106, 141, 0.32); --site-glow-2: rgba(255, 209, 102, 0.2); --site-panel: rgba(255, 251, 252, 0.84); --site-panel-border: rgba(242, 106, 141, 0.16); --site-shadow: rgba(242, 106, 141, 0.16); --site-soft: rgba(242, 106, 141, 0.1); }
body[data-site-theme="chronicle"] { --site-accent: #1c3faa; --site-accent-2: #a4c4ff; --site-bg-start: #eef4ff; --site-bg-end: #f7fbff; --site-glow-1: rgba(28, 63, 170, 0.24); --site-glow-2: rgba(164, 196, 255, 0.22); --site-panel: rgba(248, 251, 255, 0.84); --site-panel-border: rgba(28, 63, 170, 0.14); --site-shadow: rgba(28, 63, 170, 0.14); --site-soft: rgba(28, 63, 170, 0.08); }
body[data-site-theme="ledger"] { --site-accent: #1b4332; --site-accent-2: #52b788; --site-bg-start: #eff7f1; --site-bg-end: #f8fbf8; --site-glow-1: rgba(27, 67, 50, 0.22); --site-glow-2: rgba(82, 183, 136, 0.18); --site-panel: rgba(248, 252, 249, 0.84); --site-panel-border: rgba(27, 67, 50, 0.14); --site-shadow: rgba(27, 67, 50, 0.14); --site-soft: rgba(82, 183, 136, 0.1); }
body[data-site-theme="harbor"] { --site-accent: #1f6feb; --site-accent-2: #7fb3ff; --site-bg-start: #eef5ff; --site-bg-end: #f7fbff; --site-glow-1: rgba(31, 111, 235, 0.24); --site-glow-2: rgba(127, 179, 255, 0.2); --site-panel: rgba(248, 251, 255, 0.84); --site-panel-border: rgba(31, 111, 235, 0.14); --site-shadow: rgba(31, 111, 235, 0.14); --site-soft: rgba(31, 111, 235, 0.08); }
body[data-site-theme="solstice"] { --site-accent: #2f5f3d; --site-accent-2: #a0caa3; --site-bg-start: #eef5ef; --site-bg-end: #f7fbf8; --site-glow-1: rgba(47, 95, 61, 0.22); --site-glow-2: rgba(160, 202, 163, 0.2); --site-panel: rgba(248, 252, 248, 0.84); --site-panel-border: rgba(47, 95, 61, 0.14); --site-shadow: rgba(47, 95, 61, 0.14); --site-soft: rgba(47, 95, 61, 0.08); }
body[data-site-theme="orbit"] { --site-accent: #45b6f7; --site-accent-2: #5b4fff; --site-bg-start: #eef8ff; --site-bg-end: #f2f0ff; --site-glow-1: rgba(69, 182, 247, 0.24); --site-glow-2: rgba(91, 79, 255, 0.2); --site-panel: rgba(248, 251, 255, 0.84); --site-panel-border: rgba(69, 182, 247, 0.14); --site-shadow: rgba(91, 79, 255, 0.14); --site-soft: rgba(69, 182, 247, 0.08); }
body[data-site-theme="nova"] { --site-accent: #ff9f1c; --site-accent-2: #2ec4b6; --site-bg-start: #fff7ea; --site-bg-end: #eefdf9; --site-glow-1: rgba(255, 159, 28, 0.28); --site-glow-2: rgba(46, 196, 182, 0.18); --site-panel: rgba(255, 252, 246, 0.84); --site-panel-border: rgba(255, 159, 28, 0.16); --site-shadow: rgba(255, 159, 28, 0.14); --site-soft: rgba(46, 196, 182, 0.1); }
body[data-site-theme="pulse"] { --site-accent: #ff2d7a; --site-accent-2: #ff8fab; --site-bg-start: #fff2f8; --site-bg-end: #fff7fb; --site-glow-1: rgba(255, 45, 122, 0.26); --site-glow-2: rgba(255, 143, 171, 0.18); --site-panel: rgba(255, 250, 252, 0.84); --site-panel-border: rgba(255, 45, 122, 0.16); --site-shadow: rgba(255, 45, 122, 0.16); --site-soft: rgba(255, 45, 122, 0.1); }
body[data-site-theme="zenith"] { --site-accent: #1d3557; --site-accent-2: #a8dadc; --site-bg-start: #f0f5ff; --site-bg-end: #f6fbfb; --site-glow-1: rgba(29, 53, 87, 0.2); --site-glow-2: rgba(168, 218, 220, 0.18); --site-panel: rgba(248, 251, 255, 0.84); --site-panel-border: rgba(29, 53, 87, 0.14); --site-shadow: rgba(29, 53, 87, 0.14); --site-soft: rgba(168, 218, 220, 0.12); }
body[data-site-theme="vellum"] { --site-accent: #8d5b4c; --site-accent-2: #d9b08c; --site-bg-start: #fbf4eb; --site-bg-end: #fffaf5; --site-glow-1: rgba(141, 91, 76, 0.24); --site-glow-2: rgba(217, 176, 140, 0.18); --site-panel: rgba(255, 251, 246, 0.86); --site-panel-border: rgba(141, 91, 76, 0.14); --site-shadow: rgba(141, 91, 76, 0.14); --site-soft: rgba(217, 176, 140, 0.12); }
body[data-site-theme="canyon"] { --site-accent: #d35a2a; --site-accent-2: #f2b26e; --site-bg-start: #fff1e4; --site-bg-end: #fff8ef; --site-glow-1: rgba(211, 90, 42, 0.3); --site-glow-2: rgba(242, 178, 110, 0.2); --site-panel: rgba(255, 249, 242, 0.84); --site-panel-border: rgba(211, 90, 42, 0.16); --site-shadow: rgba(211, 90, 42, 0.16); --site-soft: rgba(242, 178, 110, 0.12); }
body[data-site-theme="noir"] { --site-accent: #111827; --site-accent-2: #6b7280; --site-bg-start: #eceef1; --site-bg-end: #f6f7f9; --site-glow-1: rgba(17, 24, 39, 0.24); --site-glow-2: rgba(107, 114, 128, 0.18); --site-panel: rgba(251, 252, 253, 0.82); --site-panel-border: rgba(17, 24, 39, 0.14); --site-shadow: rgba(17, 24, 39, 0.16); --site-soft: rgba(107, 114, 128, 0.1); }
body[data-site-theme="verdant"] { --site-accent: #2f6f4e; --site-accent-2: #95d5b2; --site-bg-start: #eef8f0; --site-bg-end: #f6fcf7; --site-glow-1: rgba(47, 111, 78, 0.22); --site-glow-2: rgba(149, 213, 178, 0.18); --site-panel: rgba(248, 252, 249, 0.84); --site-panel-border: rgba(47, 111, 78, 0.14); --site-shadow: rgba(47, 111, 78, 0.14); --site-soft: rgba(149, 213, 178, 0.12); }

.template-aurora .avatar.active { width: 98px; height: 122px; border-radius: 28px; }
.template-atelier .avatar.active { width: 124px; height: 124px; border-radius: 999px; justify-self: center; border: 6px solid rgba(255, 255, 255, 0.78); }
.template-mosaic .avatar.active { width: 108px; height: 132px; border-radius: 24px; transform: rotate(-3deg); }
.template-bloom .avatar.active { width: 104px; height: 104px; border-radius: 30px 30px 30px 8px; }
.template-chronicle .avatar.active { width: 110px; height: 110px; border-radius: 999px; border: 4px solid rgba(28, 63, 170, 0.14); }
.template-ledger .avatar.active { width: 98px; height: 122px; border-radius: 18px; border-style: dashed; }
.template-harbor .avatar.active { width: 108px; height: 108px; border-radius: 28px; box-shadow: 0 18px 38px rgba(31, 111, 235, 0.16); }
.template-solstice .avatar.active { width: 100px; height: 100px; border-radius: 999px; box-shadow: 0 16px 32px rgba(47, 95, 61, 0.14); }
.template-orbit .avatar.active { width: 104px; height: 104px; border-radius: 30px; box-shadow: 0 18px 38px rgba(91, 79, 255, 0.14); }
.template-nova .avatar.active { width: 96px; height: 96px; border-radius: 999px; border: 5px solid rgba(255, 255, 255, 0.9); }
.template-pulse .avatar.active { width: 94px; height: 94px; border-radius: 24px; box-shadow: 0 0 0 8px rgba(255, 45, 122, 0.08); }
.template-zenith .avatar.active { width: 126px; height: 126px; border-radius: 34px; }
.template-vellum .avatar.active { width: 102px; height: 132px; border-radius: 999px 999px 18px 18px; border: 6px solid rgba(255, 250, 244, 0.92); }
.template-canyon .avatar.active { width: 108px; height: 108px; border-radius: 999px 999px 30px 30px; justify-self: end; }
.template-noir .avatar.active { width: 94px; height: 94px; border-radius: 24px; border: 2px solid rgba(255, 255, 255, 0.72); box-shadow: 0 18px 40px rgba(17, 24, 39, 0.22); }
.template-verdant .avatar.active { width: 102px; height: 102px; border-radius: 999px; box-shadow: 0 0 0 8px rgba(149, 213, 178, 0.12); }

.template-aurora {
  --paper: #fffdfb;
  --accent: #ff7a52;
  --accent-2: #7c88ff;
}

.template-atelier {
  --paper: #fdf9f3;
  --accent: #c7795d;
  --accent-2: #30343c;
}

.template-atelier .resume-header {
  grid-template-columns: 1fr;
}

.template-atelier .contact-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(48, 52, 60, 0.1);
  padding-top: 12px;
}

.template-atelier .resume-body {
  grid-template-columns: 0.3fr 0.7fr;
}

.resume-sheet.template-atelier::before,
.resume-sheet.template-atelier::after {
  opacity: 0.12;
}

.template-atelier .identity h1 {
  font-family: "Fraunces", serif;
}

.template-chronicle {
  --paper: #f7fbff;
  --accent: #1c3faa;
  --accent-2: #a4c4ff;
}

.template-chronicle .resume-header {
  grid-template-columns: auto 1fr;
}

.template-chronicle .contact-card {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.template-chronicle .resume-body {
  grid-template-columns: 1fr;
}

.template-chronicle .resume-aside {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid rgba(28, 63, 170, 0.15);
  padding-top: 14px;
}

.template-chronicle .resume-aside section {
  min-width: 180px;
}

.template-orbit {
  --paper: #f5f9ff;
  --accent: #45b6f7;
  --accent-2: #5b4fff;
}

.resume-sheet.template-orbit::before {
  width: 300px;
  height: 300px;
}

.template-orbit .contact-card {
  background: rgba(255, 255, 255, 0.6);
  padding: 12px;
  border-radius: 14px;
}

.template-mosaic {
  --paper: #fff7f0;
  --accent: #ff6a8b;
  --accent-2: #ffbd59;
}

.template-mosaic .resume-body {
  grid-template-columns: 0.42fr 0.58fr;
}

.template-mosaic .tag {
  background: rgba(255, 106, 139, 0.18);
}

.template-solstice {
  --paper: #f4f8f4;
  --accent: #2f5f3d;
  --accent-2: #a0caa3;
}

.template-solstice .resume-header {
  grid-template-columns: 1fr;
}

.template-solstice .resume-body {
  grid-template-columns: 0.34fr 0.66fr;
}

.template-solstice .contact-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(47, 95, 61, 0.2);
  padding-top: 12px;
}

.resume-sheet.template-solstice::before,
.resume-sheet.template-solstice::after {
  opacity: 0.1;
}

.template-nova {
  --paper: #fffdf8;
  --accent: #ff9f1c;
  --accent-2: #2ec4b6;
}

.template-nova .resume-surface {
  font-family: "DM Sans", system-ui, sans-serif;
}

.template-nova .identity h1 {
  font-family: "Sora", system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.template-nova .resume-header {
  grid-template-columns: 1fr;
}

.template-nova .contact-card {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 12px;
}

.template-harbor {
  --paper: #f7fbff;
  --accent: #1f6feb;
  --accent-2: #7fb3ff;
}

.template-harbor .resume-surface {
  font-family: "Archivo", system-ui, sans-serif;
}

.template-harbor .resume-body {
  grid-template-columns: 0.32fr 0.68fr;
}

.template-harbor .resume-aside {
  background: rgba(31, 111, 235, 0.08);
  padding: 14px;
  border-radius: 18px;
}

.template-harbor .contact-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.template-canyon {
  --paper: #fff7ed;
  --accent: #d35a2a;
  --accent-2: #f2b26e;
}

.template-canyon .resume-surface {
  font-family: "DM Sans", system-ui, sans-serif;
}

.template-canyon .identity h1 {
  font-family: "Bebas Neue", "Space Grotesk", sans-serif;
  font-size: 46px;
  letter-spacing: 0.05em;
}

.template-canyon .resume-header {
  grid-template-columns: 1fr auto;
}

.template-canyon .contact-card {
  text-align: right;
}

.template-zenith {
  --paper: #f9fbff;
  --accent: #1d3557;
  --accent-2: #a8dadc;
}

.template-zenith .resume-surface {
  font-family: "Sora", system-ui, sans-serif;
}

.template-zenith .resume-body {
  grid-template-columns: 1fr;
}

.template-zenith .resume-aside {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px dashed rgba(29, 53, 87, 0.2);
  padding-top: 12px;
}

.template-zenith .resume-content section {
  border-top: 1px dashed rgba(29, 53, 87, 0.2);
  padding-top: 12px;
}

.template-vellum {
  --paper: #fffaf4;
  --accent: #8d5b4c;
  --accent-2: #d9b08c;
}

.template-vellum .resume-surface {
  font-family: "Merriweather", "Times New Roman", serif;
}

.template-vellum .identity h1,
.template-vellum h2,
.template-vellum h3 {
  font-family: "Playfair Display", "Times New Roman", serif;
}

.resume-sheet.template-vellum::before,
.resume-sheet.template-vellum::after {
  opacity: 0.08;
}

.template-pulse {
  --paper: #fff7fb;
  --accent: #ff2d7a;
  --accent-2: #ff8fab;
}

.template-pulse .resume-surface {
  font-family: "Archivo", system-ui, sans-serif;
}

.template-pulse .resume-content section {
  border-left: 3px solid rgba(255, 45, 122, 0.25);
  padding-left: 12px;
}

.template-pulse .tag {
  background: rgba(255, 45, 122, 0.16);
}

.template-ledger {
  --paper: #f6f8f6;
  --accent: #1b4332;
  --accent-2: #52b788;
}

.template-ledger .resume-surface {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

.template-ledger .contact-card {
  border: 1px dashed rgba(27, 67, 50, 0.2);
  padding: 10px;
  border-radius: 12px;
}

.template-ledger .item {
  border-bottom: 1px dashed rgba(27, 67, 50, 0.15);
  padding-bottom: 8px;
}

.template-verdant {
  --paper: #f4fbf6;
  --accent: #2f6f4e;
  --accent-2: #95d5b2;
}

.template-verdant .resume-surface {
  font-family: "DM Sans", system-ui, sans-serif;
}

.template-verdant .resume-aside {
  background: rgba(47, 111, 78, 0.08);
  padding: 14px;
  border-radius: 18px;
}

.template-verdant .tag {
  background: rgba(47, 111, 78, 0.16);
}

.template-noir {
  --paper: #f7f7f9;
  --accent: #111827;
  --accent-2: #6b7280;
}

.template-noir .resume-surface {
  font-family: "Sora", system-ui, sans-serif;
}

.template-noir .resume-header {
  background: #111827;
  color: #f9fafb;
  padding: 20px;
  border-radius: 18px;
}

.template-noir .identity .title,
.template-noir .identity .summary,
.template-noir .contact-card span {
  color: #e5e7eb;
}

.template-noir .contact-item .label {
  color: rgba(229, 231, 235, 0.6);
}

.template-noir .resume-body {
  margin-top: 16px;
}

.template-bloom {
  --paper: #fff9fb;
  --accent: #f26a8d;
  --accent-2: #ffd166;
}

.template-bloom .resume-surface {
  font-family: "DM Sans", system-ui, sans-serif;
}

.template-bloom .identity h1 {
  font-family: "Playfair Display", "Times New Roman", serif;
}

.template-bloom .tag {
  background: rgba(242, 106, 141, 0.16);
}

@media (max-width: 1024px) {
  .resume-wrapper {
    overflow-x: auto;
    justify-content: flex-start;
  }
  .resume-sheet {
    transform: scale(0.9);
    transform-origin: top center;
  }
  .builder-preview .resume-sheet {
    transform: scale(0.86);
  }
}

@media (max-width: 768px) {
  .page {
    padding: 32px 16px 64px;
  }
  .topbar {
    margin-bottom: 12px;
  }
  .hero {
    margin-bottom: 40px;
  }
  .builder {
    grid-template-columns: 1fr;
  }
  .resume-sheet {
    transform: scale(0.8);
  }
  .builder-preview .resume-sheet {
    transform: scale(0.82);
  }
}

@media (max-width: 782px) {
  body.admin-bar .ambient-background {
    top: 46px;
    height: calc(100% - 46px);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  body {
    background: #ffffff;
  }
  .ambient-background,
  .page > *:not(.builder) {
    display: none;
  }
  .builder-form,
  .preview-toolbar,
  .preview-note {
    display: none;
  }
  .resume-wrapper {
    padding: 0;
    border: none;
  }
  .resume-sheet {
    box-shadow: none;
    transform: none !important;
  }
  .builder-preview .resume-sheet {
    transform: none !important;
  }
}
