:root {
  color-scheme: light;
  --ink: #1d1d1a;
  --ink-soft: #3d3b35;
  --paper: #f4efe6;
  --paper-deep: #e9e1d4;
  --surface: #fffdf9;
  --surface-soft: #faf7f0;
  --muted: #706d65;
  --line: #dcd4c7;
  --line-strong: #c9bfae;
  --red: #b74638;
  --red-dark: #8f3128;
  --red-soft: #f4ded9;
  --gold: #e0b24f;
  --gold-soft: #f8edcf;
  --green: #2d6d50;
  --green-soft: #e1efe7;
  --blue: #315d78;
  --blue-dark: #21465d;
  --blue-soft: #e5eef3;
  --danger: #a3332a;
  --shadow-sm: 0 8px 24px rgba(53, 45, 32, 0.08);
  --shadow-md: 0 18px 50px rgba(53, 45, 32, 0.12);
  --shadow-lg: 0 28px 80px rgba(43, 37, 27, 0.18);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --content: 1160px;
  --content-wide: 1360px;
  --cv-accent: #315d78;
  --cv-density: 1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  background:
    radial-gradient(circle at 8% 7%, rgba(224, 178, 79, 0.13), transparent 28rem),
    radial-gradient(circle at 94% 16%, rgba(183, 70, 56, 0.08), transparent 30rem),
    var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(49, 93, 120, 0.36);
  outline-offset: 3px;
}

h1[tabindex="-1"]:focus {
  outline: none;
}

a {
  color: inherit;
}

svg {
  width: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.page-shell {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.page-shell-wide {
  width: min(calc(100% - 48px), var(--content-wide));
  margin-inline: auto;
}

.free-banner {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 20px;
  background: var(--ink);
  color: #fffaf1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-align: center;
}

.free-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(224, 178, 79, 0.16);
}

.site-header {
  display: flex;
  width: min(calc(100% - 40px), var(--content));
  min-height: 82px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 11px;
  border: 0;
  background: transparent;
  text-align: left;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  overflow: hidden;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(29, 29, 26, 0.32);
  border-radius: 50%;
  background: linear-gradient(to bottom, #1d1d1a 0 33.33%, #b74638 33.33% 66.66%, #e0b24f 66.66% 100%);
  box-shadow: var(--shadow-sm);
}

.brand-mark::after {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  content: "";
}

.brand-mark span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.93);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-actions a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.header-actions a:hover {
  color: var(--red-dark);
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 760;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  box-shadow: none;
  transform: none;
}

.button-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: #fffdf7;
  box-shadow: 0 8px 18px rgba(29, 29, 26, 0.15);
}

.button-primary:hover {
  background: #34332f;
  box-shadow: 0 11px 24px rgba(29, 29, 26, 0.2);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 253, 249, 0.72);
  color: var(--ink);
}

.button-secondary:hover,
.button-quiet:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.button-quiet {
  border-color: var(--line);
  background: transparent;
}

.button-danger {
  border-color: var(--danger);
  background: var(--danger);
  color: white;
}

.button-small {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 13px;
}

.button-large {
  min-height: 54px;
  padding: 15px 23px;
}

.button-full {
  width: 100%;
}

.cta-finger {
  display: inline-block;
  flex: 0 0 auto;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.15em;
  line-height: 1;
  transform-origin: 70% 70%;
  transition: transform 160ms ease;
}

.button:hover .cta-finger,
.path-card:hover .cta-finger,
.premium-cta:hover .cta-finger {
  transform: translateX(3px) rotate(-4deg);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.17em;
  line-height: 1.3;
}

.hero {
  display: grid;
  min-height: 610px;
  grid-template-columns: minmax(0, 1.05fr) minmax(370px, 0.82fr);
  align-items: center;
  gap: clamp(50px, 8vw, 110px);
  padding-block: 62px 78px;
}

.hero-copy h1,
.workspace-topbar h1,
.result-header h1,
.guidance-shell h1,
.designs-header h1,
.editor-topbar h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif TC", serif;
  font-weight: 550;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.hero-copy h1 {
  max-width: 720px;
  font-size: clamp(52px, 6.1vw, 83px);
}

.hero-lede {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.85;
}

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

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 25px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  list-style: none;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-check {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.hero-visual {
  position: relative;
  min-height: 480px;
}

.hero-visual::before {
  position: absolute;
  inset: 35px -25px -20px 55px;
  border: 1px solid rgba(183, 70, 56, 0.18);
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.34);
  content: "";
}

.conversation-card {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(92%, 430px);
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px 18px 18px 6px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.assistant-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 700;
}

.message-label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.conversation-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.answer-card {
  z-index: 3;
  width: min(85%, 390px);
  margin: 22px 0 0 auto;
  border-color: rgba(183, 70, 56, 0.24);
  border-radius: 18px 18px 6px;
  background: var(--red-soft);
}

.mini-cv {
  position: absolute;
  z-index: 1;
  right: 30px;
  bottom: 0;
  display: grid;
  width: 310px;
  height: 330px;
  grid-template-columns: 85px 1fr;
  overflow: hidden;
  border: 1px solid #d7d5d0;
  border-radius: 5px;
  background: white;
  box-shadow: var(--shadow-lg);
  transform: rotate(2.2deg);
}

.mini-cv::before {
  position: absolute;
  top: 38px;
  right: 34px;
  width: 135px;
  height: 12px;
  background: #25282a;
  box-shadow: 0 22px #d7d7d3;
  content: "";
}

.mini-cv-side {
  background: var(--blue);
}

.mini-cv-body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 95px 28px 25px;
}

.mini-cv-body span {
  height: 5px;
  border-radius: 99px;
  background: #e2e2de;
}

.mini-cv-body span:nth-child(2),
.mini-cv-body span:nth-child(5) {
  width: 65%;
}

.mini-cv strong {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 5px 9px;
  border-radius: 99px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
}

.path-section {
  padding-block: 92px 110px;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 34px;
}

.section-heading h2,
.privacy-card h2,
.live-preview-header h2,
.panel-heading h2,
.modal-shell h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif TC", serif;
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 560;
  letter-spacing: -0.035em;
  line-height: 1.14;
}

.section-heading > p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.path-card {
  position: relative;
  display: flex;
  min-height: 295px;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 249, 0.7);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.path-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.path-card-primary {
  border-color: rgba(183, 70, 56, 0.34);
  background:
    radial-gradient(circle at 100% 0, rgba(224, 178, 79, 0.2), transparent 14rem),
    var(--surface);
}

.path-number {
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
}

.path-badge {
  position: absolute;
  top: 25px;
  right: 25px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
}

.path-badge-quiet {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.path-card strong {
  margin-top: 44px;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 30px;
  font-weight: 560;
}

.path-card > span:not(.path-number, .path-badge, .path-action) {
  max-width: 420px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.path-action {
  margin-top: auto;
  padding-top: 28px;
  color: var(--red-dark);
  font-size: 14px;
  font-weight: 800;
}

.how-section {
  padding-block: 90px 100px;
  background: var(--ink);
  color: #fffaf1;
}

.how-section .eyebrow {
  color: var(--gold);
}

.how-section .section-heading {
  margin-bottom: 45px;
}

.how-section h2 {
  color: white;
}

.step-grid {
  display: grid;
  margin: 0;
  padding: 0;
  counter-reset: steps;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
}

.step-grid li {
  min-height: 190px;
  padding: 4px 36px 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.step-grid li:first-child {
  padding-left: 0;
  border-left: 0;
}

.step-grid > li > span {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 13px;
}

.step-grid h3 {
  margin: 28px 0 9px;
  font-size: 20px;
}

.step-grid p {
  max-width: 310px;
  margin: 0;
  color: rgba(255, 250, 241, 0.68);
  font-size: 14px;
  line-height: 1.75;
}

.privacy-section {
  padding-block: 80px 110px;
}

.privacy-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.privacy-icon {
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}

.privacy-icon svg {
  width: 26px;
}

.privacy-card h2 {
  font-size: 25px;
}

.privacy-card p {
  max-width: 800px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.screen:not(.landing-screen) {
  min-height: calc(100vh - 34px);
}

body:not([data-screen="landing"]) .site-header,
body:not([data-screen="landing"]) .site-footer {
  display: none;
}

.workspace-topbar,
.result-header,
.designs-header,
.editor-topbar {
  display: flex;
  width: min(calc(100% - 48px), var(--content-wide));
  margin: 0 auto;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-block: 30px 26px;
}

.workspace-topbar h1,
.result-header h1,
.designs-header h1,
.editor-topbar h1 {
  font-size: clamp(34px, 4.2vw, 55px);
}

.back-link,
.text-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  margin: 0 0 9px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}

.back-link:hover,
.text-button:hover {
  color: var(--red-dark);
  text-decoration-color: currentColor;
}

.progress-card {
  width: 220px;
  flex: 0 0 auto;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 249, 0.82);
  box-shadow: var(--shadow-sm);
}

.progress-card > span {
  display: block;
  font-size: 19px;
  font-weight: 850;
  line-height: 1;
}

.progress-track {
  height: 6px;
  margin: 12px 0 9px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--paper-deep);
}

.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
  transition: width 260ms ease;
}

.progress-card small {
  color: var(--muted);
  font-size: 11px;
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(410px, 0.88fr) minmax(480px, 1.12fr);
  gap: 22px;
  padding-bottom: 40px;
}

.chat-panel,
.live-preview-panel,
.review-panel,
.full-preview-panel,
.design-controls,
.editor-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.chat-panel {
  display: grid;
  min-height: 680px;
  max-height: calc(100vh - 185px);
  grid-template-rows: auto minmax(250px, 1fr) auto;
  overflow: hidden;
}

.chat-panel-header {
  display: flex;
  min-height: 78px;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.chat-panel-header > div:nth-child(2) {
  display: grid;
}

.chat-panel-header strong {
  font-size: 14px;
}

.chat-panel-header span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.chat-panel-header span i,
.save-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-soft);
}

.chat-panel-header .icon-button {
  margin-left: auto;
}

.message-list {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  padding: 24px 20px;
  overscroll-behavior: contain;
}

.message {
  display: flex;
  max-width: 88%;
  align-items: flex-end;
  gap: 10px;
}

.message .assistant-avatar {
  width: 32px;
  height: 32px;
  font-size: 13px;
}

.message-bubble {
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 17px 17px 17px 5px;
  background: var(--surface-soft);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.message-user {
  align-self: flex-end;
  justify-content: flex-end;
}

.message-user .message-bubble {
  border-color: rgba(183, 70, 56, 0.21);
  border-radius: 17px 17px 5px;
  background: var(--red-soft);
}

.composer {
  padding: 18px 20px 17px;
  border-top: 1px solid var(--line);
  background: #fffcf7;
}

.composer label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
}

input,
select {
  padding: 10px 12px;
}

textarea {
  padding: 11px 12px;
  line-height: 1.55;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #96928a;
}

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

.choice-button {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: white;
  font-size: 13px;
  font-weight: 730;
  text-align: left;
}

.choice-button:hover,
.choice-button[aria-pressed="true"] {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red-dark);
}

.composer-help {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.composer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}

.composer-actions .text-button {
  margin: 0 auto 0 0;
}

.field-error {
  min-height: 20px;
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
}

.live-preview-panel {
  min-width: 0;
  padding: 20px;
  background: #e8e4dc;
}

.live-preview-header,
.panel-heading,
.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.live-preview-header {
  margin-bottom: 15px;
}

.live-preview-header h2 {
  font-family: inherit;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.save-state {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-size: 10px;
  font-weight: 730;
}

.preview-frame {
  width: 100%;
  overflow: auto;
  border-radius: 8px;
  background: #d9d4cb;
  box-shadow: inset 0 0 0 1px rgba(29, 29, 26, 0.06);
}

.preview-frame-compact {
  max-height: calc(100vh - 285px);
  min-height: 550px;
  padding: 20px;
}

.preview-note,
.legal-note {
  margin: 14px 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.result-header {
  align-items: center;
  padding-block: 46px 30px;
}

.result-header > div:first-child {
  max-width: 760px;
}

.result-header > div:first-child > p:last-child {
  margin: 15px 0 0;
  color: var(--muted);
}

.completion-badge {
  display: grid;
  width: 112px;
  height: 112px;
  flex: 0 0 auto;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.completion-badge span {
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 29px;
  font-weight: 650;
  line-height: 1;
}

.completion-badge small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(310px, 0.42fr) minmax(550px, 0.9fr);
  align-items: start;
  gap: 22px;
  padding-bottom: 60px;
}

.review-panel {
  position: sticky;
  top: 20px;
  min-width: 0;
  padding: 24px;
}

.review-panel:has(#content-editor:not([hidden])) {
  position: static;
}

.panel-heading {
  align-items: flex-start;
}

.panel-heading h2 {
  font-family: inherit;
  font-size: 22px;
  font-weight: 820;
  letter-spacing: -0.025em;
}

.panel-heading .text-button {
  margin: 0;
}

.review-list {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.review-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.review-icon {
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.review-item[data-state="missing"] .review-icon {
  background: var(--gold-soft);
  color: #805d12;
}

.review-item[data-state="review"] {
  border-color: rgba(128, 93, 18, 0.25);
  background: var(--gold-soft);
}

.review-item[data-state="review"] .review-icon {
  background: #fff8e5;
  color: #805d12;
}

.review-item div {
  display: grid;
}

.review-item strong {
  font-size: 12px;
}

.review-item span {
  color: var(--muted);
  font-size: 10px;
}

.content-editor {
  display: grid;
  min-width: 0;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.return-to-personal-design {
  margin-bottom: 2px;
}

.editor-flow {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.editor-flow strong {
  font-size: 12px;
}

.editor-flow span {
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.55;
}

.content-editor-section {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.content-editor-section h3 {
  margin: 0;
  font-size: 13px;
}

.content-editor label,
.content-details label,
.paste-field {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 720;
}

.structured-editor {
  min-width: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.structured-editor-heading {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.structured-editor-heading h3 {
  margin: 0;
  font-size: 13px;
}

.structured-editor-heading .text-button {
  min-height: 44px;
  margin: 0;
  padding-inline: 8px;
  font-size: 12px;
}

.structured-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.entry-editor-list {
  display: grid;
  min-width: 0;
  gap: 12px;
  margin-top: 10px;
}

.entry-editor-card {
  display: grid;
  min-width: 0;
  gap: 10px;
  margin: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.entry-editor-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.entry-editor-card-header strong {
  font-size: 11px;
}

.entry-editor-card-header button {
  min-height: 44px;
  margin: 0;
  color: var(--danger);
  font-size: 12px;
}

.entry-editor-grid {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.entry-editor-card label {
  display: grid;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 720;
}

.entry-editor-card .entry-editor-wide {
  grid-column: 1 / -1;
}

.entry-editor-empty {
  margin: 9px 0 0;
  padding: 10px;
  border-radius: 9px;
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
}

.import-original {
  min-width: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.import-original summary {
  min-height: 44px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.import-original p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.import-original pre {
  max-width: 100%;
  max-height: 320px;
  margin: 10px 0 0;
  overflow: auto;
  padding: 12px;
  border-radius: 10px;
  background: var(--paper);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.free-actions {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.free-actions small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.free-download-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.expert-review-button {
  border-color: rgba(181, 132, 35, 0.42);
  background: var(--gold-soft);
}

.expert-review-button:hover {
  border-color: #9a6f18;
  background: #f8e8b6;
}

.page-limit-card,
.page-limit-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
}

.page-limit-card {
  padding: 12px 14px;
}

.page-limit-card > span {
  display: grid;
  gap: 2px;
}

.page-limit-card small {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  text-align: left;
}

.page-limit-card strong,
.page-limit-inline strong {
  color: var(--green);
  font-size: 12px;
}

.page-limit-card[data-state="overflow"],
.page-limit-inline[data-state="overflow"] {
  border-color: color-mix(in srgb, var(--danger) 38%, var(--line));
  background: color-mix(in srgb, var(--danger) 8%, white);
}

.page-limit-card[data-state="overflow"] strong,
.page-limit-inline[data-state="overflow"] strong {
  color: var(--danger);
}

.premium-cta {
  display: flex;
  width: 100%;
  min-height: 160px;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(183, 70, 56, 0.35);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 95% 0, rgba(224, 178, 79, 0.25), transparent 11rem),
    var(--red-soft);
  text-align: left;
}

.premium-cta-kicker {
  color: var(--red-dark);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.premium-cta strong {
  margin-top: 15px;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: 18px;
  line-height: 1.4;
}

.premium-cta > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 15px;
  color: var(--red-dark);
  font-size: 11px;
  font-weight: 800;
}

.full-preview-panel,
.editor-preview {
  min-width: 0;
  padding: 18px;
  background: #e8e4dc;
}

.preview-toolbar {
  min-height: 42px;
  margin: -5px 0 10px;
}

.preview-toolbar > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.preview-toolbar strong {
  font-size: 13px;
}

.preview-toolbar > span {
  color: var(--muted);
  font-size: 10px;
}

.status-chip {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.status-chip-free {
  background: var(--green-soft);
  color: var(--green);
}

.status-chip-premium {
  background: var(--red-soft);
  color: var(--red-dark);
}

.full-preview-panel .preview-frame,
.editor-preview .preview-frame {
  max-height: 920px;
  padding: 24px;
}

.guidance-screen {
  display: grid;
  min-height: calc(100vh - 34px);
  place-items: center;
  padding: 50px 0 70px;
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.92), rgba(244, 239, 230, 0.96)),
    var(--paper);
}

.guidance-shell {
  max-width: 920px;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 20px 0 30px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.source-badge span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font-size: 8px;
  letter-spacing: 0.05em;
}

.guidance-shell h1 {
  max-width: 870px;
  font-size: clamp(44px, 6.5vw, 78px);
}

.guidance-summary {
  max-width: 780px;
  margin: 35px 0 13px;
  padding: 3px 0 3px 24px;
  border-left: 3px solid var(--red);
}

.guidance-summary > span {
  display: block;
  margin-bottom: 8px;
  color: var(--red-dark);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.guidance-summary p {
  margin: 0;
  color: var(--ink-soft);
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: clamp(20px, 2.5vw, 29px);
  line-height: 1.6;
}

.source-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 780;
  text-underline-offset: 4px;
}

.guidance-disclaimer {
  max-width: 780px;
  margin: 8px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 253, 249, 0.72);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.guidance-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  margin: 44px 0 30px;
}

.guidance-comparison > div {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.guidance-comparison .comparison-premium {
  border-color: rgba(183, 70, 56, 0.34);
  background: var(--red-soft);
}

.comparison-label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.guidance-comparison strong {
  display: block;
  margin-top: 25px;
  font-size: 18px;
}

.guidance-comparison p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.comparison-arrow {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
}

.guidance-footnote {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.designs-screen {
  padding-bottom: 70px;
}

.designs-header {
  align-items: center;
  padding-block: 48px 34px;
}

.designs-header > div:first-child {
  max-width: 850px;
}

.designs-header > div:first-child > p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
}

.free-access-state {
  display: flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--green);
  font-size: 11px;
  font-weight: 720;
}

.design-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.design-card {
  display: flex;
  min-width: 0;
  min-height: 440px;
  flex-direction: column;
  align-items: stretch;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.design-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.design-try {
  position: absolute;
  top: 23px;
  right: 23px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(29, 29, 26, 0.88);
  color: white;
  font-size: 9px;
  font-weight: 800;
}

.design-card-premium {
  position: relative;
}

.design-preview {
  position: relative;
  height: 330px;
  overflow: hidden;
  border: 1px solid #ddd9d2;
  border-radius: 5px;
  background: #fff;
}

.design-preview::before,
.design-preview::after,
.design-preview i,
.design-preview span {
  position: absolute;
  display: block;
  content: "";
}

.design-preview span {
  height: 5px;
  border-radius: 99px;
  background: #dadad7;
}

.design-preview span:nth-of-type(1) { top: 88px; left: 28px; width: 58%; }
.design-preview span:nth-of-type(2) { top: 110px; left: 28px; width: 72%; }
.design-preview span:nth-of-type(3) { top: 142px; left: 28px; width: 46%; }
.design-preview span:nth-of-type(4) { top: 165px; left: 28px; width: 68%; }

.design-preview-europass::before {
  inset: 0 auto 0 0;
  width: 28%;
  background: var(--blue);
}

.design-preview-europass::after {
  top: 30px;
  left: 37%;
  width: 46%;
  height: 13px;
  background: #2b2b2a;
  box-shadow: 0 25px #e2e2df;
}

.design-preview-europass span { left: 37%; }

.design-preview-berlin::before {
  top: 33px;
  left: 28px;
  width: 65%;
  height: 17px;
  background: #2b2b29;
}

.design-preview-berlin::after {
  top: 65px;
  left: 28px;
  width: 82%;
  height: 2px;
  background: var(--red);
}

.design-preview-berlin i {
  right: 28px;
  bottom: 27px;
  width: 48px;
  height: 48px;
  border: 8px solid var(--red-soft);
  border-radius: 50%;
}

.design-preview-munich::before {
  inset: 0 0 auto;
  height: 92px;
  background: var(--blue-dark);
}

.design-preview-munich::after {
  top: 28px;
  left: 28px;
  width: 61%;
  height: 15px;
  background: white;
  box-shadow: 0 25px rgba(255,255,255,.42);
}

.design-preview-munich span { top: auto; }
.design-preview-munich span:nth-of-type(1) { top: 128px; }
.design-preview-munich span:nth-of-type(2) { top: 151px; }
.design-preview-munich span:nth-of-type(3) { top: 194px; }
.design-preview-munich span:nth-of-type(4) { top: 217px; }

.design-preview-hamburg::before {
  inset: 0 auto 0 0;
  width: 12px;
  background: var(--gold);
}

.design-preview-hamburg::after {
  top: 30px;
  left: 34px;
  width: 74%;
  height: 22px;
  background: #1e1e1c;
  box-shadow: 0 32px #b74638;
}

.design-preview-hamburg i {
  top: 130px;
  right: 25px;
  width: 62px;
  height: 62px;
  background: var(--gold-soft);
}

.design-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
}

.design-meta b {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-meta em {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 99px;
  background: var(--paper-deep);
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.design-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.designs-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.editor-screen {
  padding-bottom: 45px;
}

.editor-topbar {
  align-items: center;
  padding-block: 28px 22px;
}

.editor-export-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.editor-download-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-limit-inline {
  display: grid;
  min-width: 170px;
  gap: 0;
  padding: 6px 10px;
  text-align: right;
}

.editor-layout {
  display: grid;
  grid-template-columns: 310px minmax(600px, 1fr);
  align-items: start;
  gap: 20px;
}

.design-controls {
  position: sticky;
  top: 18px;
  padding: 22px;
}

.control-section {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 17px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.control-section:first-child {
  padding-top: 0;
}

.control-label {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.04em;
}

.template-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.template-pills button {
  min-height: 40px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  font-size: 10px;
  font-weight: 750;
}

.template-pills button[aria-pressed="true"] {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red-dark);
}

.color-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-control input {
  width: 48px;
  height: 42px;
  min-height: 42px;
  padding: 3px;
}

.color-control output {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

input[type="range"] {
  height: 24px;
  min-height: 24px;
  padding: 0;
  accent-color: var(--red);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.content-details summary {
  min-height: 42px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.content-details p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.control-tip {
  margin-top: 18px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
}

.control-tip strong {
  color: #6d4e0b;
  font-size: 11px;
}

.control-tip p {
  margin: 5px 0 0;
  color: #745e2d;
  font-size: 10px;
  line-height: 1.55;
}

.preview-frame-editor {
  max-height: calc(100vh - 168px) !important;
}

.cv-sheet {
  --accent: var(--cv-accent);
  --section-gap: calc(18px * var(--cv-density));
  position: relative;
  width: 210mm;
  min-height: 297mm;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  color: #282929;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10.5pt;
  line-height: 1.45;
  box-shadow: 0 4px 20px rgba(29, 29, 26, 0.16);
}

.cv-sheet.font-classic { font-family: Georgia, "Times New Roman", serif; }
.cv-sheet.font-modern { font-family: Arial, Helvetica, sans-serif; }
.cv-sheet.font-humanist { font-family: "Trebuchet MS", Arial, sans-serif; }
.cv-sheet.density-1 { --cv-density: 1.25; }
.cv-sheet.density-2 { --cv-density: 1; }
.cv-sheet.density-3 { --cv-density: .78; font-size: 9.7pt; }

.cv-header {
  position: relative;
}

.cv-name {
  margin: 0;
  font-size: 29pt;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.cv-role {
  margin: 7px 0 0;
  color: var(--accent);
  font-size: 12pt;
  font-weight: 700;
}

.cv-contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 13px 0 0;
  padding: 0;
  color: #606262;
  font-size: 8.8pt;
  list-style: none;
}

.cv-contact-list li,
.cv-contact-link,
.cv-entry-heading strong,
.cv-entry-meta,
.cv-entry-description,
.cv-tag-list li {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cv-contact-link {
  color: inherit;
  text-decoration-thickness: 0.6px;
  text-underline-offset: 2px;
}

.cv-section {
  margin-top: var(--section-gap);
}

.cv-section-title {
  margin: 0 0 9px;
  color: var(--accent);
  font-size: 9.5pt;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cv-section-title::after {
  display: block;
  height: 1px;
  margin-top: 5px;
  background: color-mix(in srgb, var(--accent) 35%, white);
  content: "";
}

.cv-summary {
  margin: 0;
  color: #454747;
  white-space: pre-line;
}

.cv-entry + .cv-entry {
  margin-top: 15px;
}

.cv-entry-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.cv-entry-heading strong {
  font-size: 10.5pt;
}

.cv-entry-heading time {
  color: #666868;
  font-size: 8.5pt;
  white-space: nowrap;
}

.cv-entry-meta {
  margin: 2px 0 0;
  color: var(--accent);
  font-size: 9.2pt;
  font-weight: 650;
}

.cv-entry-description {
  margin: 7px 0 0;
  color: #4a4b4b;
}

.cv-entry-description p {
  margin: 0;
}

.cv-entry-description p + p,
.cv-entry-description p + .cv-entry-highlights,
.cv-entry-highlights + p {
  margin-top: 5px;
}

.cv-entry-highlights {
  display: grid;
  gap: 3px;
  margin: 5px 0 0;
  padding-left: 18px;
}

.cv-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cv-tag-list li {
  padding: 4px 8px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--accent) 10%, white);
  color: #414343;
  font-size: 8.7pt;
}

.cv-language-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cv-language-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid #ececea;
}

.cv-empty {
  color: #999;
  font-style: italic;
}

.template-europass {
  display: grid;
  grid-template-columns: 31% 69%;
}

.template-europass .cv-sidebar {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  padding: 45mm 10mm 18mm;
  background: var(--accent);
  color: white;
}

.template-europass .cv-main {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding: 22mm 16mm 18mm;
}

.template-europass .cv-header {
  grid-column: auto;
  grid-row: auto;
}

.template-europass .cv-sidebar .cv-section-title {
  color: white;
}

.template-europass .cv-sidebar .cv-section-title::after {
  background: rgba(255, 255, 255, 0.35);
}

.template-europass .cv-sidebar .cv-tag-list {
  display: grid;
}

.template-europass .cv-sidebar .cv-tag-list li {
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
}

.template-europass .cv-sidebar .cv-language-list li {
  display: grid;
  gap: 0;
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.template-europass .cv-sidebar .cv-language-list span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 8pt;
}

.template-berlin,
.template-hamburg {
  padding: 20mm 20mm 18mm;
}

.template-berlin::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 7mm;
  background: var(--accent);
  content: "";
}

.template-berlin .cv-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34pt;
  font-weight: 500;
}

.template-berlin .cv-body-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 31%;
  gap: 13mm;
}

.template-berlin .cv-secondary {
  padding-top: 2mm;
}

.template-munich {
  padding: 0 18mm 18mm;
}

.template-munich .cv-header {
  margin: 0 -18mm 12mm;
  padding: 20mm 18mm 15mm;
  background: var(--accent);
  color: white;
}

.template-munich .cv-role,
.template-munich .cv-contact-list {
  color: rgba(255, 255, 255, 0.82);
}

.template-munich .cv-body-columns {
  display: grid;
  grid-template-columns: 34% minmax(0, 1fr);
  gap: 12mm;
}

.template-munich .cv-secondary {
  grid-column: 1;
  grid-row: 1;
}

.template-munich .cv-primary {
  grid-column: 2;
}

.template-hamburg::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 7mm;
  background: var(--accent);
  content: "";
}

.template-hamburg .cv-header {
  padding-bottom: 10mm;
  border-bottom: 3px solid var(--accent);
}

.template-hamburg .cv-name {
  font-family: Arial Black, Arial, sans-serif;
  font-size: 36pt;
  text-transform: uppercase;
}

.template-hamburg .cv-body-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32%;
  gap: 12mm;
}

.modal {
  width: min(calc(100% - 30px), 610px);
  max-height: calc(100vh - 30px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  box-shadow: var(--shadow-lg);
}

.modal::backdrop {
  background: rgba(24, 23, 20, 0.68);
  backdrop-filter: blur(4px);
}

.modal-shell {
  position: relative;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 20px;
}

.modal-shell > p:not(.eyebrow, .field-error, .modal-privacy, .offer-status) {
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.upload-zone {
  display: grid;
  min-height: 175px;
  place-items: center;
  padding: 22px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  text-align: center;
  cursor: pointer;
}

.upload-zone:hover,
.upload-zone[data-dragging="true"] {
  border-color: var(--red);
  background: var(--red-soft);
}

.upload-zone svg {
  width: 30px;
  color: var(--red-dark);
}

.upload-zone strong {
  margin-top: 8px;
  font-size: 15px;
}

.upload-zone span {
  color: var(--muted);
  font-size: 11px;
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.or-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 10px;
}

.or-divider::before,
.or-divider::after {
  height: 1px;
  background: var(--line);
  content: "";
}

.processing-status {
  min-height: 23px;
  margin-top: 10px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 700;
}

.processing-status[data-state="error"] {
  color: var(--danger);
}

.modal-privacy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.modal-step {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #755516;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.offer-status {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 12px;
  line-height: 1.55;
}

.offer-list {
  display: grid;
  gap: 9px;
  margin: 20px 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 13px;
  list-style: none;
}

.offer-list li > span {
  margin-right: 9px;
  color: var(--green);
  font-weight: 900;
}

.career-offer-shell {
  background:
    radial-gradient(circle at 100% 0, rgba(224, 178, 79, .22), transparent 14rem),
    var(--surface);
}

.career-price-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(183, 70, 56, .28);
  border-radius: var(--radius-md);
  background: var(--red-soft);
}

.career-price-row > div {
  display: grid;
  gap: 2px;
}

.career-price-row span {
  color: var(--muted);
  font-size: 11px;
}

.career-price-row strong {
  color: var(--red-dark);
  font-family: Georgia, serif;
  font-size: 40px;
  line-height: 1.05;
}

.career-offer-shell .offer-terms {
  margin: 0 0 18px !important;
  padding: 12px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: #745e2d !important;
  font-size: 11px !important;
  line-height: 1.6;
}

.career-offer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.print-measure-host {
  position: fixed;
  z-index: -1;
  top: 0;
  left: -300vw;
  width: 210mm;
  height: 281mm;
  overflow: visible;
  visibility: hidden;
  column-fill: auto;
  column-gap: 0;
  column-width: 210mm;
  pointer-events: none;
}

.print-measure-sheet {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  box-shadow: none !important;
}

.confirm-modal-shell {
  text-align: center;
}

.confirm-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100% - 44px));
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.5);
}

.footer-inner {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner strong {
  font-size: 14px;
}

.footer-inner p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-underline-offset: 4px;
}

@media (max-width: 1120px) {
  .hero {
    gap: 50px;
  }

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

  .editor-layout {
    grid-template-columns: 270px minmax(500px, 1fr);
  }
}

@media (max-width: 920px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: 48px 80px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-visual {
    width: min(100%, 560px);
    margin: 0 auto;
  }

  .chat-layout,
  .result-layout,
  .editor-layout {
    grid-template-columns: 1fr;
  }

  .chat-panel {
    min-height: 650px;
    max-height: none;
  }

  .preview-frame-compact,
  .preview-frame-editor {
    max-height: 780px !important;
  }

  .review-panel,
  .design-controls {
    position: static;
  }

  .editor-topbar {
    position: sticky;
    z-index: 10;
    top: 0;
    background: rgba(244, 239, 230, 0.95);
    backdrop-filter: blur(10px);
  }
}

@media (max-width: 720px) {
  .page-shell,
  .page-shell-wide,
  .site-header,
  .workspace-topbar,
  .result-header,
  .designs-header,
  .editor-topbar {
    width: min(calc(100% - 28px), var(--content));
  }

  .free-banner {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 10px;
  }

  .site-header {
    min-height: 70px;
  }

  .header-actions a,
  .header-actions .button {
    display: none;
  }

  .hero {
    gap: 38px;
    padding-block: 35px 62px;
  }

  .hero-copy h1 {
    font-size: clamp(44px, 13vw, 60px);
  }

  .hero-lede {
    margin-top: 21px;
    font-size: 16px;
    line-height: 1.75;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .trust-list {
    gap: 9px 16px;
    font-size: 11px;
  }

  .hero-visual {
    min-height: 400px;
  }

  .hero-visual::before {
    inset: 28px 0 -12px 40px;
  }

  .mini-cv {
    right: 8px;
    width: 260px;
    height: 285px;
    grid-template-columns: 70px 1fr;
  }

  .conversation-card {
    width: 94%;
  }

  .answer-card {
    width: 88%;
  }

  .path-section {
    padding-block: 70px;
  }

  .path-grid,
  .step-grid {
    grid-template-columns: 1fr;
  }

  .design-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
  }

  .design-card {
    flex: 0 0 min(82vw, 300px);
    min-height: 390px;
    scroll-snap-align: start;
  }

  .design-preview {
    height: 280px;
  }

  .path-card {
    min-height: 270px;
    padding: 24px;
  }

  .step-grid li,
  .step-grid li:first-child {
    min-height: 0;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 0;
  }

  .step-grid li:first-child {
    border-top: 0;
  }

  .step-grid h3 {
    margin-top: 12px;
  }

  .privacy-card {
    align-items: flex-start;
    padding: 23px;
  }

  .privacy-icon {
    width: 44px;
    height: 44px;
  }

  .privacy-card h2 {
    font-size: 21px;
  }

  .workspace-topbar,
  .result-header,
  .designs-header,
  .editor-topbar {
    align-items: flex-start;
    padding-block: 24px 20px;
  }

  .workspace-topbar h1,
  .result-header h1,
  .designs-header h1,
  .editor-topbar h1 {
    font-size: 35px;
  }

  .progress-card {
    width: 90px;
    padding: 13px;
  }

  .progress-card small {
    display: none;
  }

  .chat-layout,
  .result-layout,
  .editor-layout {
    gap: 14px;
  }

  .chat-panel,
  .live-preview-panel,
  .review-panel,
  .full-preview-panel,
  .design-controls,
  .editor-preview {
    border-radius: 18px;
  }

  .chat-panel {
    min-height: calc(100dvh - 235px);
    max-height: calc(100dvh - 235px);
    grid-template-rows: auto minmax(120px, 1fr) auto;
  }

  .live-preview-panel {
    padding: 14px;
  }

  .preview-frame-compact {
    min-height: 0;
    max-height: none !important;
    padding: 10px;
  }

  .result-header {
    gap: 14px;
  }

  .completion-badge {
    width: 82px;
    height: 82px;
  }

  .completion-badge span {
    font-size: 22px;
  }

  .completion-badge small {
    font-size: 7px;
  }

  .full-preview-panel,
  .editor-preview {
    padding: 12px;
  }

  .full-preview-panel .preview-frame,
  .editor-preview .preview-frame {
    max-height: none;
    padding: 10px;
  }

  .cv-sheet {
    width: 100%;
    min-height: 0;
    font-size: 8pt;
  }

  .cv-name {
    font-size: 22pt;
  }

  .cv-role {
    font-size: 9pt;
  }

  .cv-contact-list,
  .cv-entry-heading time {
    font-size: 7pt;
  }

  .template-europass .cv-sidebar {
    padding: 31mm 6mm 11mm;
  }

  .template-europass .cv-main {
    padding: 12mm 8mm 11mm;
  }

  .template-berlin,
  .template-hamburg {
    padding: 12mm 9mm;
  }

  .template-munich {
    padding: 0 9mm 12mm;
  }

  .template-munich .cv-header {
    margin-inline: -9mm;
    padding: 12mm 9mm 10mm;
  }

  .guidance-screen {
    display: block;
    padding-block: 25px 50px;
  }

  .guidance-shell h1 {
    font-size: 43px;
  }

  .guidance-comparison {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .comparison-arrow {
    margin: 0 auto;
    transform: rotate(90deg);
  }

  .guidance-comparison > div {
    min-height: 150px;
  }

  .designs-header {
    display: block;
  }

  .free-access-state {
    width: fit-content;
    margin-top: 18px;
  }

  .design-card {
    min-height: 420px;
  }

  .editor-topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .editor-export-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .editor-download-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .editor-download-actions > .button {
    width: 100%;
  }

  .page-limit-inline {
    width: 100%;
    text-align: left;
  }

  .editor-topbar h1 {
    font-size: 28px;
  }

  .editor-topbar .button {
    min-height: 44px;
    padding-inline: 14px;
    font-size: 11px;
  }

  .template-pills button {
    min-height: 44px;
  }

  .modal-shell {
    padding: 28px 20px 22px;
  }

  .page-limit-card,
  .career-price-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .career-offer-actions {
    grid-template-columns: 1fr;
  }

  .free-download-actions {
    grid-template-columns: 1fr;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .entry-editor-grid {
    grid-template-columns: 1fr;
  }

  .structured-editor-heading {
    display: grid;
    grid-template-columns: 1fr;
  }

  .structured-editor-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .structured-editor-actions .text-button {
    justify-content: center;
  }

  .entry-editor-card .entry-editor-wide {
    grid-column: auto;
  }

  .footer-inner,
  .footer-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    justify-content: center;
    padding-block: 35px;
  }
}

@media (max-width: 430px) {
  .brand-copy strong {
    font-size: 13px;
  }

  .path-badge {
    max-width: 155px;
    text-align: right;
  }

  .privacy-card {
    display: block;
  }

  .privacy-icon {
    margin-bottom: 14px;
  }

  .workspace-topbar,
  .result-header {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .workspace-topbar .back-link,
  .editor-topbar .back-link {
    margin-bottom: 3px;
  }

  .result-header > div:first-child > p:last-child {
    grid-column: 1 / -1;
  }

  .message {
    max-width: 94%;
  }

  .preview-toolbar > span {
    display: none;
  }

  .template-europass {
    grid-template-columns: 34% 66%;
  }

  .template-berlin .cv-body-columns,
  .template-munich .cv-body-columns,
  .template-hamburg .cv-body-columns {
    gap: 5mm;
  }

  .cv-section-title {
    font-size: 7.5pt;
  }

  .cv-entry-heading {
    display: block;
  }

  .cv-entry-heading time {
    display: block;
    margin-top: 2px;
  }

  .confirm-actions {
    display: grid;
  }
}

.print-measure-sheet {
  width: 210mm !important;
  min-height: 0 !important;
  padding: 0;
  font-size: 10.5pt;
  line-height: 1.45;
}

.print-measure-sheet .cv-name {
  font-size: 29pt;
}

.print-measure-sheet.template-berlin .cv-name {
  font-size: 34pt;
}

.print-measure-sheet.template-hamburg .cv-name {
  font-size: 36pt;
}

.print-measure-sheet .cv-role {
  font-size: 12pt;
}

.print-measure-sheet .cv-contact-list {
  font-size: 8.8pt;
}

.print-measure-sheet .cv-entry-heading {
  display: grid;
}

.print-measure-sheet .cv-entry-heading time {
  display: inline;
  margin-top: 0;
  font-size: 8.5pt;
}

.print-measure-sheet .cv-section-title {
  font-size: 9.5pt;
}

.print-measure-sheet.template-europass {
  grid-template-columns: 31% 69%;
}

.print-measure-sheet.template-europass .cv-sidebar {
  padding: 45mm 10mm 18mm;
}

.print-measure-sheet.template-europass .cv-main {
  padding: 22mm 16mm 18mm;
}

.print-measure-sheet.template-berlin,
.print-measure-sheet.template-hamburg {
  padding: 20mm 20mm 18mm;
}

.print-measure-sheet.template-munich {
  padding: 0 18mm 18mm;
}

.print-measure-sheet.template-munich .cv-header {
  margin: 0 -18mm 12mm;
  padding: 20mm 18mm 15mm;
}

.print-measure-sheet.template-berlin .cv-body-columns {
  gap: 13mm;
}

.print-measure-sheet.template-munich .cv-body-columns,
.print-measure-sheet.template-hamburg .cv-body-columns {
  gap: 12mm;
}

.print-measure-host .cv-section,
.print-measure-host .cv-entry {
  break-inside: auto;
}

.print-measure-host .cv-section-title,
.print-measure-host .cv-entry-heading,
.print-measure-host .cv-entry-meta {
  break-after: avoid;
}

.print-measure-host .cv-entry-description p,
.print-measure-host .cv-entry-highlights li {
  orphans: 2;
  widows: 2;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  .button,
  .path-card,
  .chat-panel,
  .review-panel,
  .modal-shell,
  input,
  select,
  textarea {
    border: 1px solid CanvasText;
  }
}

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

  html,
  body {
    width: 210mm;
    min-width: 210mm;
    min-height: 0;
    margin: 0;
    background: white;
  }

  body * {
    visibility: hidden !important;
  }

  body[data-print-target="free"] #free-cv-sheet,
  body[data-print-target="free"] #free-cv-sheet *,
  body[data-print-target="premium"] #premium-cv-sheet,
  body[data-print-target="premium"] #premium-cv-sheet * {
    visibility: visible !important;
  }

  body[data-print-target="free"] #free-cv-sheet,
  body[data-print-target="premium"] #premium-cv-sheet {
    position: absolute;
    top: 0;
    left: 0;
    width: 210mm;
    min-height: 281mm;
    overflow: visible;
    box-shadow: none;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body[data-print-target="premium"] .template-hamburg::before {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    height: auto;
  }

  .cv-section {
    break-inside: auto;
  }

  .cv-section-title,
  .cv-entry-heading,
  .cv-entry-meta {
    break-after: avoid;
  }

  .cv-entry,
  .cv-entry-experience,
  .cv-entry-long {
    break-inside: auto;
  }

  .cv-entry-description p,
  .cv-entry-highlights li {
    orphans: 2;
    widows: 2;
  }
}
