* {
  box-sizing: border-box;
}

:root {
  --topbar-height: 88px;
  --rl-bg:
    radial-gradient(120% 100% at 10% 20%, rgba(112, 214, 255, 0.12), transparent 60%),
    radial-gradient(100% 50% at 120% 10%, rgba(255, 178, 71, 0.13), transparent 70%),
    radial-gradient(120% 50% at 10% 80%, rgba(125, 248, 207, 0.08), transparent 70%),
    radial-gradient(120% 80% at 90% 90%, rgba(121, 112, 245, 0.08), transparent 70%),
    linear-gradient(160deg, #0a0c12 0%, #0b0e16 45%, #090c12 100%);
  --rl-surface: #0f1115;
  --rl-surface-strong: #0c0c0c;
  --rl-surface-soft: rgba(255, 255, 255, 0.05);
  --rl-border: rgba(255, 255, 255, 0.1);
  --rl-text: whitesmoke;
  --rl-muted: rgba(255, 255, 255, 0.72);
  --rl-accent: #70d6ff;
  --rl-accent-strong: #4bbfe9;
  --rl-accent-warm: #ffb247;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--rl-bg);
  overflow: hidden;
}

.mobile-builder-notice {
  display: none;
}

.mobile-builder-notice-card {
  width: min(420px, 100%);
  padding: 2rem 1.6rem;
  border: 1px solid var(--rl-border);
  border-radius: 24px;
  background:
    radial-gradient(120% 100% at 10% 20%, rgba(112, 214, 255, 0.06), transparent 60%),
    radial-gradient(100% 80% at 100% 0, rgba(255, 178, 71, 0.08), transparent 60%),
    rgba(15, 17, 21, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  text-align: center;
  color: var(--rl-text);
}

.mobile-builder-notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(255, 178, 71, 0.12);
  color: var(--rl-accent-warm);
  font-size: 1.4rem;
}

.mobile-builder-notice-eyebrow {
  margin: 0 0 0.75rem;
  color: var(--rl-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mobile-builder-notice-card h2 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.15;
}

.mobile-builder-notice-copy {
  margin: 1rem 0 0;
  color: var(--rl-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.mobile-builder-notice-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  margin-top: 1.4rem;
  padding: 0.95rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 178, 71, 0.22);
  background: linear-gradient(180deg, #ffb247 0%, #eb952f 100%);
  color: #17120b;
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(255, 178, 71, 0.16);
}

.mobile-builder-notice-link:hover {
  background: linear-gradient(180deg, #ffc36b 0%, #f0a44a 100%);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(10, 12, 18, 0.92);
  border-bottom: 1px solid var(--rl-border);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  color: var(--rl-text);
}

.brand h1 {
  margin: 0;
  font-size: 1.5rem;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.brand-link:hover {
  color: var(--rl-accent-warm);
}

.brand p {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  align-items: center;
  position: relative;
}

button {
  border: 1px solid rgba(112, 214, 255, 0.14);
  background: linear-gradient(180deg, var(--rl-accent) 0%, var(--rl-accent-strong) 100%);
  color: #081018;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(112, 214, 255, 0.18);
}

button:hover {
  background: linear-gradient(180deg, #86e0ff 0%, #5ccced 100%);
}

button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.topbar-actions > button,
.topbar-actions .template-picker > button {
  border: 1px solid rgba(255, 178, 71, 0.22);
  background: linear-gradient(180deg, #ffb247 0%, #eb952f 100%);
  color: #17120b;
  font-weight: 500;
  box-shadow: 0 10px 24px rgba(255, 178, 71, 0.16);
}

.topbar-actions > button:hover,
.topbar-actions .template-picker > button:hover {
  background: linear-gradient(180deg, #ffc36b 0%, #f0a44a 100%);
}

.template-picker {
  position: relative;
}

.template-panel {
  position: absolute;
  top: calc(100% + 0.9rem);
  right: 0;
  width: min(560px, calc(100vw - 2rem));
  max-height: calc(100vh - var(--topbar-height) - 2rem);
  padding: 1rem;
  border: 1px solid var(--rl-border);
  border-radius: 22px;
  background:
    radial-gradient(120% 100% at 10% 20%, rgba(112, 214, 255, 0.07), transparent 60%),
    radial-gradient(100% 80% at 100% 0, rgba(255, 178, 71, 0.08), transparent 60%),
    rgba(15, 17, 21, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 30;
}

.template-panel[hidden] {
  display: none;
}

.template-panel-header {
  margin-bottom: 1rem;
  color: var(--rl-text);
}

.template-panel-header h2 {
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
}

.template-panel-header p {
  margin: 0;
  color: var(--rl-muted);
  font-size: 0.92rem;
}

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

.template-card {
  min-height: 240px;
  padding: 0.85rem;
  border: 1px solid var(--rl-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  text-align: left;
}

.template-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.template-card.is-selected {
  border-color: rgba(112, 214, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(112, 214, 255, 0.18);
}

.template-card-preview {
  height: 184px;
  border-radius: 14px;
  background: linear-gradient(180deg, #dbe5f1 0%, #c5d3e3 100%);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

.template-card-name {
  display: block;
  color: var(--rl-text);
  font-size: 1rem;
  font-weight: 700;
}

.template-card-description {
  display: block;
  color: var(--rl-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.template-card-preview-canvas {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  height: 100%;
}

.template-card-preview-canvas .resume-page {
  width: 816px;
  height: 1056px;
  box-shadow: none;
  overflow: hidden;
  transform: scale(0.175);
  transform-origin: top center;
  flex: 0 0 auto;
  pointer-events: none;
  color: #111827;
}

.template-card-preview-canvas .resume-document {
  min-height: 100%;
}

.app-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  height: calc(100vh - var(--topbar-height));
}

.form-panel {
  background:
    radial-gradient(120% 100% at 10% 20%, rgba(112, 214, 255, 0.05), transparent 60%),
    radial-gradient(100% 60% at 100% 0, rgba(255, 178, 71, 0.05), transparent 55%),
    var(--rl-surface-strong);
  border-right: 1px solid var(--rl-border);
  color: var(--rl-text);
  padding: 1.5rem;
  height: 100%;
  overflow-y: auto;
}

.form-panel h2,
.form-panel h3 {
  margin-top: 0;
}

.form-panel-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.form-panel-header h2 {
  margin-bottom: 0;
}

.form-panel-heading {
  width: 100%;
}

.form-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
}

.sidebar-action {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.72rem 1.15rem;
  border-radius: 12px;
  line-height: 1.2;
  text-align: center;
  font-weight: 500;
}

.local-save-note {
  margin: 0.35rem 0 0;
  color: var(--rl-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 18rem;
}

.secondary-button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--rl-border);
  color: var(--rl-text);
  font-weight: 500;
  box-shadow: none;
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.resume-tips-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.resume-tips-modal[hidden] {
  display: none;
}

.resume-tips-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 13, 0.8);
  backdrop-filter: blur(8px);
}

.resume-tips-dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(82vh, 760px);
  overflow-y: auto;
  padding: 1.45rem 1.45rem 1.5rem;
  border: 1px solid var(--rl-border);
  border-radius: 24px;
  background:
    radial-gradient(120% 100% at 10% 20%, rgba(112, 214, 255, 0.07), transparent 60%),
    radial-gradient(100% 80% at 100% 0, rgba(255, 178, 71, 0.09), transparent 60%),
    rgba(15, 17, 21, 0.98);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  color: var(--rl-text);
}

.resume-tips-close {
  position: absolute;
  top: 0.95rem;
  right: 0.95rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--rl-border);
  color: var(--rl-text);
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.resume-tips-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.resume-tips-eyebrow {
  margin: 0 0 0.45rem;
  color: var(--rl-accent-warm);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.resume-tips-dialog h2 {
  margin: 0 0 1rem;
  font-size: 1.85rem;
  line-height: 1.1;
}

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

.resume-tips-section {
  padding: 1rem 1rem 1.1rem;
  border: 1px solid var(--rl-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.resume-tips-section h3 {
  margin: 0 0 0.75rem;
  font-size: 1.02rem;
}

.resume-tips-section ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--rl-muted);
  line-height: 1.65;
}

.disclaimer {
  margin-top: 1.5rem;
  line-height: 1.5rem;
}

.form-section {
  margin-bottom: 1rem;
  border: 1px solid var(--rl-border);
  border-radius: 14px;
  background: var(--rl-surface-soft);
  overflow: hidden;
}

.form-section summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-section summary::-webkit-details-marker {
  display: none;
}

.form-section summary::after {
  content: "+";
  font-size: 1.1rem;
}

.form-section[open] summary::after {
  content: "-";
}

.form-section-content {
  padding: 1.1rem 1.1rem;
  border-top: 1px solid var(--rl-border);
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0 0.9rem;
}

.section-heading h3 {
  margin: 0;
}

.section-controls {
  display: flex;
  gap: 0.5rem;
}

.section-control {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
}

.section-control:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.detail-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.detail-list-heading label {
  margin-bottom: 0;
}

.detail-list-controls {
  display: flex;
  gap: 0.45rem;
}

.detail-control {
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.detail-control:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.detail-input-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.detail-input-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.detail-input-bullet {
  color: #dcecff;
  font-size: 0;
  line-height: 1;
  width: 0.85rem;
  flex: 0 0 0.85rem;
}

.detail-input-bullet::before {
  content: "\2022";
  font-size: 1.15rem;
}

.detail-input-row input {
  flex: 1;
}

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.entry-card {
  padding: 1rem;
  border: 1px solid var(--rl-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.entry-card-title {
  margin: 0 0 1rem;
  color: var(--rl-accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

label {
  font-weight: 600;
  margin-bottom: 0.4rem;
}

input,
textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  font: inherit;
  background: rgba(7, 10, 16, 0.9);
  color: var(--rl-text);
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

#skills,
#skills::placeholder {
  line-height: 1.55;
}

.preview-panel {
  padding: 2rem;
  height: 100%;
  overflow-y: auto;
  overflow-x: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.resume-preview-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.resume-export-stage {
  position: absolute;
  top: 0;
  left: -20000px;
  width: 816px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  pointer-events: none;
}

.resume-page {
  width: 816px;
  background: white;
  height: 1056px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
}

.resume-document {
  width: 100%;
  min-height: 100%;
  padding: 3rem;
}

.resume-header {
  border-bottom: 2px solid #111827;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.resume-header h1 {
  margin: 0;
  font-size: 2.2rem;
}

.resume-header p {
  margin: 0.35rem 0 0;
}

.resume-section {
  margin-bottom: 1.5rem;
}

.resume-section h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.resume-item-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.resume-subline {
  margin: 0.35rem 0 0.5rem;
  color: #4b5563;
}

.resume-copy {
  white-space: pre-line;
}

.resume-detail-list {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.5;
}

.resume-detail-list li + li {
  margin-top: 0.25rem;
}

.resume-skill-list {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.55;
}

.resume-skill-list li + li {
  margin-top: 0.25rem;
}

.resume-page.template-one .resume-document {
  padding: 2.4rem 2.7rem;
  font-family: Georgia, "Times New Roman", serif;
  color: #1f1f1f;
}

.resume-page.template-one .resume-header {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 1rem;
  text-align: center;
}

.resume-page.template-one .resume-header h1 {
  font-size: 2.45rem;
  letter-spacing: -0.03em;
}

.resume-page.template-one .resume-header p:first-of-type {
  margin-top: 0.25rem;
  font-size: 0.98rem;
  font-style: italic;
}

.resume-page.template-one .resume-header p:last-of-type {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  line-height: 1.45;
}

.resume-page.template-one .resume-section {
  margin-bottom: 1.15rem;
}

.resume-page.template-one .resume-section h2 {
  margin-bottom: 0.45rem;
  padding-top: 0.18rem;
  border-top: 1px solid #262626;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.resume-page.template-one .resume-item + .resume-item {
  margin-top: 0.85rem;
}

.resume-page.template-one .resume-item-top {
  align-items: baseline;
  margin-bottom: 0.12rem;
}

.resume-page.template-one .resume-item-top strong {
  font-size: 1rem;
}

.resume-page.template-one .resume-item-top span:last-child {
  font-size: 0.88rem;
}

.resume-page.template-one .resume-subline {
  margin: 0.28rem 0 0.38rem;
  color: #4d4d4d;
  font-size: 0.9rem;
  font-style: italic;
}

.resume-page.template-one .resume-copy,
.resume-page.template-one .resume-item,
.resume-page.template-one .resume-skill-list {
  margin-left: 0.7rem;
}

.resume-page.template-one .resume-copy,
.resume-page.template-one .resume-detail-list,
.resume-page.template-one .resume-skill-list {
  font-size: 0.9rem;
  line-height: 1.45;
}

.resume-page.template-one .resume-skill-list {
  column-count: 2;
  column-gap: 2rem;
}

.resume-page.template-one .resume-skill-list li {
  break-inside: avoid;
  margin-bottom: 0.28rem;
}

.resume-page.template-two {
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
}

.resume-page.template-two .resume-document {
  position: relative;
  padding: 0 1.5rem 2rem;
}

.resume-page.template-two .resume-document::after {
  content: "";
  position: absolute;
  right: 1.5rem;
  bottom: 1.25rem;
  left: 1.5rem;
  height: 6px;
  background: #1f3a56;
}

.resume-page.template-two .template-two-header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.88fr);
  gap: 1.4rem;
  align-items: start;
  margin: 0 -1.5rem;
  padding: 1.35rem 1.5rem 1.25rem;
  border-bottom: none;
  background: #1f3a56;
  color: white;
}

.resume-page.template-two .template-two-header h1 {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.resume-page.template-two .template-two-header-main p {
  margin: 0.35rem 0 0;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
}

.resume-page.template-two .template-two-header-contact {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-start;
  padding-top: 0.15rem;
  font-size: 0.82rem;
  line-height: 1.4;
}

.resume-page.template-two .template-two-header-contact-row {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 0.65rem;
  align-items: center;
}

.resume-page.template-two .template-two-header-contact-row .template-four-contact-icon {
  width: 0.95rem;
  height: 0.95rem;
  color: white;
}

.resume-page.template-two .template-two-header-contact-row span:last-child {
  color: rgba(255, 255, 255, 0.95);
}

.resume-page.template-two .template-two-summary {
  margin: 1rem 1rem 1.35rem;
  padding: 0.9rem 1.15rem;
  background: #f2f2f2;
}

.resume-page.template-two .template-two-summary-copy {
  margin: 0;
  color: #2f2f2f;
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: center;
  font-style: italic;
}

.resume-page.template-two .resume-section {
  margin: 0 1rem 1.5rem;
}

.resume-page.template-two .resume-section h2 {
  margin-bottom: 0.8rem;
  color: #1f3a56;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

.resume-page.template-two .resume-item + .resume-item {
  margin-top: 1.45rem;
}

.resume-page.template-two .resume-item-top {
  align-items: baseline;
}

.resume-page.template-two .resume-item-top strong {
  font-size: 1rem;
}

.resume-page.template-two .resume-item-top span:last-child {
  font-size: 0.88rem;
  font-style: italic;
}

.resume-page.template-two .resume-subline {
  margin: 0.18rem 0 0.7rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid #36516d;
  color: #27384b;
  font-size: 0.88rem;
  font-style: italic;
}

.resume-page.template-two .resume-detail-list {
  padding-left: 1.15rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.resume-page.template-two .resume-detail-list li + li {
  margin-top: 0.28rem;
}

.resume-page.template-two .template-two-skill-list {
  margin: 0;
  padding-left: 1.2rem;
  column-count: 2;
  column-gap: 2rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.resume-page.template-two .template-two-skill-list li {
  break-inside: avoid;
  margin-bottom: 0.28rem;
}

.resume-page.template-three {
  background: linear-gradient(180deg, #fdfefe 0%, #f6f9fd 100%);
}

.resume-page.template-three .resume-document {
  position: relative;
  padding: 1.85rem 1.9rem 2rem;
  font-family: Arial, Helvetica, sans-serif;
  color: #1e2937;
}

.resume-page.template-three .resume-header {
  position: relative;
  margin-bottom: 1.15rem;
  padding: 0;
  border-bottom: none;
  color: #111827;
}

.resume-page.template-three .resume-header h1 {
  margin: 0;
  font-size: 2.55rem;
  letter-spacing: -0.03em;
}

.resume-page.template-three .resume-header p {
  margin: 0;
}

.resume-page.template-three .resume-header p:first-of-type {
  margin-top: 0.35rem;
  color: #3479f6;
  font-size: 1.04rem;
  font-weight: 700;
}

.resume-page.template-three .template-three-contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1rem;
  margin-top: 0.55rem;
  color: #475569;
  font-size: 0.82rem;
}

.resume-page.template-three .template-three-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.resume-page.template-three .template-three-contact-item .template-four-contact-icon {
  width: 0.82rem;
  height: 0.82rem;
  color: #475569;
  font-size: 0.78rem;
}

.resume-page.template-three .template-three-body {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.92fr);
  gap: 1.4rem;
  align-items: start;
}

.resume-page.template-three .template-three-main,
.resume-page.template-three .template-three-sidebar {
  min-width: 0;
}

.resume-page.template-three.template-three-continuation .template-three-body {
  grid-template-columns: 1fr;
}

.resume-page.template-three .resume-section {
  margin-bottom: 1rem;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.resume-page.template-three .resume-section h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
  padding: 0;
  color: #1f1f1f;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.resume-page.template-three .resume-section h2::after {
  content: "";
  flex: 1;
  height: 3px;
  background: #1f1f1f;
}

.resume-page.template-three .template-three-main-section + .template-three-main-section,
.resume-page.template-three .template-three-sidebar-section + .template-three-sidebar-section {
  margin-top: 1rem;
}

.resume-page.template-three .resume-item + .resume-item {
  margin-top: 1.15rem;
  padding-top: 0.95rem;
  border-top: 1px dashed rgba(100, 116, 139, 0.35);
}

.resume-page.template-three .template-three-main .resume-copy {
  margin: 0;
  color: #556275;
  font-size: 0.88rem;
  line-height: 1.48;
}

.resume-page.template-three .template-three-main .resume-item-top {
  align-items: baseline;
  gap: 1rem;
}

.resume-page.template-three .template-three-main .resume-item-top strong {
  font-size: 0.98rem;
}

.resume-page.template-three .template-three-main .resume-item-top span:last-child {
  font-size: 0.8rem;
  color: #64748b;
}

.resume-page.template-three .template-three-main .resume-subline {
  margin: 0.18rem 0 0.45rem;
  color: #3479f6;
  font-size: 0.89rem;
  font-weight: 700;
}

.resume-page.template-three .template-three-detail-list,
.resume-page.template-three .template-three-skill-list {
  margin: 0;
  padding-left: 1rem;
  color: #4b5563;
  font-size: 0.86rem;
  line-height: 1.45;
}

.resume-page.template-three .template-three-detail-list li + li,
.resume-page.template-three .template-three-skill-list li + li {
  margin-top: 0.28rem;
}

.resume-page.template-three .template-three-sidebar .resume-item {
  padding-bottom: 0.7rem;
}

.resume-page.template-three .template-three-sidebar .resume-item + .resume-item {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
}

.resume-page.template-three .template-three-sidebar .resume-item-top {
  align-items: baseline;
  gap: 0.6rem;
}

.resume-page.template-three .template-three-sidebar .resume-item-top strong {
  font-size: 0.9rem;
}

.resume-page.template-three .template-three-sidebar .resume-item-top span:last-child {
  margin-left: auto;
  font-size: 0.76rem;
  color: #64748b;
}

.resume-page.template-three .template-three-sidebar .resume-subline {
  margin: 0.22rem 0 0;
  color: #3479f6;
  font-size: 0.84rem;
  font-weight: 700;
}

.resume-page.template-three .template-three-education-list {
  display: flex;
  flex-direction: column;
}

.resume-page.template-three.template-three-continuation .template-three-sidebar {
  display: none;
}

.resume-page.template-four {
  border: 1px solid #222;
  background: white;
}

.resume-page.template-four .resume-document {
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.resume-page.template-four .resume-header {
  margin: 0;
  padding: 2.2rem 2.4rem 1.8rem;
  border-bottom: 1px solid #222;
  text-align: center;
}

.resume-page.template-four .resume-header h1 {
  font-size: 2.3rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.resume-page.template-four .resume-header p {
  margin-top: 0.65rem;
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.template-four-body {
  display: grid;
  grid-template-columns: 35% 65%;
  flex: 1;
  min-height: 0;
}

.template-four-sidebar {
  background: #d9d9d9;
  border-right: 1px solid #222;
  padding: 1.2rem 1.2rem 1.6rem;
  min-height: 100%;
}

.template-four-main {
  padding: 1.2rem 1.6rem 1.6rem;
}

.template-four-section {
  margin-bottom: 0;
}

.template-four-section h2 {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.template-four-sidebar-section + .template-four-sidebar-section,
.template-four-main-section + .template-four-main-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 4px dotted #1f2937;
}

.template-four-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.template-four-contact-row {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: 0.65rem;
  align-items: center;
  font-size: 0.92rem;
  line-height: 1.4;
}

.template-four-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: #111827;
  font-size: 0.95rem;
  line-height: 1;
}

.template-four-contact-icon i {
  display: block;
  line-height: 1;
}

.template-four-skill-list {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.template-four-sidebar-education .resume-item + .resume-item {
  margin-top: 0.95rem;
}

.template-four-sidebar-education .resume-item-top {
  align-items: baseline;
  gap: 0.6rem;
}

.template-four-sidebar-education .resume-item-top strong {
  font-size: 0.94rem;
}

.template-four-sidebar-education .resume-item-top span:last-child {
  margin-left: auto;
  white-space: nowrap;
  font-size: 0.8rem;
}

.template-four-sidebar-education .resume-subline {
  margin: 0.3rem 0 0;
  color: #111827;
  font-size: 0.84rem;
  line-height: 1.35;
}

.template-four-main .resume-copy {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.template-four-main .resume-item + .resume-item {
  margin-top: 1.3rem;
}

.template-four-main .resume-item-top {
  align-items: baseline;
  gap: 1rem;
}

.template-four-main .resume-item-top strong {
  font-size: 1.05rem;
}

.template-four-main .resume-item-top span:last-child {
  margin-left: auto;
  white-space: nowrap;
}

.template-four-main .resume-subline {
  margin: 0.45rem 0 0.65rem;
  color: #111827;
}

.template-four-detail-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.template-four-detail-list li + li {
  margin-top: 0.25rem;
}

.resume-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 6;
  overflow: hidden;
}

.resume-watermark-text {
  padding: 1rem 1.5rem;
  border: 5px solid rgba(17, 24, 39, 0.12);
  color: rgba(17, 24, 39, 0.11);
  font-size: 4.15rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transform: rotate(-28deg);
  white-space: nowrap;
}

@media (max-width: 1100px) {
  body {
    overflow: auto;
  }

  .app-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .form-panel {
    border-right: none;
    border-bottom: 1px solid var(--rl-border);
    height: auto;
  }

  .preview-panel {
    padding: 1rem;
    height: auto;
  }

  .resume-page {
    width: 816px;
  }

  .template-panel {
    right: auto;
    left: 0;
  }
}

@media (max-width: 900px) {
  body {
    overflow: auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-builder-notice {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background:
      radial-gradient(120% 100% at 10% 20%, rgba(112, 214, 255, 0.12), transparent 60%),
      radial-gradient(100% 60% at 100% 0, rgba(255, 178, 71, 0.15), transparent 55%),
      rgba(8, 10, 14, 0.96);
    z-index: 100;
  }

  .topbar,
  .app-layout {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .template-panel {
    width: min(100vw - 2rem, 520px);
  }

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

  .form-panel-actions {
    flex-direction: column;
  }

  .sidebar-action {
    width: 100%;
  }

  .resume-tips-modal {
    padding: 1rem;
  }

  .resume-tips-dialog {
    padding: 1.2rem 1.15rem 1.2rem;
  }

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

@media print {
  body {
    background: white;
  }

  .topbar,
  .form-panel {
    display: none;
  }

  .app-layout {
    display: block;
  }

  .preview-panel {
    padding: 0;
    overflow: visible;
  }

  .resume-preview-stack {
    gap: 0;
  }

  .resume-page {
    box-shadow: none;
    width: 100%;
    height: auto;
    page-break-after: always;
  }

  .resume-page:last-child {
    page-break-after: auto;
  }
}
