:root {
  --bg: #f3f5f9;
  --shell: #ffffff;
  --hero: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
  --card: #ffffff;
  --card-soft: #f8fbff;
  --text: #0f172a;
  --muted: #475569;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, 0.1);
  --line: #e5e7eb;
  --line-strong: #dbe2ea;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.06);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}

body.page-home {
  color: #eef2ff;
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(94, 234, 212, 0.16), transparent 26%),
    linear-gradient(180deg, #0b1020 0%, #0f1530 100%);
}

body.page-home a {
  color: inherit;
}

body.page-home a:hover {
  text-decoration: none;
}

.landing-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(11, 16, 32, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.landing-brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c5cff, #5eead4);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(124, 92, 255, 0.35);
}

.landing-nav-links {
  display: flex;
  gap: 22px;
  color: #b8c0e0;
  font-size: 15px;
}

.landing-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c5cff, #6d7dff);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(124, 92, 255, 0.3);
}

.landing-hero {
  padding: 72px 0 38px;
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 38px;
  align-items: center;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.15);
  border: 1px solid rgba(124, 92, 255, 0.28);
  color: #ddd6fe;
  font-size: 14px;
  font-weight: 600;
}

.landing-hero h1 {
  margin: 18px 0;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.landing-lead {
  max-width: 680px;
  margin: 0 0 24px;
  color: #b8c0e0;
  font-size: 18px;
  line-height: 1.7;
}

.landing-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.landing-cta-row-center {
  justify-content: center;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.landing-btn:hover {
  transform: translateY(-2px);
}

.landing-btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #7c5cff, #6d7dff);
  box-shadow: 0 18px 34px rgba(124, 92, 255, 0.32);
}

.landing-btn-secondary {
  color: #eef2ff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.landing-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  color: #b8c0e0;
  font-size: 14px;
}

.landing-trial-note {
  max-width: 620px;
  margin-top: 18px;
  color: #dbeafe;
  font-size: 14px;
  line-height: 1.8;
}

.landing-proof span::before {
  content: "✓";
  margin-right: 8px;
  color: #5eead4;
  font-weight: 800;
}

.landing-panel,
.landing-step,
.landing-feature,
.landing-testimonial,
.landing-stat,
.landing-faq details {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.landing-panel {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.06));
  border-color: rgba(255, 255, 255, 0.12);
}

.landing-hero-card {
  padding: 18px;
}

.landing-score-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-score-title {
  color: #b8c0e0;
  font-size: 15px;
}

.landing-score-label {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
  font-size: 13px;
  font-weight: 700;
}

.landing-score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.landing-mini-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.landing-mini-card h3 {
  margin: 0 0 8px;
  color: #b8c0e0;
  font-size: 15px;
  font-weight: 600;
}

.landing-big-number {
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.landing-danger {
  color: #fca5a5;
}

.landing-success {
  color: #86efac;
}

.landing-bar-wrap {
  height: 10px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.landing-bar {
  height: 100%;
  border-radius: inherit;
}

.landing-bar-bad {
  width: 62%;
  background: linear-gradient(90deg, #fb7185, #f59e0b);
}

.landing-bar-good {
  width: 91%;
  background: linear-gradient(90deg, #22c55e, #5eead4);
}

.landing-improvements {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.landing-improvement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  color: #b8c0e0;
  font-size: 14px;
}

.landing-improvement span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.22);
  color: #eef2ff;
  font-size: 13px;
  font-weight: 800;
}

.landing-improvement b {
  color: #eef2ff;
}

.landing-stats {
  padding: 28px 0 8px;
}

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

.landing-stat {
  padding: 22px;
  text-align: center;
}

.landing-stat-num {
  margin-bottom: 4px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.landing-stat-label {
  color: #b8c0e0;
  font-size: 14px;
}

.landing-section {
  padding: 72px 0;
}

.landing-section-tight {
  padding-top: 28px;
}

.landing-section-head {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

.landing-section-head-left {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.landing-section-head h2,
.landing-cta-banner h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.landing-section-head p,
.landing-cta-banner p,
.landing-card-copy,
.landing-testimonial p,
.landing-faq p,
.landing-feature p,
.landing-step p {
  margin: 0;
  color: #b8c0e0;
  font-size: 17px;
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.landing-step,
.landing-feature,
.landing-testimonial {
  padding: 24px;
}

.landing-step-index {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c5cff, #5eead4);
  color: #ffffff;
  font-weight: 900;
}

.landing-step h3,
.landing-feature h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.landing-feature-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: rgba(124, 92, 255, 0.16);
  border: 1px solid rgba(124, 92, 255, 0.24);
  font-size: 22px;
}

.landing-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.landing-workspace-main,
.landing-workspace-side,
.landing-workspace-recent {
  display: grid;
  gap: 18px;
}

.landing-workspace-card,
.landing-workspace-quick-card,
.landing-recent-card {
  padding: 24px;
}

.landing-workspace-eyebrow {
  margin-bottom: 10px;
  color: #b8c0e0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.landing-workspace-card h3,
.landing-workspace-quick-card h3,
.landing-recent-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.landing-workspace-card p,
.landing-workspace-quick-card p,
.landing-recent-card p {
  margin: 0;
  color: #b8c0e0;
  line-height: 1.8;
}

.landing-workspace-meta,
.landing-recent-meta,
.landing-chip-row,
.landing-workspace-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.landing-workspace-meta {
  margin-top: 18px;
}

.landing-workspace-meta span,
.landing-recent-meta span,
.landing-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #dbeafe;
  font-size: 13px;
  font-weight: 600;
}

.landing-workspace-checklist {
  margin-top: 18px;
}

.landing-workspace-checklist-stacked {
  flex-direction: column;
}

.landing-workspace-check {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-workspace-check strong {
  font-size: 15px;
}

.landing-workspace-check span {
  color: #86efac;
  font-size: 13px;
  font-weight: 700;
}

.landing-workspace-note {
  margin-top: 18px;
}

.landing-workspace-focus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.landing-workspace-focus-item {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-workspace-focus-item span {
  display: block;
  margin-bottom: 8px;
  color: #b8c0e0;
  font-size: 13px;
  font-weight: 700;
}

.landing-workspace-focus-item strong {
  display: block;
  font-size: 20px;
  line-height: 1.4;
}

.landing-workspace-quick-grid,
.landing-recent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.landing-workspace-quick-card a,
.landing-recent-card a {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  color: #dbeafe;
  font-weight: 700;
}

.landing-workspace-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.landing-workspace-metric {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-workspace-metric strong {
  display: block;
  margin-bottom: 6px;
  font-size: 24px;
  line-height: 1.2;
}

.landing-workspace-metric span {
  color: #b8c0e0;
  font-size: 13px;
}

.landing-workspace-empty {
  text-align: left;
}

.landing-compare-panel {
  padding: 20px;
}

.landing-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.landing-stars {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 12px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.12);
  color: #99f6e4;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.landing-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.landing-person span {
  display: block;
  color: #b8c0e0;
  font-size: 14px;
}

.landing-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #334155, #64748b);
  font-weight: 800;
}

.landing-faq {
  display: grid;
  gap: 14px;
  max-width: 850px;
  margin: 0 auto;
}

.landing-faq details {
  padding: 18px 20px;
}

.landing-faq summary {
  cursor: pointer;
  font-weight: 700;
}

.landing-faq p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.75;
}

.landing-cta-banner {
  padding: 34px;
  text-align: center;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(94, 234, 212, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.landing-cta-banner p {
  max-width: 720px;
  margin: 0 auto 22px;
}

.landing-footer {
  padding: 28px 0 50px;
  color: #b8c0e0;
  font-size: 14px;
}

.landing-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin-top: 0;
}

a,
button,
input,
textarea {
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.page {
  width: min(100% - 32px, 1880px);
  margin: 20px auto;
  background: var(--shell);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 18px 44px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

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

.brand-link:hover {
  text-decoration: none;
}

.brand-shell {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, #4f8cff 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.brand {
  display: grid;
  gap: 2px;
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-name {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  color: #334155;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.topnav a:hover {
  background: #f1f5f9;
}

.topnav a.active {
  color: var(--primary);
  background: #eff6ff;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, #4f8cff 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.user-meta {
  display: grid;
  gap: 2px;
}

.user-meta strong {
  font-size: 14px;
  line-height: 1.1;
}

.user-meta span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.topbar-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.topbar-action.active,
.topbar-action:hover {
  background: #eff6ff;
  color: var(--primary);
  text-decoration: none;
}

.app-content {
  padding: 0 0 48px;
}

.page-intro {
  padding: 42px 44px 10px;
}

.page-intro h1 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.hero-copy,
.section-head p,
small,
.empty,
.answer,
.history-card span,
.journey-card span,
.feature-card p,
.status-card p {
  color: var(--muted);
}

.hero-copy {
  margin-bottom: 0;
  max-width: 860px;
  font-size: 16px;
  line-height: 1.8;
}

.home-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 56px 44px 64px;
  background: var(--hero);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.home-hero-inner {
  max-width: 880px;
}

.home-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.home-hero .hero-copy {
  max-width: none;
  font-size: 17px;
}

.hero-actions {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 36px;
}

.cta-button,
.cta-link,
.export-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.cta-button {
  background: linear-gradient(135deg, var(--primary) 0%, #4f8cff 100%);
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

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

.cta-link,
.export-actions a {
  border: 1px solid #93c5fd;
  background: #fff;
  color: var(--primary);
}

.cta-link:hover,
.export-actions a:hover {
  background: #f8fbff;
  text-decoration: none;
}

.home-section {
  padding: 44px 44px 0;
}

.home-section-tight {
  padding-top: 72px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.section-head p {
  margin-bottom: 0;
}

.section-head-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-grid,
.journey-grid,
.results-grid {
  display: grid;
  gap: 32px;
}

.feature-grid,
.journey-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.results-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 44px;
}

.panel,
.card,
.history-card,
.journey-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.panel,
.card {
  padding: 34px;
}

.panel {
  margin: 0 44px 28px;
}

.feature-card {
  min-height: 256px;
}

.feature-icon,
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin-bottom: 22px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 28px;
  font-weight: 700;
}

.feature-icon svg {
  width: 30px;
  height: 30px;
}

.feature-card h2,
.journey-card strong,
.card h2 {
  font-size: 22px;
  line-height: 1.3;
}

.feature-card p,
.journey-card span,
.card p,
.history-card p {
  font-size: 15px;
  line-height: 1.8;
}

.journey-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 220px;
  padding: 34px 28px;
  text-align: center;
  text-decoration: none;
}

.journey-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.step-icon {
  width: 74px;
  height: 74px;
  margin-bottom: 20px;
  border-radius: 50%;
  font-size: 30px;
}

.single-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: end;
}

.single-column-form,
.resume-form,
.repeat-list,
.history-list {
  display: grid;
  gap: 20px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

label {
  font-weight: 700;
}

input[type="file"],
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

input[type="file"] {
  border-style: dashed;
  background: #fcfdff;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

input[type="file"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

button {
  height: 52px;
  padding: 0 18px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, #4f8cff 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ghost-button {
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}

.ghost-button.danger {
  color: #dc2626;
}

.status-card,
.editable-section,
.metric,
.resume-template-shell {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card-soft);
}

.metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.metric-stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.metric strong {
  color: var(--primary);
  font-size: 34px;
}

.metric small {
  color: var(--muted);
  line-height: 1.7;
}

.optimization-summary {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.optimization-meta h2 {
  margin-bottom: 10px;
  font-size: 28px;
  line-height: 1.2;
}

.optimization-meta p {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.optimization-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.optimization-overview-card,
.optimization-highlight-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.optimization-overview-card h3,
.optimization-highlight-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.optimization-overview-card p,
.optimization-highlight-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
}

.optimization-highlight-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.optimization-highlight-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-color: #d6e4ff;
}

.optimization-highlight-card.is-soft {
  background: #fbfdff;
  border-color: var(--line);
}

.optimization-highlight-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 12px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e0edff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.optimization-highlight-badge.is-soft {
  background: #eef2ff;
  color: #475569;
}

.optimization-workbench {
  display: grid;
  gap: 0;
}

.optimization-grid,
.optimization-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.optimization-list {
  display: grid;
  gap: 22px;
}

.optimization-editor-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.optimization-advice-stack {
  display: grid;
  gap: 16px;
}

.optimization-advice {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.optimization-advice.is-ok {
  background: #f8fbff;
}

.optimization-advice.needs-update {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-color: #cfe0ff;
}

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

.optimization-advice-head strong {
  font-size: 16px;
}

.optimization-advice-head span {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.optimization-advice p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
}

.optimization-suggested-text {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f3f7ff;
  color: #334155;
  line-height: 1.8;
  white-space: pre-wrap;
}

.optimization-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.optimization-footer h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

.optimization-footer p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-head.section-head-compact {
  align-items: flex-start;
  margin-bottom: 16px;
}

.section-head.section-head-compact h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.3;
}

.accent {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.card-plain {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.first-block {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.repeat-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

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

.qa-list {
  margin-bottom: 0;
  padding-left: 22px;
}

.qa-list li + li {
  margin-top: 18px;
}

.question {
  margin-bottom: 8px;
  font-weight: 700;
}

.interview-section-list {
  display: grid;
  gap: 18px;
}

.interview-section-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdff;
}

.interview-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.interview-section-head h3 {
  margin-bottom: 6px;
  font-size: 24px;
}

.interview-section-head p {
  max-width: 360px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
}

.interview-qa-list {
  padding-left: 20px;
}

.interview-qa-item {
  padding-left: 8px;
}

.interview-qa-meta,
.interview-answer-card {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #ffffff;
}

.interview-qa-meta strong,
.interview-answer-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.interview-qa-meta p,
.interview-answer-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
}

.history-card {
  padding: 24px;
}

.history-version-card {
  display: grid;
  gap: 18px;
}

.history-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.history-version-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.history-version-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.history-version-company {
  margin-top: 6px;
}

.history-version-score {
  min-width: 160px;
  padding: 16px 18px;
}

.history-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.history-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.history-chip.is-good {
  background: #e7f8ee;
  color: #15803d;
}

.history-chip.is-missing {
  background: #fff1f2;
  color: #be123c;
}

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

.history-create-link {
  min-width: 180px;
}

.history-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.history-dashboard-card,
.history-filter-bar {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdff;
}

.history-dashboard-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.history-dashboard-card strong {
  display: block;
  margin: 10px 0 8px;
  color: var(--primary);
  font-size: 28px;
  line-height: 1.1;
}

.history-dashboard-card p {
  margin-bottom: 0;
}

.history-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.6fr);
  gap: 18px;
  margin-bottom: 20px;
}

.history-filter-field {
  gap: 8px;
}

.history-empty-state {
  margin-top: 12px;
}

.history-card ul {
  margin-bottom: 0;
  padding-left: 20px;
  line-height: 1.8;
}

.page-extract .page-intro {
  display: none;
}

.builder-shell {
  padding: 34px 44px 0;
}

.builder-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 36px;
}

.builder-heading-copy h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.builder-heading-copy p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
  font-weight: 600;
}

.builder-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.builder-import-form {
  display: contents;
}

.builder-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: auto;
  min-width: 136px;
  min-height: 58px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #ffffff;
  color: #111111;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
}

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

.builder-action-primary {
  border-color: #171717;
  background: #171717;
  color: #ffffff;
}

.builder-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.builder-action-icon svg {
  width: 22px;
  height: 22px;
}

.builder-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 26px;
  margin-bottom: 34px;
}

.builder-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.builder-status-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--shadow-soft);
}

.builder-status-card-highlight {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  border-color: #bfdbfe;
}

.builder-status-card strong {
  display: block;
  margin: 8px 0 10px;
  color: var(--primary);
  font-size: 30px;
  line-height: 1;
}

.builder-status-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
}

.builder-status-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.builder-status-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.builder-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  height: auto;
  padding: 0;
  border: none;
  background: transparent;
  color: #6b7280;
  box-shadow: none;
}

.builder-step::after {
  content: "";
  position: absolute;
  top: 27px;
  left: calc(50% + 32px);
  width: calc(100% - 64px);
  height: 6px;
  border-radius: 999px;
  background: #e7ebf1;
}

.builder-step:last-child::after {
  display: none;
}

.builder-step-index {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #e8edf5;
  color: #6b7280;
  font-size: 20px;
  font-weight: 800;
}

.builder-step.active .builder-step-index,
.builder-step.done .builder-step-index {
  background: #2f65ea;
  color: #ffffff;
}

.builder-step-label {
  color: #4b5563;
  font-size: 15px;
  font-weight: 700;
}

.builder-step.active .builder-step-label,
.builder-step.done .builder-step-label {
  color: #111827;
}

.builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.82fr);
  gap: 42px;
  align-items: start;
}

.builder-editor,
.builder-preview-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.builder-card-head {
  margin-bottom: 26px;
}

.builder-card-head h2 {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.2;
}

.builder-card-head p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.builder-step-panel {
  display: none;
}

.builder-step-panel.active {
  display: block;
}

.builder-editor .form-grid {
  gap: 22px 24px;
}

.builder-editor label {
  margin-bottom: 2px;
  color: #1f2937;
  font-size: 15px;
  font-weight: 700;
}

.builder-editor input[type="text"],
.builder-editor input[type="email"],
.builder-editor textarea {
  min-height: 58px;
  border-radius: 12px;
  border-color: #d9dee7;
  background: #ffffff;
  font-size: 16px;
}

.builder-editor textarea {
  min-height: 164px;
}

.builder-advantage-field textarea {
  min-height: 320px;
}

.builder-editor .editable-section {
  padding: 0;
  border: none;
  background: transparent;
}

.work-editor-section {
  display: grid;
  gap: 22px;
}

.education-editor-section {
  display: grid;
  gap: 22px;
}

.project-editor-section {
  display: grid;
  gap: 22px;
}

.education-card-list {
  display: grid;
  gap: 22px;
}

.project-card-list {
  display: grid;
  gap: 22px;
}

.education-card {
  position: relative;
  padding: 28px 32px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.education-card-delete {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #9ca3af;
  box-shadow: none;
}

.education-card-delete:hover {
  background: #f3f4f6;
}

.education-card-delete svg {
  width: 24px;
  height: 24px;
}

.project-card {
  position: relative;
  padding: 28px 32px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.project-card-delete {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #9ca3af;
  box-shadow: none;
}

.project-card-delete:hover {
  background: #f3f4f6;
}

.project-card-delete svg {
  width: 24px;
  height: 24px;
}

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

.education-card .field + .education-row,
.education-card .education-row + .field,
.education-card .field + .field {
  margin-top: 22px;
}

.education-select {
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid #d9dee7;
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

.education-select:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.project-card .field + .field {
  margin-top: 22px;
}

.project-content-input {
  min-height: 170px;
}

.education-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  min-height: 78px;
  padding: 0 24px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #ffffff;
  color: #111111;
  font-size: 18px;
  font-weight: 800;
  box-shadow: none;
}

.education-add-button span {
  font-size: 36px;
  line-height: 1;
  font-weight: 500;
}

.education-add-button:hover {
  background: #fafafa;
}

.project-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  min-height: 78px;
  padding: 0 24px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #ffffff;
  color: #111111;
  font-size: 18px;
  font-weight: 800;
  box-shadow: none;
}

.project-add-button span {
  font-size: 36px;
  line-height: 1;
  font-weight: 500;
}

.project-add-button:hover {
  background: #fafafa;
}

.work-card-list {
  display: grid;
  gap: 22px;
}

.work-card {
  position: relative;
  padding: 28px 32px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.work-card-delete {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #9ca3af;
  box-shadow: none;
}

.work-card-delete:hover {
  background: #f3f4f6;
}

.work-card-delete svg {
  width: 24px;
  height: 24px;
}

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

.work-card .field + .work-row,
.work-card .work-row + .field,
.work-card .field + .field {
  margin-top: 22px;
}

.work-content-input {
  min-height: 160px;
}

.work-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  min-height: 78px;
  padding: 0 24px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #ffffff;
  color: #111111;
  font-size: 18px;
  font-weight: 800;
  box-shadow: none;
}

.work-add-button span {
  font-size: 36px;
  line-height: 1;
  font-weight: 500;
}

.work-add-button:hover {
  background: #fafafa;
}

.builder-editor .section-head {
  margin-bottom: 18px;
}

.builder-editor .section-head h2 {
  font-size: 20px;
}

.builder-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

.builder-footer-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.builder-nav,
.builder-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-width: 110px;
  min-height: 58px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.builder-nav {
  border: none;
}

.builder-nav-ghost {
  background: #ffffff;
  color: #9ca3af;
  border: 1px solid #e5e7eb;
}

.builder-nav-primary {
  background: #171717;
  color: #ffffff;
}

.builder-inline-link {
  color: var(--primary);
  font-weight: 700;
}

.builder-preview-stack {
  display: grid;
  gap: 18px;
}

.builder-checklist {
  display: grid;
  gap: 12px;
}

.builder-checklist-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.builder-checklist-item span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.builder-checklist-item strong {
  font-size: 14px;
}

.builder-checklist-item.is-done span {
  background: #e7f8ee;
  color: #15803d;
}

.builder-checklist-item.is-todo span {
  background: #fff1f2;
  color: #be123c;
}

.builder-preview-canvas {
  min-height: 760px;
  padding: 0;
  border-radius: 22px;
  background: #ffffff;
  overflow: hidden;
}

.resume-modern {
  position: relative;
  min-height: 760px;
  padding: 34px 38px 48px 56px;
  background: #ffffff;
}

.resume-modern-line {
  position: absolute;
  top: 58px;
  bottom: 72px;
  left: 22px;
  width: 2px;
  background: #c8efee;
}

.resume-modern-section {
  position: relative;
  padding-left: 34px;
}

.resume-modern-section + .resume-modern-section {
  margin-top: 38px;
}

.resume-modern-section::before {
  content: "";
  position: absolute;
  left: -42px;
  top: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #48c2bf;
}

.resume-modern-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 144px;
  gap: 24px;
  align-items: start;
}

.resume-modern-header-copy h3 {
  margin-bottom: 18px;
  color: #111827;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.resume-modern-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
}

.resume-modern-intent {
  margin: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

.resume-modern-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 144px;
  height: 144px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffd86a 0%, #f7be3f 100%);
  color: #b45757;
}

.resume-modern-avatar svg {
  width: 102px;
  height: 102px;
}

.resume-modern-section h4 {
  margin-bottom: 14px;
  color: #111827;
  font-size: 22px;
  line-height: 1.2;
}

.resume-modern-summary,
.resume-modern-entry-desc,
.resume-modern-empty {
  margin: 0;
  color: #5f6670;
  font-size: 14px;
  line-height: 1.8;
}

.resume-modern-entry + .resume-modern-entry {
  margin-top: 18px;
}

.resume-modern-entry-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 8px;
}

.resume-modern-entry-title {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: baseline;
}

.resume-modern-entry-title strong {
  color: #111827;
  font-size: 16px;
  font-weight: 800;
}

.resume-modern-entry-title span,
.resume-modern-entry-time {
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
}

.builder-preview-action-card {
  padding: 18px 34px;
}

.builder-download-link {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: #111111;
}

.builder-download-link:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.resume-template-panel {
  background: linear-gradient(180deg, #fbfcff 0%, #ffffff 100%);
}

.resume-template-shell {
  padding: 24px;
  overflow-x: auto;
}

.resume-template {
  min-width: 820px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 40px 42px;
  background: #ffffff;
  border: 1px solid #edf0f5;
  border-radius: 28px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.resume-template-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 28px;
  align-items: start;
  margin-bottom: 26px;
}

.resume-template-profile h3 {
  margin-bottom: 18px;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.resume-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 14px;
  color: #4b5563;
  font-size: 15px;
}

.resume-basic-row {
  margin-bottom: 0;
  color: #3f3f46;
  font-size: 15px;
  font-weight: 600;
}

.resume-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 160px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f6f7fb 0%, #eef2f8 100%);
  color: #94a3b8;
}

.resume-avatar svg {
  width: 78px;
  height: 78px;
}

.resume-template-section + .resume-template-section {
  margin-top: 34px;
}

.resume-template-section h4 {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf0f5;
  font-size: 19px;
  line-height: 1.2;
}

.resume-advantage-list,
.resume-entry-points {
  margin: 0;
  padding-left: 24px;
  color: #3f3f46;
  line-height: 1.95;
}

.resume-entry + .resume-entry {
  margin-top: 20px;
}

.resume-entry-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 10px;
}

.resume-entry-title {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #111827;
}

.resume-entry-title strong {
  font-size: 16px;
}

.resume-entry-title span,
.resume-entry-meta {
  color: #52525b;
  font-size: 15px;
}

.resume-empty {
  margin: 0;
  color: #94a3b8;
  line-height: 1.8;
}

.alert {
  margin: 0 44px 24px;
  padding: 14px 16px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: #fff7ed;
  color: #c2410c;
}

.alert-success {
  margin: 0 0 24px;
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.alert-info {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.auth-shell {
  padding: 0 44px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}

.auth-context-card {
  display: grid;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--shadow-soft);
}

.auth-context-card h2 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.15;
}

.auth-context-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
}

.auth-context-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  width: fit-content;
  padding: 0 14px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.auth-context-section {
  display: grid;
  gap: 12px;
}

.auth-context-section h3 {
  margin-bottom: 0;
  font-size: 16px;
}

.auth-checkpoint-list {
  display: grid;
  gap: 10px;
}

.auth-checkpoint {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.auth-checkpoint strong {
  font-size: 14px;
}

.auth-checkpoint span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.auth-context-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
}

.auth-panel {
  display: grid;
  gap: 24px;
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--shadow-soft);
}

.auth-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: #eff6ff;
}

.auth-tab {
  height: 46px;
  border-radius: 12px;
  background: transparent;
  color: #334155;
  box-shadow: none;
}

.auth-tab.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.12);
}

.auth-forms {
  display: grid;
}

.auth-form {
  display: none;
  gap: 18px;
}

.auth-form.active {
  display: grid;
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 14px;
  align-items: end;
}

.primary-button {
  width: 100%;
}

.secondary-button {
  background: #ffffff;
  color: var(--primary);
  border: 1px solid #bfdbfe;
  box-shadow: none;
}

.auth-db-tip {
  padding: 20px 22px;
  border: 1px dashed #f59e0b;
  border-radius: 18px;
  background: #fffaf0;
}

.auth-db-tip h2 {
  margin-bottom: 10px;
  font-size: 22px;
}

.auth-db-tip p {
  margin-bottom: 0;
  color: #92400e;
  line-height: 1.8;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .landing-hero-grid,
  .landing-steps,
  .landing-feature-grid,
  .landing-testimonial-grid,
  .landing-stats-grid,
  .landing-workspace-grid,
  .landing-workspace-quick-grid,
  .landing-recent-grid,
  .landing-workspace-focus,
  .landing-workspace-metric-grid,
  .feature-grid,
  .journey-grid,
  .results-grid,
  .optimization-summary,
  .optimization-overview-grid,
  .optimization-grid,
  .optimization-list-row,
  .optimization-highlight-list,
  .builder-status-grid,
  .history-dashboard-grid,
  .history-filter-bar,
  .form-grid,
  .single-form,
  .repeat-item {
    grid-template-columns: 1fr;
  }

  .topbar,
  .landing-footer-inner,
  .section-head,
  .history-meta,
  .history-version-top,
  .interview-section-head,
  .resume-entry-head,
  .topbar-user {
    flex-direction: column;
    align-items: flex-start;
  }

  .builder-stepper,
  .builder-grid,
  .auth-layout,
  .auth-code-row {
    grid-template-columns: 1fr;
  }

  .landing-nav-links {
    display: none;
  }

  .landing-nav-inner {
    align-items: center;
  }

  .landing-section-head-left {
    text-align: left;
  }

  .education-row,
  .work-row {
    grid-template-columns: 1fr;
  }

  .builder-step::after {
    display: none;
  }

  .builder-footer,
  .builder-footer-right,
  .builder-toolbar,
  .optimization-footer,
  .builder-heading {
    flex-direction: column;
    align-items: stretch;
  }

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

  .topnav {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .landing-container {
    width: min(1180px, calc(100% - 20px));
  }

  .page {
    width: min(100% - 12px, 1880px);
    margin: 6px auto;
    border-radius: 22px;
  }

  .topbar,
  .page-intro,
  .home-hero,
  .home-section,
  .results-grid,
  .builder-shell,
  .panel,
  .alert,
  .auth-shell {
    padding-left: 20px;
    padding-right: 20px;
  }

  .topbar {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .page-intro {
    padding-top: 28px;
  }

  .landing-nav-inner {
    min-height: 70px;
  }

  .landing-hero {
    padding-top: 42px;
  }

  .landing-hero h1 {
    letter-spacing: -0.02em;
  }

  .landing-cta-row {
    flex-direction: column;
  }

  .landing-btn {
    width: 100%;
  }

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

  .home-hero {
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .home-section {
    padding-top: 28px;
  }

  .panel,
  .card,
  .history-card,
  .journey-card {
    border-radius: 18px;
  }

  .history-version-score {
    width: 100%;
  }

  .panel {
    margin-left: 20px;
    margin-right: 20px;
    padding: 22px;
  }

  .results-grid {
    padding: 0 20px;
  }

  .auth-panel {
    padding: 22px;
  }

  .builder-shell {
    padding-top: 20px;
  }

  .builder-editor,
  .builder-preview-card {
    padding: 22px;
  }

  .builder-preview-canvas {
    min-height: auto;
  }

  .resume-modern {
    min-height: auto;
    padding: 24px 18px 30px 42px;
  }

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

  .resume-modern-avatar {
    width: 112px;
    height: 112px;
  }

  .resume-modern-header-copy h3 {
    font-size: 28px;
  }

  .resume-modern-section h4 {
    font-size: 20px;
  }

  .resume-modern-entry-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .resume-template-shell {
    padding: 16px;
  }

  .resume-template {
    min-width: 0;
    padding: 24px 20px 28px;
  }

  .resume-template-profile h3 {
    font-size: 32px;
  }

  .resume-contact-row {
    gap: 10px;
  }

  .hero-actions {
    width: 100%;
  }

  .cta-button,
  .cta-link,
  .export-actions a,
  button,
  .builder-action,
  .builder-nav,
  .builder-download-link {
    width: 100%;
  }

  .topnav {
    width: 100%;
    gap: 8px;
  }

  .topnav a {
    width: calc(50% - 4px);
  }

  .topbar-user,
  .topbar-action,
  .user-chip {
    width: 100%;
  }
}
