:root {
  --bg: #f5f6f4;
  --surface: #ffffff;
  --surface-2: #eef6f1;
  --ink: #18211d;
  --muted: #66706a;
  --line: #dbe4df;
  --accent: #12664d;
  --accent-dark: #0a4635;
  --amber: #a86816;
  --danger: #a9342c;
  --radius: 8px;
  --shadow: 0 16px 40px rgba(26, 35, 31, 0.08);
  --soft-card-bg: linear-gradient(180deg, rgba(236, 253, 245, 0.74), rgba(255, 255, 255, 0.86));
  --soft-card-bg-flat: rgba(255, 255, 255, 0.82);
  --soft-card-border: rgba(5, 150, 105, 0.18);
  --soft-card-border-strong: rgba(5, 150, 105, 0.34);
  --soft-card-shadow: 0 18px 54px rgba(6, 95, 70, 0.075);
  --soft-card-shadow-sm: 0 10px 28px rgba(6, 95, 70, 0.052);
  --soft-card-radius: 24px;
  --soft-card-radius-sm: 18px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(249, 251, 249, 0.98), rgba(244, 247, 245, 1)),
    repeating-linear-gradient(90deg, rgba(18, 102, 77, 0.026) 0 1px, transparent 1px 64px);
}

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

button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

button:hover:not(:disabled) {
  border-color: #b8c4bc;
  box-shadow: 0 8px 20px rgba(26, 35, 31, 0.08);
  transform: translateY(-1px);
}

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

.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.primary:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.secondary {
  border-color: rgba(22, 112, 82, 0.22);
  background: rgba(22, 112, 82, 0.08);
  color: var(--accent-dark);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  line-height: 1.2;
}

.brand h1 {
  color: var(--accent);
  font-weight: 800;
}

h2 {
  font-size: 1.02rem;
  line-height: 1.25;
}

h3 {
  font-size: 0.9rem;
  line-height: 1.25;
}

.brand p,
.empty-state,
.notice,
.file-name,
.metric span,
.status-pill,
.section-heading span,
.step-heading p,
.disclaimer,
.muted-item {
  color: var(--muted);
  font-size: 0.88rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
  padding: 10px clamp(16px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.gateway-active {
  overflow-x: hidden;
  background:
    radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.18), transparent 35%),
    radial-gradient(circle at bottom right, rgba(110, 231, 183, 0.24), transparent 36%),
    radial-gradient(circle at top center, rgba(220, 252, 231, 0.42), transparent 38%),
    linear-gradient(to bottom, #ffffff 0%, #f8fffb 62%, #effcf6 100%);
}

.gateway-active::before,
.gateway-active::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.gateway-active::before {
  left: -8vw;
  right: -8vw;
  bottom: -150px;
  height: 330px;
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(ellipse at 22% 48%, rgba(5, 150, 105, 0.22), transparent 35%),
    radial-gradient(ellipse at 72% 42%, rgba(52, 211, 153, 0.28), transparent 38%),
    linear-gradient(105deg, transparent 12%, rgba(187, 247, 208, 0.5) 42%, rgba(16, 185, 129, 0.18) 68%, transparent 92%);
  filter: blur(28px);
  transform: rotate(-2deg);
}

.gateway-active::after {
  width: 58vw;
  height: 160px;
  right: -12vw;
  bottom: 44px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.14);
  filter: blur(42px);
  transform: rotate(-11deg);
}

.gateway-active #appView {
  position: relative;
  z-index: 1;
}

html.token-route-pending #appView,
html.wallet-modal-active #appView {
  display: none;
}

html.token-route-pending body::before {
  content: "Opening token wallet...";
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  color: var(--muted);
  font-weight: 800;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.12), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f6fffa 100%);
}

html.wallet-modal-active .modal {
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.14), transparent 34%),
    radial-gradient(circle at bottom right, rgba(110, 231, 183, 0.18), transparent 36%),
    linear-gradient(135deg, #ffffff 0%, #f7fffb 100%);
}

.gateway-active .topbar {
  border-bottom-color: rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.gateway-active .brand-mark {
  background: linear-gradient(135deg, #047857, #34d399);
  box-shadow: 0 10px 22px rgba(5, 150, 105, 0.14);
}

.gateway-active .status-pill {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.62);
  color: #475569;
}

.gateway-active .status-strip button {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.76);
  color: #334155;
}

.brand,
.status-strip,
.selection-actions,
.email-mode,
.section-heading,
.metric-grid,
.inline-actions,
.review-actions,
.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-dark);
  position: relative;
  flex: 0 0 auto;
  box-shadow: inset 0 -7px 0 rgba(255, 255, 255, 0.08);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
}

.brand-mark::before {
  top: 10px;
}

.brand-mark span {
  top: 16px;
}

.brand-mark::after {
  top: 22px;
  right: 14px;
}

.status-strip {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.dashboard-auth-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dashboard-auth-actions.hidden {
  display: none;
}

.status-pill {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 5px 9px;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-strip button {
  padding: 7px 11px;
  font-size: 0.82rem;
}

.status-strip .button-link {
  padding: 7px 11px;
  font-size: 0.82rem;
}

.status-strip .button-link.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.status-pill.ok {
  border-color: rgba(22, 112, 82, 0.25);
  color: var(--accent-dark);
  background: rgba(22, 112, 82, 0.1);
}

.status-pill.warn {
  border-color: rgba(168, 104, 22, 0.24);
  color: var(--amber);
  background: rgba(168, 104, 22, 0.1);
}

.gateway-active #sourceMeta,
.gateway-active #serviceStatus,
.gateway-active #mailStatus {
  display: none;
}

.flow-shell,
.auth-view {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.flow-shell {
  padding: 0 0 42px;
}

.dashboard-gateway {
  min-height: calc(100vh - 64px);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 36px;
  padding: 48px 0 72px;
  animation: screen-in 260ms ease both;
}

.dashboard-footer {
  display: none;
}

.gateway-active .dashboard-gateway {
  min-height: calc(100vh - 64px - 92px);
}

.gateway-active .dashboard-footer {
  width: min(1120px, calc(100% - 32px));
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin: 0 auto 20px;
  padding: 14px 20px;
  border-top: 1px solid rgba(5, 150, 105, 0.14);
  color: #64748b;
}

.dashboard-credit-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 14px;
}

.dashboard-footer p {
  margin: 0;
  color: #047857;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dashboard-developers {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 700;
}

.dashboard-developers li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.dashboard-developers li:not(:last-child)::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #34d399;
}

.dashboard-support {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0;
  padding-left: 28px;
  border-left: 1px solid rgba(5, 150, 105, 0.14);
  color: #64748b;
  font-size: 0.78rem;
  font-style: normal;
  white-space: nowrap;
}

.dashboard-support span {
  color: #047857;
  font-weight: 800;
}

.dashboard-support a {
  color: #475569;
  font-weight: 700;
  text-decoration: none;
}

.dashboard-support a:hover,
.dashboard-support a:focus-visible {
  color: #047857;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gateway-announcement {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: min(680px, 100%);
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
}

.gateway-announcement span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.78);
  flex: 0 0 auto;
}

.gateway-copy {
  display: grid;
  justify-items: center;
  gap: 20px;
  max-width: 820px;
  text-align: center;
}

.gateway-kicker {
  width: max-content;
  border: 1px solid rgba(22, 112, 82, 0.18);
  border-radius: 999px;
  background: rgba(22, 112, 82, 0.08);
  color: var(--accent-dark);
  padding: 6px 10px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.gateway-copy h2 {
  max-width: 840px;
  color: #047857;
  background: linear-gradient(92deg, #064e3b 0%, #059669 48%, #34d399 100%);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 2.35rem;
  line-height: 1.08;
  letter-spacing: 0;
  white-space: nowrap;
  -webkit-text-fill-color: transparent;
}

.gateway-copy p {
  max-width: 520px;
  color: #475569;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.48;
}

.gateway-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: 14px;
  margin-top: 2px;
}

.gateway-card {
  min-height: 158px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  color: #0f172a;
  padding: 22px 24px;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 22px 60px rgba(6, 95, 70, 0.08);
  backdrop-filter: blur(16px);
  animation: item-in 240ms ease both;
}

.gateway-card:nth-child(2) {
  animation-delay: 45ms;
}

.gateway-card:nth-child(3) {
  animation-delay: 90ms;
}

.gateway-card:hover {
  border-color: rgba(16, 185, 129, 0.38);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 28px 72px rgba(6, 95, 70, 0.12);
  transform: translateY(-3px);
}

.gateway-card-primary {
  border-color: rgba(5, 150, 105, 0.38);
  background:
    linear-gradient(180deg, rgba(236, 253, 245, 0.9), rgba(255, 255, 255, 0.74)),
    rgba(255, 255, 255, 0.72);
  color: #0f172a;
  box-shadow: 0 22px 64px rgba(5, 150, 105, 0.13);
}

.gateway-card-primary:hover {
  border-color: rgba(5, 150, 105, 0.48);
  background: rgba(255, 255, 255, 0.9);
}

.gateway-card-top,
.gateway-card-body {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.gateway-card-top {
  align-items: center;
}

.gateway-card-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  align-items: end;
}

.gateway-index {
  color: inherit;
  opacity: 0.48;
  font-size: 0.72rem;
  font-weight: 800;
}

.gateway-arrow {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid rgba(52, 211, 153, 0.36);
  border-radius: 999px;
  color: #059669;
  opacity: 0.72;
  font-size: 0.68rem;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.gateway-card:hover .gateway-arrow {
  opacity: 0.68;
  transform: translateX(2px);
}

.gateway-card strong {
  display: block;
  max-width: 100%;
  color: #0f172a;
  font-size: clamp(1.06rem, 1.55vw, 1.34rem);
  line-height: 1.12;
}

.gateway-card small {
  max-width: 285px;
  color: #64748b;
  opacity: 1;
  font-size: clamp(0.82rem, 1.1vw, 0.92rem);
  line-height: 1.48;
}

.flow-workspace {
  display: grid;
  gap: 12px;
  animation: screen-in 220ms ease both;
}

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

.workspace-bar button {
  padding: 8px 11px;
  color: var(--muted);
  font-size: 0.84rem;
  box-shadow: none;
}

.flow-workspace[data-flow-mode="ats"] .wizard-progress ol {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flow-workspace[data-flow-mode="ats"] .application-only,
.flow-workspace[data-flow-mode="ats"] .application-contact-fields,
.flow-workspace[data-flow-mode="ats"] #approveCv {
  display: none;
}

.flow-workspace[data-flow-mode="ats"] .document-grid {
  grid-template-columns: minmax(0, 620px);
}

.combined-pdf-inspector {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(22, 112, 82, 0.2);
  border-radius: var(--soft-card-radius);
  background: linear-gradient(145deg, rgba(236, 253, 245, 0.92), rgba(255, 255, 255, 0.94));
  box-shadow: var(--soft-card-shadow-sm);
}

.combined-pdf-inspector.hidden {
  display: none;
}

.combined-pdf-inspector .section-heading > div {
  display: grid;
  gap: 4px;
}

.combined-pdf-inspector .section-heading p {
  color: var(--muted);
  font-size: 0.82rem;
}

.combined-pdf-inspector .section-heading a {
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

.combined-pdf-pages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.combined-pdf-page {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  min-height: 118px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.combined-pdf-page:hover,
.combined-pdf-page.is-selected {
  border-color: rgba(22, 112, 82, 0.48);
  box-shadow: 0 12px 28px rgba(22, 112, 82, 0.1);
  transform: translateY(-1px);
}

.combined-pdf-page input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--accent-dark);
}

.combined-pdf-page-copy {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}

.combined-pdf-page-copy strong {
  color: var(--ink);
  font-size: 0.84rem;
}

.combined-pdf-page-copy small {
  color: var(--accent-dark);
  font-size: 0.68rem;
  font-weight: 800;
}

.combined-pdf-page-copy em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  font-style: normal;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.combined-document-editor {
  display: grid;
  gap: 18px;
  width: 100%;
}

.combined-document-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 20px;
  border: 1px solid rgba(22, 112, 82, 0.18);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(236, 253, 245, 0.92), rgba(255, 255, 255, 0.94));
  box-shadow: var(--soft-card-shadow-sm);
}

.combined-document-header > div {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.combined-document-header h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.combined-document-header p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.5;
}

.combined-document-loading {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 360px;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  text-align: center;
}

.combined-document-loading p {
  color: var(--muted);
}

.combined-loading-spinner {
  width: 36px;
  height: 36px;
  border: 4px solid rgba(22, 112, 82, 0.16);
  border-top-color: var(--accent-dark);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.combined-document-preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  gap: 16px;
  align-items: start;
}

.combined-full-preview-panel,
.combined-page-organizer {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--soft-card-border);
  border-radius: var(--soft-card-radius);
  background: var(--soft-card-bg);
  box-shadow: var(--soft-card-shadow);
}

.combined-full-preview-panel .section-heading > div,
.combined-page-organizer .section-heading > div {
  display: grid;
  gap: 3px;
}

.combined-full-preview {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 18px;
  overflow: auto;
  width: 100%;
  height: clamp(700px, 78vh, 1040px);
  border: 1px solid rgba(22, 112, 82, 0.18);
  border-radius: 12px;
  background: #e8eeeb;
  padding: 14px;
}

.combined-full-page-canvas {
  position: relative;
  display: grid;
  justify-items: center;
  width: max-content;
  max-width: 100%;
  margin: 0;
}

.combined-full-page-canvas canvas {
  display: block;
  max-width: 100%;
  height: auto !important;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(18, 46, 36, 0.18);
}

.combined-full-page-canvas figcaption {
  position: absolute;
  right: 9px;
  bottom: 9px;
  border-radius: 999px;
  background: rgba(18, 46, 36, 0.82);
  color: #fff;
  padding: 4px 8px;
  font-size: 0.62rem;
  font-weight: 800;
}

.combined-document-actions {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(247, 251, 249, 0.96);
  box-shadow: var(--soft-card-shadow-sm);
}

.combined-document-actions > span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.combined-document-actions button,
.combined-document-actions .button-link {
  width: 100%;
  min-height: 42px;
  padding: 8px;
  font-size: 0.72rem;
  line-height: 1.25;
  text-align: center;
}

.combined-page-organizer {
  overflow: hidden;
}

.combined-page-organizer .section-heading {
  align-items: flex-end;
}

.combined-page-organizer .section-heading > .file-name {
  max-width: 420px;
  text-align: right;
}

.combined-page-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 5px 4px 14px;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
}

.combined-page-thumbnail {
  position: relative;
  display: grid;
  flex: 0 0 178px;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(18, 46, 36, 0.08);
  cursor: grab;
  scroll-snap-align: start;
  transition: border-color 150ms ease, box-shadow 150ms ease, opacity 150ms ease, transform 150ms ease;
  touch-action: none;
  user-select: none;
  will-change: transform;
}

.combined-page-thumbnail:hover,
.combined-page-thumbnail.is-drop-target {
  border-color: rgba(22, 112, 82, 0.62);
  box-shadow: 0 18px 36px rgba(22, 112, 82, 0.14);
  transform: translateY(-2px);
}

.combined-page-thumbnail.is-dragging {
  border-color: rgba(22, 112, 82, 0.78);
  opacity: 0.96;
  cursor: grabbing;
  transform: rotate(1.5deg) scale(1.035);
  box-shadow: 0 26px 62px rgba(18, 46, 36, 0.26);
}

.combined-page-strip.is-drag-active {
  cursor: grabbing;
  scroll-snap-type: none;
}

.combined-page-strip.is-drag-active .combined-page-thumbnail:not(.is-dragging) {
  cursor: grabbing;
}

.combined-page-thumbnail.is-live-snap {
  animation: page-card-snap 220ms ease-out;
}

@keyframes page-card-snap {
  0% {
    outline: 0 solid rgba(22, 112, 82, 0);
    box-shadow: 0 26px 62px rgba(18, 46, 36, 0.26);
  }
  55% {
    outline: 6px solid rgba(22, 112, 82, 0.14);
    box-shadow: 0 30px 70px rgba(18, 46, 36, 0.3);
  }
  100% {
    outline: 0 solid rgba(22, 112, 82, 0);
    box-shadow: 0 26px 62px rgba(18, 46, 36, 0.26);
  }
}

body.is-reordering-pdf-page,
body.is-reordering-pdf-page * {
  cursor: grabbing !important;
}

.combined-page-thumbnail.is-cv-page {
  border-color: rgba(16, 185, 129, 0.42);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.98), #fff 36%);
}

.combined-page-paper {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 210 / 297;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(18, 46, 36, 0.08);
}

.combined-page-paper canvas {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.combined-page-number,
.combined-drag-handle {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 850;
  box-shadow: 0 5px 12px rgba(18, 46, 36, 0.18);
}

.combined-page-number {
  top: 7px;
  left: 7px;
  width: 25px;
  height: 25px;
  background: var(--accent-dark);
}

.combined-drag-handle {
  right: 7px;
  bottom: 7px;
  padding: 5px 8px;
  background: rgba(18, 46, 36, 0.84);
  text-transform: uppercase;
}

.combined-page-caption {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.combined-page-caption strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combined-page-caption small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.63rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.combined-page-keyboard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.combined-page-keyboard-actions button {
  width: 30px;
  min-height: 28px;
  padding: 3px;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .combined-document-header {
    align-items: stretch;
    flex-direction: column;
  }

  .combined-document-preview-layout {
    grid-template-columns: 1fr;
  }

  .combined-document-actions {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .combined-document-actions > span {
    grid-column: 1 / -1;
  }

  .pdf-dedicated-workspace {
    grid-template-columns: 1fr;
  }

  .pdf-dedicated-workspace .combined-page-organizer,
  .pdf-dedicated-workspace .combined-document-actions {
    position: static;
  }

  .pdf-dedicated-workspace .combined-page-strip {
    display: flex;
    max-height: none;
    overflow-x: auto;
    padding: 5px 4px 14px;
    scroll-snap-type: x proximity;
  }

  .pdf-dedicated-workspace .combined-page-thumbnail {
    flex: 0 0 178px;
  }

  .pdf-dedicated-workspace .combined-full-preview {
    height: 70vh;
    min-height: 560px;
  }
}

@media (max-width: 600px) {
  .combined-full-preview {
    height: 68vh;
    min-height: 520px;
  }

  .combined-document-actions {
    grid-template-columns: 1fr;
  }

  .combined-page-organizer .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .combined-page-organizer .section-heading > .file-name {
    text-align: left;
  }

  .combined-page-thumbnail {
    flex-basis: 152px;
  }

  .pdf-dedicated-workspace .combined-page-thumbnail {
    flex-basis: 152px;
  }
}

.pdf-tools-body {
  min-height: 100vh;
}

.pdf-tools-shell {
  display: grid;
  gap: 22px;
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.pdf-tools-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: clamp(24px, 3vw, 36px) clamp(22px, 4vw, 48px);
  border: 1px solid rgba(22, 112, 82, 0.18);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(236, 253, 245, 0.92), rgba(255, 255, 255, 0.86));
  box-shadow: 0 24px 72px rgba(6, 95, 70, 0.1);
}

.pdf-tools-hero::after {
  position: absolute;
  right: -90px;
  bottom: -140px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(16, 185, 129, 0.12);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.09), transparent 68%);
  content: "";
  pointer-events: none;
}

.pdf-tools-hero h2 {
  max-width: 900px;
  color: var(--ink);
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  line-height: 1.08;
}

.pdf-tools-hero p {
  max-width: 920px;
  color: var(--muted);
  line-height: 1.6;
}

.pdf-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.standalone-pdf-reorder {
  display: grid;
  gap: 18px;
  scroll-margin-top: 18px;
}

.standalone-pdf-reorder.hidden {
  display: none;
}

.pdf-tools-body.is-pdf-dedicated-screen .pdf-tools-shell {
  width: min(1640px, calc(100% - 24px));
  padding-top: 18px;
}

.pdf-tools-floating-notice {
  margin: 0;
}

.pdf-dedicated-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 184px;
  grid-template-areas:
    "cards actions"
    "preview actions";
  gap: 16px;
  align-items: start;
}

.pdf-dedicated-workspace .combined-page-organizer {
  grid-area: cards;
}

.pdf-dedicated-workspace .combined-full-preview-panel {
  grid-area: preview;
}

.pdf-dedicated-workspace .combined-document-actions {
  grid-area: actions;
  position: sticky;
  top: 96px;
}

.pdf-dedicated-workspace .combined-page-organizer {
  position: sticky;
  top: 86px;
  z-index: 4;
}

.pdf-dedicated-workspace .combined-page-organizer .section-heading {
  align-items: flex-start;
  flex-direction: column;
}

.pdf-dedicated-workspace .combined-page-organizer .section-heading > .file-name {
  max-width: 100%;
  text-align: left;
}

.pdf-dedicated-workspace .combined-page-strip {
  display: flex;
  max-height: none;
  overflow-x: auto;
  padding: 5px 4px 14px;
  scroll-snap-type: x proximity;
}

.pdf-dedicated-workspace .combined-page-thumbnail {
  width: auto;
  flex: 0 0 178px;
  scroll-snap-align: start;
}

.pdf-dedicated-workspace .combined-full-preview {
  height: calc(100vh - 224px);
  min-height: 620px;
}

.merge-page-thumbnail .combined-page-caption strong {
  white-space: normal;
  -webkit-line-clamp: 2;
}

@media (max-width: 900px) {
  .pdf-dedicated-workspace {
    grid-template-columns: 1fr;
    grid-template-areas:
      "cards"
      "preview"
      "actions";
  }

  .pdf-dedicated-workspace .combined-page-organizer,
  .pdf-dedicated-workspace .combined-document-actions {
    position: static;
  }

  .pdf-dedicated-workspace .combined-full-preview {
    height: 70vh;
    min-height: 560px;
  }
}

@media (max-width: 600px) {
  .pdf-dedicated-workspace .combined-page-thumbnail {
    flex-basis: 152px;
  }
}

.organizer-only-workspace {
  --organizer-row-width: 980px;
  --organizer-card-width: 178px;
  --organizer-card-gap: 16px;
  grid-template-columns: minmax(0, min(100%, var(--organizer-row-width)));
  grid-template-areas:
    "cards"
    "actions";
  justify-content: center;
  gap: 14px;
}

.organizer-only-workspace .combined-page-organizer {
  position: static;
  overflow: visible;
  justify-self: center;
  width: 100%;
  max-width: min(100%, var(--organizer-row-width));
  min-height: 0;
  padding: 18px;
}

.organizer-only-workspace .combined-page-organizer .section-heading {
  align-items: flex-start;
  flex-direction: row;
}

.organizer-only-workspace .combined-page-strip {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: start;
  gap: var(--organizer-card-gap);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px;
  scroll-snap-type: x proximity;
}

.organizer-only-workspace .combined-page-thumbnail {
  width: var(--organizer-card-width);
  flex: 0 0 var(--organizer-card-width);
  scroll-snap-align: start;
}

.organizer-only-workspace .combined-document-actions {
  position: static;
  justify-self: center;
  width: min(100%, var(--organizer-row-width));
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(160px, 220px));
  align-items: center;
  padding: 10px 12px;
}

@media (max-width: 900px) {
  .organizer-only-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .organizer-only-workspace .combined-page-organizer {
    min-height: auto;
  }

  .organizer-only-workspace .combined-document-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .organizer-only-workspace .combined-page-strip {
    padding: 4px;
  }

  .organizer-only-workspace .combined-page-organizer .section-heading {
    flex-direction: column;
  }
}

.pdf-tool-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  min-height: 430px;
  height: 100%;
  padding: 22px;
  border: 1px solid var(--soft-card-border);
  border-radius: var(--soft-card-radius);
  background: var(--soft-card-bg);
  box-shadow: var(--soft-card-shadow);
}

.pdf-tool-card > div {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 86px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(22, 112, 82, 0.1);
}

.pdf-tool-card h2 {
  font-size: 1.2rem;
}

.pdf-tool-card p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.pdf-tool-card input[type="file"] {
  min-height: 54px;
  padding: 7px;
  background: #fff;
}

.pdf-tool-card input[type="file"]::file-selector-button {
  margin-right: 10px;
  border: 0;
  border-radius: 10px;
  padding: 9px 12px;
  background: rgba(22, 112, 82, 0.11);
  color: var(--accent-dark);
  font-weight: 800;
  cursor: pointer;
}

.pdf-tool-card input[type="text"] {
  min-height: 52px;
}

.pdf-tool-card > .file-name {
  min-height: 40px;
  margin-top: auto;
  line-height: 1.45;
}

.pdf-tool-card > button:last-child {
  width: 100%;
  min-height: 50px;
}

.merge-pdf-order {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.merge-pdf-order:empty {
  display: none;
}

.merge-pdf-order li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.merge-pdf-order li > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.merge-pdf-order li strong {
  display: grid;
  flex: 0 0 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(22, 112, 82, 0.1);
  color: var(--accent-dark);
}

.merge-order-actions {
  display: flex;
  gap: 4px;
}

.merge-order-actions button {
  width: 30px;
  padding: 5px;
}

@media (max-width: 1200px) {
  .pdf-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1050px) {
  .combined-pdf-pages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pdf-tool-card {
    min-height: 0;
  }
}

@media (max-width: 600px) {
  .combined-pdf-pages {
    grid-template-columns: 1fr;
  }

  .pdf-tools-shell {
    width: min(100% - 20px, 1380px);
    padding-top: 18px;
  }

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

.flow-workspace[data-flow-mode="ats"][data-current-step="documents"] {
  min-height: calc(100vh - 112px);
  align-content: center;
}

.flow-workspace[data-flow-mode="ats"][data-current-step="documents"] .workspace-bar,
.flow-workspace[data-flow-mode="ats"][data-current-step="documents"] .wizard-progress,
.flow-workspace[data-flow-mode="ats"][data-current-step="documents"] [data-flow-step="documents"] .step-heading,
.flow-workspace[data-flow-mode="ats"][data-current-step="documents"] [data-flow-step="documents"] .step-actions {
  display: none;
}

.cv-tools-body .flow-workspace[data-flow-mode="ats"][data-current-step="documents"] .workspace-bar {
  display: flex;
}

.flow-workspace[data-flow-mode="ats"][data-current-step="documents"] [data-flow-step="documents"] {
  display: grid;
  min-height: min(520px, calc(100vh - 144px));
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.flow-workspace[data-flow-mode="ats"][data-current-step="documents"] .document-grid {
  width: min(390px, 100%);
  justify-content: center;
}

.flow-workspace[data-flow-mode="ats"][data-current-step="documents"] .cv-upload-panel {
  position: relative;
  width: 100%;
  justify-items: center;
  gap: 14px;
  padding: 24px 26px;
  border-color: rgba(22, 112, 82, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(233, 249, 242, 0.9)),
    radial-gradient(circle at 50% 0%, rgba(49, 211, 151, 0.14), transparent 58%);
  box-shadow: 0 24px 60px rgba(22, 112, 82, 0.13);
  overflow: hidden;
}

.flow-workspace[data-flow-mode="ats"][data-current-step="documents"] .cv-upload-panel label {
  width: 100%;
  gap: 14px;
  text-align: center;
}

.flow-workspace[data-flow-mode="ats"][data-current-step="documents"] .cv-upload-panel label > span {
  color: var(--accent-dark);
  font-size: 1.05rem;
  font-weight: 850;
}

.flow-workspace[data-flow-mode="ats"][data-current-step="documents"] .cv-upload-panel input[type="file"] {
  width: 100%;
  border: 1.5px dashed rgba(22, 112, 82, 0.28);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.flow-workspace[data-flow-mode="ats"][data-current-step="documents"] .cv-upload-panel input[type="file"]:hover {
  border-color: rgba(22, 112, 82, 0.48);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(22, 112, 82, 0.1);
}

.flow-workspace[data-flow-mode="ats"][data-current-step="documents"] .cv-upload-panel input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  background: var(--accent-dark);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.flow-workspace[data-flow-mode="ats"][data-current-step="documents"] #cvName {
  justify-self: center;
  max-width: 100%;
  border: 1px solid rgba(22, 112, 82, 0.14);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.wizard-progress {
  margin: 0 auto 20px;
}

.wizard-progress ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wizard-progress li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.wizard-progress li::before {
  content: "";
  position: absolute;
  top: 14px;
  left: calc(-50% + 22px);
  right: calc(50% + 22px);
  height: 2px;
  background: var(--line);
}

.wizard-progress li:first-child::before {
  display: none;
}

.progress-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.wizard-progress li.is-active {
  color: var(--accent-dark);
}

.wizard-progress li.is-complete .progress-dot {
  border-color: rgba(22, 112, 82, 0.3);
  background: rgba(22, 112, 82, 0.1);
  color: var(--accent-dark);
}

.wizard-progress li.is-active .progress-dot {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
  transform: scale(1.04);
}

.plan-panel,
.auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.plan-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  margin-bottom: 12px;
}

.usage-grid {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.plan-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.usage-grid span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 7px 10px;
  font-size: 0.84rem;
}

.flow-step {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.flow-step[hidden] {
  display: none;
}

.wizard-screen.is-active {
  animation: screen-in 260ms ease both;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin-bottom: 18px;
}

.step-number {
  border: 1px solid rgba(22, 112, 82, 0.24);
  border-radius: 999px;
  background: rgba(22, 112, 82, 0.08);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 10px;
  white-space: nowrap;
}

.document-grid,
.ats-columns,
.confirm-columns {
  display: grid;
  gap: 16px;
}

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

.document-panel,
.ats-panel,
.send-results {
  display: grid;
  gap: 14px;
}

.document-panel {
  align-content: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  animation: item-in 220ms ease both;
}

label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

label span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  padding: 10px 11px;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 112, 82, 0.12);
}

textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.45;
}

.document-list {
  display: grid;
  gap: 8px;
}

.document-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
  padding: 8px;
  animation: item-in 180ms ease both;
}

.document-row span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.document-row button {
  padding: 7px 10px;
}

.ats-panel {
  margin: 0 auto;
  width: min(820px, 100%);
}

.ats-template-stage {
  display: grid;
  gap: 14px;
}

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

.ats-panel.ats-editor-active {
  width: 100%;
  max-width: none;
}

.cv-tools-body:has(.ats-panel.ats-editor-active) .flow-shell {
  width: min(1580px, calc(100% - 28px));
}

.cv-tools-body:has(.ats-panel.ats-editor-active) [data-flow-step="ats"] {
  padding: clamp(16px, 2vw, 28px);
}

.ats-resume-control {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
  padding-top: 4px;
}

.ats-resume-control button {
  width: min(280px, 100%);
}

.ats-resume-control .file-name {
  text-align: center;
}

.template-picker {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.cv-template-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cv-template-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  padding: 8px;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.cv-template-card:hover {
  border-color: #b8c4bc;
  box-shadow: 0 8px 20px rgba(26, 35, 31, 0.08);
}

.cv-template-card.is-selected {
  border-color: var(--accent-dark);
  background: rgba(18, 102, 77, 0.08);
  box-shadow:
    0 0 0 3px rgba(22, 112, 82, 0.2),
    0 14px 34px rgba(10, 70, 53, 0.14);
}

.cv-template-card.is-selected::after,
.builder-template-card.is-selected::after {
  content: "Selected";
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(10, 70, 53, 0.2);
}

.cv-template-card input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.cv-template-preview {
  display: block;
  height: 150px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ffffff;
}

.cv-template-preview iframe {
  width: 794px;
  height: 1123px;
  border: 0;
  pointer-events: none;
  transform: scale(0.235);
  transform-origin: top left;
}

.cv-template-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.cv-template-meta strong,
.cv-template-meta small,
.cv-template-meta a {
  overflow-wrap: anywhere;
}

.cv-template-meta small {
  color: var(--muted);
  line-height: 1.35;
}

.cv-template-meta a {
  color: var(--accent-dark);
  font-size: 0.8rem;
}

.section-heading {
  justify-content: space-between;
  min-height: 34px;
}

.inline-actions,
.review-actions {
  flex-wrap: wrap;
}

.ats-result {
  display: grid;
  gap: 14px;
  animation: item-in 220ms ease both;
}

.cv-review-shell,
.cv-feedback-panel,
.ats-analysis-content {
  display: grid;
  gap: 12px;
}

.cv-preview {
  width: 100%;
  height: min(720px, 72vh);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.cv-feedback-panel {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.ats-analysis {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.ats-analysis summary {
  color: var(--accent-dark);
}

.ats-analysis-content {
  padding-top: 12px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(22, 112, 82, 0.22);
  border-radius: var(--radius);
  background: rgba(22, 112, 82, 0.08);
  color: var(--accent-dark);
  padding: 10px 14px;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.button-link:hover {
  border-color: #b8c4bc;
  box-shadow: 0 8px 20px rgba(26, 35, 31, 0.08);
  transform: translateY(-1px);
}

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

.metric-line strong {
  font-size: 1.2rem;
}

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

.ats-columns div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
  padding: 12px;
}

ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

li {
  margin: 4px 0;
}

.find-form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.notice {
  border: 1px solid rgba(168, 104, 22, 0.26);
  background: rgba(168, 104, 22, 0.08);
  color: #77490f;
  border-radius: var(--radius);
  padding: 10px 12px;
  margin: 10px 0;
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.match-results {
  animation: item-in 220ms ease both;
}

.email-mode {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.email-mode label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  color: var(--ink);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  font-size: 0.92rem;
  line-height: 1.35;
}

th {
  color: #39423d;
  background: var(--surface-2);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.checkbox-col {
  width: 74px;
}

.company-cell,
.email-list,
.preview-list,
.letter-preview-stack {
  display: grid;
  gap: 8px;
}

.company-cell {
  min-width: 160px;
}

.confidence {
  color: var(--muted);
  font-size: 0.82rem;
}

.email-chip {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 7px;
  background: #fafafa;
  font-size: 0.82rem;
}

.mini-select {
  max-width: 150px;
  padding: 7px 8px;
  font-size: 0.84rem;
}

.preview-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
  padding: 12px;
  display: grid;
  gap: 8px;
  animation: item-in 180ms ease both;
}

.letter-prompt-field,
.letter-revision-panel {
  display: grid;
  gap: 12px;
}

.letter-setup-panel {
  display: grid;
  gap: 14px;
}

.letter-setup-panel.hidden {
  display: none;
}

.letter-editor-bar {
  display: grid;
  grid-template-columns: auto minmax(54px, max-content) auto;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 0;
  margin: -4px 0 2px;
}

.letter-editor-bar.hidden {
  display: none;
}

.letter-editor-bar div {
  display: grid;
  gap: 2px;
  text-align: center;
}

.letter-editor-bar strong {
  display: none;
}

.letter-editor-bar button {
  padding: 7px 10px;
  font-size: 0.82rem;
}

.letter-editing .step-heading {
  display: none;
}

.letter-editing {
  min-height: calc(100vh - 188px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
}

.letter-editing .preview-list {
  min-height: 0;
}

.letter-focus-card {
  height: 100%;
  min-height: min(580px, calc(100vh - 326px));
  grid-template-rows: minmax(0, 1fr);
}

.letter-focus-card .letter-body-field {
  min-height: 0;
}

.letter-body-only .letter-body-field {
  height: 100%;
}

.letter-focus-card textarea {
  height: 100%;
  resize: none;
}

.letter-body-only {
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.letter-body-only textarea {
  min-height: min(580px, calc(100vh - 326px));
  padding: 16px;
  background: #ffffff;
  line-height: 1.55;
}

.letter-revision-panel {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.letter-revision-panel.hidden {
  display: none;
}

.letter-revision-panel details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
  padding: 10px;
}

.letter-revision-panel details[open] {
  display: grid;
  gap: 12px;
}

.preview-item textarea {
  min-height: 220px;
}

.letter-focus-card:not(.letter-body-only) textarea {
  min-height: 260px;
}

.letter-body-only textarea {
  min-height: min(580px, calc(100vh - 326px));
}

.preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.preview-head span,
.preview-meta {
  color: var(--muted);
  font-size: 0.83rem;
  overflow-wrap: anywhere;
}

.preview-body {
  white-space: pre-wrap;
  border-left: 3px solid var(--accent);
  padding: 10px 0 10px 10px;
  color: #334039;
  font-size: 0.88rem;
  line-height: 1.45;
}

summary {
  cursor: pointer;
  font-weight: 650;
}

.disclaimer {
  border-left: 3px solid var(--amber);
  padding: 10px 0 10px 12px;
  background: rgba(168, 104, 22, 0.07);
}

.send-button {
  width: min(280px, 100%);
  margin: 0;
}

.step-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.step-actions-start {
  justify-content: flex-start;
}

@keyframes item-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.metric-grid {
  align-items: stretch;
  margin: 12px 0 16px;
  flex-wrap: wrap;
}

.metric {
  flex: 1;
  min-width: 170px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfb;
  padding: 14px;
  display: grid;
  gap: 6px;
}

.metric strong {
  font-size: 1.45rem;
}

.status-sent {
  color: var(--accent-dark);
  font-weight: 700;
}

.status-failed {
  color: var(--danger);
  font-weight: 700;
}

.simple-history {
  margin-top: 18px;
}

.simple-history summary {
  margin-bottom: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(24, 33, 29, 0.42);
}

.modal.hidden {
  display: none;
}

.modal-card {
  width: min(780px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  display: grid;
  gap: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  padding: 20px;
}

.modal-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.payment-step {
  display: grid;
  gap: 14px;
}

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

.innbucks-qr {
  display: block;
  width: min(220px, 100%);
  height: auto;
  margin: 12px 0;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px;
}

#confirmSummary {
  display: grid;
  gap: 14px;
  color: var(--muted);
  line-height: 1.45;
}

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

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

.letter-preview-stack details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: #fbfcfb;
}

.auth-view {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 24px;
  padding: 32px 0;
}

.auth-brand {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-grid {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.auth-social-grid {
  max-width: 460px;
  grid-template-columns: 1fr;
}

.auth-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.auth-social-card {
  padding: 28px;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 250, 246, 0.92));
  box-shadow: 0 24px 70px rgba(18, 46, 36, 0.12);
}

.auth-eyebrow {
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(22, 112, 82, 0.2);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  padding: 10px 14px;
  text-align: center;
  text-decoration: none;
  font-weight: 750;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.social-button:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 112, 82, 0.42);
  box-shadow: 0 14px 32px rgba(18, 46, 36, 0.1);
}

.auth-note {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.upgrade-card {
  width: min(560px, 100%);
}

.benefit-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #334039;
}

.profile-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(187, 247, 208, 0.45), transparent 34%),
    linear-gradient(to bottom, #ffffff, #f3fbf7 72%, #effaf5);
}

.profile-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 54px;
  display: grid;
  gap: 24px;
}

.profile-hero,
.profile-card,
.profile-section,
.profile-empty,
.profile-cv-card {
  border: 1px solid rgba(22, 112, 82, 0.14);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 60px rgba(18, 46, 36, 0.08);
}

.profile-hero {
  border-radius: 26px;
  padding: clamp(24px, 4vw, 44px);
  background:
    linear-gradient(135deg, rgba(236, 253, 245, 0.96), rgba(255, 255, 255, 0.9));
}

.profile-hero h2 {
  margin: 6px 0 8px;
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.profile-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.6;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.75fr);
  gap: 18px;
}

.profile-card,
.profile-section,
.profile-empty {
  border-radius: 22px;
  padding: 22px;
}

.profile-card h3,
.profile-wallet-card h3 {
  margin: 6px 0 12px;
  color: var(--ink);
  font-size: 1.5rem;
}

.profile-wallet-card {
  display: grid;
  align-content: start;
  gap: 12px;
}

.profile-wallet-card h3 {
  font-size: 2rem;
}

.profile-wallet-card p {
  color: var(--muted);
  line-height: 1.5;
}

.profile-meta-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.profile-meta-list div {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: rgba(248, 252, 250, 0.82);
}

.profile-meta-list dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile-meta-list dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-weight: 760;
  overflow-wrap: anywhere;
}

.profile-cv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.profile-cv-card {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 16px;
  border-radius: 20px;
  padding: 14px;
}

.profile-cv-preview {
  overflow: hidden;
  min-height: 204px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #eef6f2;
}

.profile-cv-preview iframe {
  width: 286%;
  height: 286%;
  border: 0;
  pointer-events: none;
}

.profile-cv-copy {
  display: grid;
  align-content: start;
  gap: 8px;
}

.profile-cv-copy h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.12rem;
}

.profile-cv-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.profile-cv-tags,
.profile-cv-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-cv-tags span {
  border: 1px solid rgba(22, 112, 82, 0.16);
  border-radius: 999px;
  background: rgba(236, 253, 245, 0.82);
  color: var(--accent-dark);
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 760;
}

.profile-cv-actions {
  margin-top: 4px;
}

.profile-cv-actions button,
.profile-cv-actions .button-link {
  padding: 7px 10px;
  font-size: 0.82rem;
}

.profile-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: start;
  gap: 10px;
}

.profile-empty h3 {
  margin: 0;
  color: var(--ink);
}

.profile-empty p {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
  line-height: 1.5;
}

.profile-preview-modal {
  width: min(920px, 96vw);
  height: min(92vh, 980px);
}

.profile-preview-frame {
  width: 100%;
  min-height: 66vh;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f3f6f4;
}

@media (max-width: 900px) {
  .gateway-actions {
    grid-template-columns: 1fr;
  }

  .gateway-card {
    min-height: 138px;
  }

  .document-grid,
  .ats-columns,
  .confirm-grid,
  .confirm-columns,
    .auth-grid,
    .profile-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .dashboard-gateway {
    min-height: auto;
    padding: 30px 0 34px;
  }

  .gateway-active .dashboard-gateway {
    min-height: auto;
  }

  .gateway-active .dashboard-footer {
    justify-content: center;
    margin-bottom: 12px;
    text-align: center;
  }

  .dashboard-credit-group,
  .dashboard-support {
    justify-content: center;
  }

  .dashboard-support {
    padding-left: 0;
    border-left: 0;
  }

  .gateway-copy h2 {
    font-size: 1.85rem;
  }

  .gateway-card-body {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
  }

  .workspace-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-strip,
  .toolbar,
  .metric-grid {
    width: 100%;
    justify-content: flex-start;
  }

  .plan-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .plan-actions {
    justify-content: flex-start;
  }

  .wizard-progress ol {
    gap: 4px;
  }

  .wizard-progress li {
    font-size: 0.68rem;
  }

  .progress-dot {
    width: 24px;
    height: 24px;
  }

  .wizard-progress li::before {
    top: 12px;
  }

  .flow-step {
    padding: 20px;
  }

  .profile-meta-list,
  .profile-cv-card {
    grid-template-columns: 1fr;
  }

  .profile-cv-preview {
    min-height: 260px;
  }

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

  .cv-template-preview {
    height: 190px;
  }

  .cv-template-preview iframe {
    transform: scale(0.3);
  }

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

  .preview-head {
    display: grid;
  }

  th,
  td {
    padding: 10px;
  }

  .table-wrap {
    border-radius: 0;
    margin-left: -18px;
    margin-right: -18px;
    border-left: 0;
    border-right: 0;
  }
}

@media (max-width: 440px) {
  .gateway-copy h2 {
    font-size: 1.38rem;
  }
}

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

.builder-shell {
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-content: start;
  width: min(860px, calc(100% - 32px));
  min-height: calc(100vh - 118px);
  margin: 0 auto;
  padding: 14px 0 104px;
  overflow-anchor: none;
}

.builder-shell.skills-workspace {
  width: min(1500px, calc(100vw - 32px));
  max-width: none;
  padding-top: 16px;
}

.builder-shell.customization-workspace-shell {
  width: min(1580px, calc(100vw - 36px));
  max-width: none;
  padding-top: 16px;
}

.builder-shell.template-workspace-shell {
  width: min(1800px, calc(100vw - 28px));
  max-width: none;
  padding-top: 12px;
}

.builder-shell[data-current-step="applicationType"],
.builder-shell:has(.selection-picker[data-selection-picker="application-type"]) {
  grid-template-rows: auto minmax(320px, 1fr);
}

.builder-shell[data-current-step="applicationType"] .builder-step,
.builder-shell:has(.selection-picker[data-selection-picker="application-type"]) .builder-step {
  align-self: center;
  transform: translateY(-28px);
}

.template-workspace-shell .builder-step {
  width: 100%;
  min-height: calc(100vh - 122px);
  padding: clamp(22px, 2.4vw, 38px);
}

.template-workspace-shell .builder-generate {
  width: 100%;
  min-height: calc(100vh - 200px);
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
}

.customization-workspace-shell .builder-step {
  width: 100%;
  padding: clamp(24px, 2.6vw, 42px);
}

.skills-workspace .builder-step {
  min-height: calc(100vh - 220px);
  padding: clamp(26px, 3vw, 44px);
}

.builder-progress {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.builder-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

.builder-step-jump {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.builder-step-jump select {
  width: min(210px, 32vw);
  min-height: 32px;
  padding: 5px 28px 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 0.76rem;
}

.builder-generated-shortcut {
  min-height: 32px;
  padding: 5px 10px;
  border-color: rgba(22, 112, 82, 0.28);
  border-radius: 8px;
  background: rgba(22, 112, 82, 0.08);
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.builder-generated-shortcut:hover {
  border-color: var(--accent);
  background: rgba(22, 112, 82, 0.14);
}

.correction-return-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(22, 112, 82, 0.2);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(22, 112, 82, 0.07);
  color: var(--accent-dark);
}

.correction-return-banner div {
  display: grid;
  gap: 2px;
}

.correction-return-banner strong {
  font-size: 0.82rem;
}

.correction-return-banner span {
  color: var(--muted);
  font-size: 0.78rem;
}

.correction-return-banner button {
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 9px;
  white-space: nowrap;
  font-size: 0.76rem;
}

.builder-progress-copy strong {
  color: var(--ink);
}

.builder-progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--line);
}

.builder-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 260ms ease;
}

.builder-step {
  align-self: start;
  min-height: 0;
  max-height: none;
  overflow: visible;
  overflow-anchor: none;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.builder-step.is-transitioning {
  animation: builder-enter 220ms ease both;
}

.builder-welcome-workspace {
  width: min(760px, calc(100% - 32px));
  justify-items: center;
}

.builder-step.builder-welcome-step {
  width: min(460px, 100%);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

@keyframes builder-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.builder-intro,
.builder-form,
.builder-review,
.builder-generate,
.builder-final-edit,
.builder-customize {
  display: grid;
  gap: 14px;
  min-height: 0;
}

.builder-welcome-step .builder-intro {
  justify-items: stretch;
  width: 100%;
  gap: 12px;
}

.builder-entry-card {
  min-height: 158px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  width: 100%;
  border: 1px solid rgba(5, 150, 105, 0.34);
  border-radius: 24px;
  padding: 22px 24px;
  background:
    linear-gradient(180deg, rgba(236, 253, 245, 0.9), rgba(255, 255, 255, 0.76)),
    rgba(255, 255, 255, 0.8);
  color: #0f172a;
  text-align: left;
  box-shadow: 0 22px 58px rgba(6, 95, 70, 0.09);
  backdrop-filter: blur(14px);
}

.builder-entry-card:hover {
  border-color: rgba(5, 150, 105, 0.48);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 70px rgba(6, 95, 70, 0.13);
  transform: translateY(-3px);
}

.builder-entry-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.builder-entry-index {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
}

.builder-entry-arrow {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid rgba(52, 211, 153, 0.38);
  border-radius: 999px;
  color: #059669;
  font-size: 0.68rem;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.builder-entry-card:hover .builder-entry-arrow {
  transform: translateX(2px);
}

.builder-entry-card-body {
  display: grid;
  gap: 7px;
}

.builder-entry-card strong {
  color: #0f172a;
  font-size: clamp(1.06rem, 1.55vw, 1.34rem);
  line-height: 1.12;
}

.builder-entry-card small {
  max-width: 285px;
  color: #64748b;
  font-size: clamp(0.82rem, 1.1vw, 0.92rem);
  line-height: 1.48;
}

.builder-entry-actions {
  display: flex;
  justify-content: center;
}

.builder-entry-actions button {
  border-color: rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.82rem;
  box-shadow: none;
}

.builder-kicker {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.builder-title {
  max-width: 720px;
  font-size: clamp(1.25rem, 3vw, 1.85rem);
}

.builder-description,
.builder-help {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.9rem;
}

.builder-fields,
.builder-form-grid,
.entry-form {
  display: grid;
  gap: 10px;
  min-height: 0;
}

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

.builder-form label,
.entry-form label,
.builder-fields label {
  display: grid;
  gap: 6px;
  color: #334039;
  font-size: 0.88rem;
  font-weight: 700;
}

.builder-form input,
.builder-form select,
.builder-form textarea,
.entry-form input,
.entry-form select,
.entry-form textarea,
.builder-fields input,
.builder-fields select,
.builder-fields textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 400;
}

.builder-form textarea,
.entry-form textarea {
  min-height: 64px;
  resize: vertical;
}

.job-advert-step {
  width: min(920px, 100%);
  justify-self: center;
}

.job-advert-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(22, 112, 82, 0.15);
  border-radius: 18px;
  padding: clamp(14px, 2vw, 20px);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 40px rgba(18, 46, 36, 0.07);
}

.job-advert-textarea {
  min-height: clamp(220px, 36vh, 420px) !important;
  line-height: 1.45;
}

.job-advert-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.job-advert-upload {
  flex: 1 1 280px;
  margin: 0;
}

.job-advert-upload input {
  min-height: 46px;
}

.job-advert-upload-row button {
  min-height: 42px;
  padding: 9px 13px;
  border-radius: 10px;
}

.job-advert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.job-advert-meta span {
  border: 1px solid rgba(22, 112, 82, 0.13);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(22, 112, 82, 0.06);
}

.field-span {
  grid-column: 1 / -1;
}

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

.choice-card,
.chip {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.choice-card:hover,
.chip:hover {
  border-color: rgba(22, 112, 82, 0.5);
}

.choice-card:has(input:checked),
.chip:has(input:checked) {
  border-color: var(--accent);
  background: rgba(22, 112, 82, 0.08);
  color: var(--accent-dark);
  font-weight: 700;
}

.builder-step .choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.builder-step .choice-grid .choice-card {
  min-height: 38px;
  border-color: #d9e0dc;
  border-radius: 999px;
  padding: 8px 14px;
  background: #ffffff;
  color: #26312c;
  font-size: 0.88rem;
  font-weight: 650;
  box-shadow: none;
}

.builder-step .choice-grid .choice-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.builder-step .choice-grid .choice-card:hover {
  border-color: rgba(22, 112, 82, 0.34);
  background: rgba(22, 112, 82, 0.045);
  box-shadow: none;
}

.builder-step .choice-grid .choice-card:focus-within {
  outline: 2px solid rgba(22, 112, 82, 0.24);
  outline-offset: 2px;
}

.builder-step .choice-grid .choice-card:has(input:checked) {
  border-color: #167052;
  background: #167052;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(22, 112, 82, 0.16);
}

.builder-template-gallery {
  display: flex;
  gap: 12px;
  max-width: 100%;
  overflow-x: auto;
  padding: 3px 2px 12px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.builder-template-card {
  position: relative;
  flex: 0 0 174px;
  scroll-snap-align: start;
  border-radius: 12px;
  padding: 7px;
}

.builder-template-select {
  display: grid;
  gap: 8px;
  cursor: pointer;
}

.builder-template-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.builder-template-card .cv-template-preview {
  height: 196px;
  border-radius: 8px;
}

.builder-template-card .cv-template-preview iframe {
  transform: scale(0.172);
}

.builder-template-card .cv-template-meta {
  padding: 1px 2px 2px;
}

.builder-template-card .cv-template-meta strong {
  color: #22302a;
  font-size: 0.84rem;
  line-height: 1.2;
}

.builder-template-card .cv-template-meta small {
  display: -webkit-box;
  overflow: hidden;
  color: #65716b;
  font-size: 0.72rem;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.builder-template-preview-button {
  width: 100%;
  margin-top: 7px;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 0.76rem;
  box-shadow: none;
}

.template-workspace-shell .builder-template-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  align-content: start;
  gap: 16px;
  width: 100%;
  max-width: none;
  overflow: visible;
  padding: 4px 2px 16px;
  scroll-snap-type: none;
}

.template-workspace-shell .builder-template-card {
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
  min-height: 350px;
  padding: 9px;
}

.template-workspace-shell .builder-template-select {
  grid-template-rows: 270px auto;
}

.template-workspace-shell .builder-template-card .cv-template-preview {
  height: 270px;
}

.template-workspace-shell .builder-template-card .cv-template-preview iframe {
  transform: scale(0.235);
}

.template-workspace-shell .builder-template-card .cv-template-meta strong {
  font-size: 0.9rem;
}

.template-workspace-shell .builder-template-card .cv-template-meta small {
  font-size: 0.76rem;
  -webkit-line-clamp: 3;
}

.entry-list,
.review-sections {
  display: grid;
  gap: 10px;
}

.entry-card,
.completion-item,
.review-section {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px;
  background: #fbfcfb;
}

.entry-card-head,
.completion-head,
.review-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.entry-card p,
.review-section p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.entry-card-actions {
  display: flex;
  gap: 6px;
}

.entry-card-actions button {
  padding: 6px 9px;
  font-size: 0.78rem;
}

.builder-status {
  width: max-content;
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted);
  background: var(--surface-2);
  font-size: 0.72rem;
  font-weight: 800;
}

.builder-status.completed {
  color: var(--accent-dark);
  background: rgba(22, 112, 82, 0.1);
}

.builder-actions {
  position: fixed;
  z-index: 40;
  right: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  width: min(860px, calc(100% - 32px));
  transform: translateX(50%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 64px;
  border: 1px solid rgba(209, 220, 214, 0.88);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 38px rgba(22, 65, 48, 0.12);
  backdrop-filter: blur(14px);
}

.builder-actions.hidden {
  display: none;
}

.builder-actions #backButton {
  margin-right: auto;
}

.assist-result {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-left: 3px solid var(--accent);
  background: rgba(22, 112, 82, 0.06);
  color: #334039;
  font-size: 0.88rem;
  line-height: 1.45;
}

.selection-picker {
  display: grid;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #e5ebe7;
  border-radius: 10px;
  padding: 14px;
  background: #fbfcfb;
  box-shadow: 0 8px 22px rgba(26, 35, 31, 0.04);
}

.selection-picker:has(.picker-search),
.selection-picker:has(.picker-custom-row) {
  width: min(680px, 100%);
}

.selection-picker[data-selection-picker="application-type"] {
  gap: 10px;
  padding: 12px;
}

.builder-step:has(.selection-picker[data-selection-picker="application-type"]) {
  justify-self: center;
  width: min(640px, 100%);
  padding: clamp(18px, 2.2vw, 24px);
}

.builder-step:has(.selection-picker[data-selection-picker="application-type"]) .builder-form {
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.builder-step:has(.selection-picker[data-selection-picker="application-type"]) .builder-title,
.builder-step:has(.selection-picker[data-selection-picker="application-type"]) .builder-description {
  max-width: 580px;
}

.selection-picker[data-selection-picker="application-type"] {
  justify-self: center;
  text-align: left;
}

.selection-picker[data-selection-picker="application-type"] .picker-option-grid {
  gap: 8px;
  justify-content: center;
}

.selection-picker[data-selection-picker="application-type"] .interest-skill {
  min-height: 34px;
  border-color: #dde4e0;
  padding: 6px 12px;
  color: #28332e;
  font-size: 0.8125rem;
  font-weight: 560;
  line-height: 1.2;
  box-shadow: none;
}

.selection-picker[data-selection-picker="application-type"] .interest-skill:hover {
  border-color: #c5d4cd;
  background: #f7faf8;
  transform: none;
}

.selection-picker[data-selection-picker="application-type"] .interest-skill .skill-check {
  display: none;
}

.selection-picker[data-selection-picker="application-type"] .interest-skill:has(input:checked) {
  border-color: #136347;
  background: #136347;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(19, 99, 71, 0.14);
  transform: none;
}

.selection-picker[data-selection-picker="application-type"] .interest-skill:has(input:checked) .skill-check {
  display: none;
}

.selection-picker:first-child {
  border-top: 0;
}

.selection-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.selection-picker-head h3 {
  color: #26312c;
  font-size: 0.9rem;
  font-weight: 760;
}

.selection-picker .builder-status {
  border: 1px solid #dfe6e2;
  border-radius: 999px;
  padding: 2px 7px;
  background: #ffffff;
  color: #64706a;
  font-size: 0.65rem;
  line-height: 1.3;
  font-weight: 760;
}

.selection-picker-head p,
.picker-helper {
  max-width: 680px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.picker-search {
  max-width: 520px;
}

.picker-option-grid {
  min-height: 0;
  gap: 8px;
}

.selection-picker .picker-overflow {
  display: none;
}

.selection-picker.is-expanded .picker-overflow,
.selection-picker.is-searching .picker-overflow {
  display: inline-flex;
}

.picker-show-more {
  width: max-content;
  padding: 8px 11px;
  color: var(--muted);
  font-size: 0.82rem;
  box-shadow: none;
}

.picker-custom-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  max-width: 620px;
}

.picker-custom-row button {
  min-width: 84px;
  min-height: 42px;
}

.picker-selected-summary {
  display: grid;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid rgba(22, 112, 82, 0.12);
  border-radius: var(--radius);
  background: rgba(22, 112, 82, 0.04);
}

.compact-summary {
  padding-top: 0;
  border-top: 0;
}

.skill-search {
  display: grid;
  gap: 6px;
}

.interest-picker {
  gap: 12px;
}

.skills-workspace .interest-picker {
  grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
  align-items: start;
  column-gap: clamp(26px, 4vw, 64px);
}

.skills-workspace .interest-picker > .field-badge,
.skills-workspace .interest-picker > .builder-help {
  grid-column: 1 / -1;
}

.skill-selection-area {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.skill-custom-row {
  display: grid;
  gap: 6px;
  max-width: 620px;
  color: #334039;
  font-size: 0.82rem;
  font-weight: 750;
}

.skill-custom-row textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
}

.skill-custom-row small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.4;
}

.field-badge {
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(22, 112, 82, 0.24);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(22, 112, 82, 0.08);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.skill-filter-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 7px;
  scrollbar-width: thin;
}

.skill-filter {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  box-shadow: none;
  font-size: 0.82rem;
  font-weight: 750;
}

.skill-filter.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.skill-picker-section {
  display: grid;
  gap: 12px;
  min-height: 110px;
}

.interest-skill-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 7px;
}

.interest-skill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 38px;
  border: 1px solid #d9e0dc;
  border-radius: 999px;
  padding: 8px 14px;
  background: #fff;
  color: #26312c;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 650;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.interest-skill:hover {
  border-color: rgba(22, 112, 82, 0.34);
  background: rgba(22, 112, 82, 0.045);
  box-shadow: none;
}

.interest-skill:focus-within {
  outline: 2px solid rgba(22, 112, 82, 0.24);
  outline-offset: 2px;
}

.interest-skill input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.interest-skill .skill-check {
  display: none;
}

.interest-skill:has(input:checked) {
  border-color: #167052;
  background: #167052;
  color: #fff;
  box-shadow: 0 6px 14px rgba(22, 112, 82, 0.16);
  transform: none;
}

.interest-skill:has(input:checked) .skill-check {
  display: none;
}

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

.transferable-block summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 12px;
  cursor: pointer;
  font-weight: 750;
}

.transferable-block summary small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.selected-skills-summary {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.skills-workspace .selected-skills-summary {
  position: sticky;
  top: 112px;
  max-height: calc(100vh - 160px);
  overflow: auto;
  margin-top: 0;
  padding: 0 0 0 clamp(18px, 2.5vw, 34px);
  border-top: 0;
  border-left: 1px solid var(--line);
}

.selected-skill-group {
  display: grid;
  gap: 8px;
}

.selected-skill-group > strong {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.selected-skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.selected-skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(22, 112, 82, 0.23);
  border-radius: 999px;
  padding: 5px 5px 5px 10px;
  background: rgba(22, 112, 82, 0.08);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 750;
}

.selected-skill-pill button {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.review-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-warning {
  border-left: 3px solid var(--amber);
  padding: 9px 11px;
  background: rgba(168, 104, 22, 0.08);
  color: #765019;
  font-size: 0.84rem;
  line-height: 1.4;
}

.generation-status {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.generation-status.working {
  border-color: rgba(168, 104, 22, 0.28);
  background: rgba(168, 104, 22, 0.08);
  color: var(--amber);
}

.generation-status.success {
  border-color: rgba(22, 112, 82, 0.28);
  background: rgba(22, 112, 82, 0.08);
  color: var(--accent-dark);
}

.generation-status.error {
  border-color: rgba(169, 52, 44, 0.28);
  background: rgba(169, 52, 44, 0.08);
  color: var(--danger);
}

.builder-preview-modal {
  width: min(1000px, 100%);
  height: min(92vh, 940px);
}

.builder-preview-modal .cv-preview {
  min-height: 0;
  height: 100%;
}

.builder-final-edit {
  width: 100%;
}

.builder-final-preview {
  height: clamp(780px, calc(100vh - 140px), 1180px);
  min-height: 780px;
}

.builder-final-stage {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 148px;
  gap: 16px;
  align-items: start;
}

.builder-final-main {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: clamp(12px, 1.4vw, 20px);
  border: 1px solid var(--soft-card-border);
  border-radius: var(--soft-card-radius);
  background: var(--soft-card-bg);
  box-shadow: var(--soft-card-shadow);
}

.builder-final-ready-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.76rem;
}

.builder-customize {
  width: 100%;
  gap: 18px;
}

.customization-stage {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 148px;
  gap: 16px;
  align-items: start;
}

html:has(.customization-stage.is-fullscreen),
body:has(.customization-stage.is-fullscreen) {
  overflow: hidden;
}

body:has(.ats-customization-stage.is-fullscreen) .flow-workspace,
body:has(.ats-customization-stage.is-fullscreen) .wizard-screen.is-active,
body:has(.ats-customization-stage.is-fullscreen) .ats-result {
  animation: none;
  transform: none;
}

.customization-stage.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 100;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  width: 100vw;
  height: 100vh;
  padding: 0;
  background: #f7fbf8;
  overflow: hidden;
}

.customization-fullscreen-toolbar {
  display: none;
}

.customization-stage.is-fullscreen .customization-main {
  position: relative;
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.customization-stage.is-fullscreen .builder-kicker,
.customization-stage.is-fullscreen .builder-title,
.customization-stage.is-fullscreen .builder-description,
.customization-stage.is-fullscreen #builderCustomizeStatus {
  display: none;
}

.customization-stage.is-fullscreen .customization-fullscreen-toolbar {
  position: absolute;
  top: 8px;
  left: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 0;
}

.customization-stage.is-fullscreen .customization-fullscreen-toolbar button {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
}

.customization-stage.is-fullscreen .customization-action-rail {
  display: none;
}

.customization-stage.is-fullscreen .customization-workspace {
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  gap: 6px;
  height: 100%;
  min-height: 0;
}

.customization-stage.is-fullscreen .customization-controls {
  max-height: 100%;
  overflow: auto;
  padding: 48px 8px 0 24px;
}

.customization-stage.is-fullscreen .customization-preview {
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.customization-main {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: clamp(24px, 2.6vw, 42px);
  border: 1px solid var(--soft-card-border);
  border-radius: var(--soft-card-radius);
  background: var(--soft-card-bg);
  box-shadow: var(--soft-card-shadow);
}

.customization-action-rail {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--soft-card-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 38px rgba(18, 46, 36, 0.1);
  backdrop-filter: blur(14px);
}

.customization-action-rail > span {
  padding: 2px 4px 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.customization-action-rail button,
.customization-action-rail .button-link {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 0.76rem;
  line-height: 1.25;
  text-align: center;
}

.builder-version-control {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.builder-version-control select {
  width: 100%;
  min-height: 38px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 0.72rem;
}

.cv-insights-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(22, 112, 82, 0.16);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 34px rgba(18, 46, 36, 0.06);
}

.cv-insights-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(22, 112, 82, 0.12);
  border-radius: 14px;
  background: rgba(232, 247, 241, 0.55);
}

.cv-insights-tabs button {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  box-shadow: none;
}

.cv-insights-tabs button:hover {
  border-color: rgba(22, 112, 82, 0.18);
  background: rgba(255, 255, 255, 0.78);
  transform: translateY(-1px);
}

.cv-insights-tabs button.is-active,
.cv-insights-tabs button[aria-selected="true"] {
  border-color: rgba(22, 112, 82, 0.24);
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 10px 22px rgba(22, 112, 82, 0.16);
}

.cv-insights-content {
  min-width: 0;
}

.cv-insights-content .cv-analysis-panel,
.cv-insights-content .job-ad-match-panel {
  border: 0;
  padding: 2px;
  background: transparent;
  box-shadow: none;
}

.cv-analysis-panel,
.job-ad-match-panel,
.cv-folder-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(22, 112, 82, 0.16);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.cv-folder-stage {
  width: 100%;
}

.cv-folder-stage .cv-folder-panel {
  min-height: calc(100vh - 176px);
  align-content: start;
  padding: clamp(18px, 2vw, 28px);
}

.cv-folder-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.cv-folder-toolbar button {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 0.78rem;
}

.cv-folder-toolbar button[data-clear-cv-folder] {
  color: var(--danger);
}

.cv-folder-stage .cv-folder-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.cv-folder-stage .cv-folder-preview {
  height: 250px;
}

.cv-folder-stage .cv-folder-preview iframe {
  transform: translateX(-50%) scale(0.215);
}

.cv-analysis-panel .section-heading,
.job-ad-match-panel .section-heading,
.cv-folder-panel .section-heading {
  margin: 0;
}

.job-ad-match-meter {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(22, 112, 82, 0.1);
}

.job-ad-match-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-dark), #2bbf87);
}

.job-ad-match-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.job-ad-match-summary span {
  border: 1px solid rgba(22, 112, 82, 0.14);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
}

.job-ad-match-summary span:first-child {
  color: var(--accent-dark);
}

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

.job-ad-match-group {
  min-width: 0;
  border: 1px solid rgba(22, 112, 82, 0.12);
  border-radius: 14px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.74);
}

.job-ad-match-group h4 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 0.84rem;
}

.job-ad-match-group p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.job-ad-term-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.job-ad-term {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  background: #fff;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 760;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.job-ad-term-covered {
  border-color: rgba(22, 112, 82, 0.18);
  background: rgba(22, 112, 82, 0.08);
  color: var(--accent-dark);
}

.job-ad-term-missing {
  border-color: rgba(184, 124, 31, 0.2);
  background: rgba(255, 246, 229, 0.9);
  color: #7a4d0d;
}

.job-ad-term-suggested {
  border-color: rgba(22, 112, 82, 0.2);
  background: rgba(232, 247, 241, 0.95);
  color: var(--accent-dark);
}

.job-ad-match-recommendations {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(22, 112, 82, 0.13);
  border-radius: 13px;
  padding: 10px 11px;
  background: rgba(232, 247, 241, 0.72);
}

.job-ad-match-recommendations p {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.76rem;
  line-height: 1.42;
  font-weight: 700;
}

.job-ad-match-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(22, 112, 82, 0.14);
  border-radius: 14px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.78);
}

.job-ad-match-upload > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.job-ad-match-upload strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.job-ad-match-upload span {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.job-ad-match-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.job-ad-match-upload-button {
  display: inline-grid;
  place-items: center;
  min-height: 36px;
  margin: 0;
  border: 1px solid rgba(22, 112, 82, 0.2);
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(22, 112, 82, 0.14);
}

.job-ad-match-generate {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(22, 112, 82, 0.2);
  border-radius: 999px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 850;
  box-shadow: 0 10px 20px rgba(22, 112, 82, 0.12);
}

.job-ad-match-upload-button input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.job-ad-match-upload .generation-status {
  grid-column: 1 / -1;
  margin: 0;
}

@media (max-width: 760px) {
  .job-ad-match-columns {
    grid-template-columns: 1fr;
  }

  .job-ad-match-upload {
    grid-template-columns: 1fr;
  }

  .job-ad-match-upload-button {
    justify-self: start;
  }

  .job-ad-match-actions {
    justify-content: flex-start;
  }

  .cv-insights-tabs button {
    flex: 1 1 140px;
  }
}

.cv-analysis-strengths {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cv-analysis-strengths span {
  border: 1px solid rgba(22, 112, 82, 0.18);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(22, 112, 82, 0.08);
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 750;
}

.cv-analysis-note {
  margin: 0;
  border: 1px solid rgba(22, 112, 82, 0.16);
  border-radius: 12px;
  padding: 9px 11px;
  background: rgba(232, 247, 241, 0.82);
  color: var(--accent-dark);
  font-size: 0.78rem;
  line-height: 1.4;
  font-weight: 700;
}

.cv-analysis-list {
  display: grid;
  gap: 8px;
}

.cv-analysis-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-left: 3px solid rgba(22, 112, 82, 0.4);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.cv-analysis-high {
  border-left-color: var(--danger);
}

.cv-analysis-medium {
  border-left-color: var(--amber);
}

.cv-analysis-item p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.42;
}

.cv-analysis-item small {
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 650;
}

.cv-analysis-item button {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
}

.cv-folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

.cv-folder-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(18, 46, 36, 0.07);
}

.cv-folder-card.is-current {
  border-color: rgba(22, 112, 82, 0.44);
  background: rgba(22, 112, 82, 0.06);
}

.cv-folder-card small {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.cv-folder-preview {
  position: relative;
  height: 180px;
  overflow: hidden;
  border: 1px solid rgba(22, 112, 82, 0.12);
  border-radius: 10px;
  background: #eef3f0;
}

.cv-folder-preview iframe {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 794px;
  height: 1123px;
  border: 0;
  background: #fff;
  box-shadow: 0 10px 24px rgba(18, 46, 36, 0.14);
  pointer-events: none;
  transform: translateX(-50%) scale(0.155);
  transform-origin: top center;
}

.cv-folder-preview > span {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.cv-folder-preview strong {
  position: absolute;
  left: 8px;
  bottom: 8px;
  border-radius: 999px;
  padding: 4px 7px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-dark);
  font-size: 0.68rem;
  font-weight: 850;
  box-shadow: 0 6px 16px rgba(18, 46, 36, 0.12);
}

.cv-folder-card .inline-actions {
  gap: 6px;
}

.cv-folder-card button,
.cv-folder-card .button-link {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
}

.customization-action-rail-left {
  justify-self: end;
}

.customization-action-rail-right {
  justify-self: start;
}

.ats-action-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 156px;
  gap: 16px;
  align-items: start;
}

.ats-final-editor,
.ats-customization-stage,
.ats-folder-stage {
  animation: item-in 220ms ease both;
}

.ats-final-main {
  min-width: 0;
}

.ats-final-editor .cv-analysis-item {
  grid-template-columns: minmax(0, 1fr);
}

.ats-customization-stage.is-fullscreen .customization-main > .generation-status {
  display: none;
}

.ats-folder-stage .cv-folder-panel {
  min-height: min(760px, calc(100vh - 176px));
}

.ats-folder-stage .cv-folder-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.ats-folder-stage .cv-folder-preview {
  height: 250px;
}

.ats-folder-stage .cv-folder-preview iframe {
  transform: translateX(-50%) scale(0.215);
}

.ats-result-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.ats-action-rail {
  justify-self: start;
}

.customization-workspace {
  display: grid;
  grid-template-columns: minmax(330px, 410px) minmax(0, 1fr);
  gap: clamp(22px, 2.4vw, 38px);
  align-items: stretch;
}

.customization-controls {
  display: grid;
  align-content: start;
  gap: 20px;
  min-width: 0;
  padding-right: clamp(4px, 1vw, 16px);
}

.customization-control {
  display: grid;
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: #334039;
  font-size: 0.86rem;
  font-weight: 750;
}

.customization-control legend {
  padding: 0;
  margin-bottom: 7px;
}

.customization-control select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
}

.customization-color-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.customization-color-row input {
  width: 64px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 3px;
  background: #fff;
  cursor: pointer;
}

.customization-color-row strong {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.customization-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.customization-choice {
  position: relative;
  cursor: pointer;
}

.customization-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.customization-choice span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #405149;
  font-size: 0.78rem;
  font-weight: 650;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.customization-choice input:checked + span {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 6px 16px rgba(10, 103, 72, 0.14);
}

.customization-choice input:focus-visible + span {
  outline: 3px solid rgba(30, 170, 120, 0.22);
  outline-offset: 2px;
}

.customization-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #405149;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}

.customization-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-dark);
  cursor: pointer;
}

.customization-check:has(input:checked) {
  border-color: rgba(10, 103, 72, 0.42);
  background: rgba(10, 103, 72, 0.06);
}

.customization-order-list {
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--line);
}

.customization-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  color: #405149;
  font-size: 0.78rem;
  font-weight: 650;
}

.customization-order-actions {
  display: flex;
  gap: 4px;
}

.customization-order-actions button {
  width: 28px;
  min-height: 28px;
  padding: 3px;
  border-radius: 7px;
  font-size: 0.88rem;
  line-height: 1;
}

.customization-preview {
  width: 100%;
  height: clamp(680px, calc(100vh - 210px), 1040px);
  min-height: 680px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 20px 54px rgba(18, 46, 36, 0.12);
}

.builder-feedback {
  position: sticky;
  bottom: 12px;
  z-index: 12;
  display: grid;
  gap: 7px;
  border: 1px solid rgba(22, 112, 82, 0.16);
  border-radius: 16px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.96);
  color: #334039;
  font-size: 0.88rem;
  font-weight: 750;
  box-shadow: 0 14px 34px rgba(18, 46, 36, 0.09);
  backdrop-filter: blur(12px);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.builder-feedback:focus-within {
  border-color: rgba(22, 112, 82, 0.38);
  box-shadow: 0 18px 46px rgba(18, 46, 36, 0.16);
  transform: translateY(-2px);
}

.builder-feedback textarea {
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  resize: vertical;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

@media (max-width: 720px) {
  .builder-progress-copy {
    align-items: stretch;
    flex-direction: column;
  }

  .builder-actions {
    gap: 6px;
    min-height: 58px;
    padding: 8px;
  }

  .builder-actions #backButton {
    margin-right: auto;
  }

  .builder-actions button {
    padding: 9px 10px;
    font-size: 0.8rem;
  }

  .builder-form-grid,
  .choice-grid,
  .chip-grid,
  .completion-grid,
  .template-choice-grid {
    grid-template-columns: 1fr;
  }

  .interest-skill-grid {
    gap: 6px;
  }

  .interest-skill {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 0.84rem;
  }

  .selection-picker {
    width: 100%;
    padding: 12px;
  }

  .selection-picker[data-selection-picker="application-type"] .interest-skill {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 0.8125rem;
  }

  .builder-step {
    min-height: auto;
    max-height: none;
    overflow: visible;
    padding: 20px;
  }

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

  .customization-preview {
    height: 62vh;
    min-height: 420px;
  }

  .builder-shell {
    min-height: auto;
    padding-bottom: 94px;
  }

  .selection-picker-head,
  .picker-custom-row {
    grid-template-columns: 1fr;
  }

  .selection-picker-head {
    display: grid;
  }

  .picker-show-more {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .builder-shell.skills-workspace {
    width: min(920px, calc(100% - 32px));
  }

  .skills-workspace .interest-picker {
    grid-template-columns: 1fr;
  }

  .skills-workspace .interest-picker > .field-badge,
  .skills-workspace .interest-picker > .builder-help {
    grid-column: auto;
  }

  .skills-workspace .selected-skills-summary {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 1100px) {
  .builder-shell.customization-workspace-shell {
    width: min(960px, calc(100vw - 28px));
  }

  .customization-stage.is-fullscreen {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .customization-stage.is-fullscreen .customization-main {
    grid-row: auto;
    min-height: min(920px, calc(100vh - 108px));
  }

  .builder-shell.template-workspace-shell {
    width: min(1000px, calc(100vw - 28px));
  }

  .template-workspace-shell .builder-template-gallery {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  }

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

  .customization-stage,
  .builder-final-stage,
  .ats-action-stage {
    grid-template-columns: 1fr;
  }

  .customization-main,
  .builder-final-main,
  .ats-result-main {
    grid-row: 2;
  }

  .customization-action-rail {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
  }

  .customization-action-rail > span {
    display: none;
  }

  .customization-action-rail-left {
    grid-row: 3;
    justify-self: center;
  }

  .customization-action-rail-right {
    grid-row: 1;
    justify-self: center;
  }

  .ats-action-rail {
    grid-row: 1;
    justify-self: center;
  }

  .customization-action-rail button,
  .customization-action-rail .button-link {
    width: auto;
  }

  .customization-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-right: 0;
  }

  .customization-controls .customization-control:last-child {
    grid-column: 1 / -1;
  }

  .customization-preview {
    height: min(900px, 76vh);
    min-height: 600px;
  }
}

@media (max-width: 720px) {
  .customization-controls {
    grid-template-columns: 1fr;
  }

  .builder-step-jump {
    width: 100%;
    justify-content: space-between;
  }

  .builder-generated-shortcut {
    width: 100%;
  }

  .builder-step-jump select {
    width: min(230px, 62vw);
  }

  .customization-controls .customization-control:last-child {
    grid-column: auto;
  }

  .customization-preview {
    min-height: 460px;
  }

  .builder-final-preview {
    height: 76vh;
    min-height: 620px;
  }

  .template-workspace-shell .builder-step {
    padding: 18px;
  }

  .template-workspace-shell .builder-template-gallery {
    grid-template-columns: 1fr;
  }

  .template-workspace-shell .builder-template-card {
    min-height: 430px;
  }

  .template-workspace-shell .builder-template-select {
    grid-template-rows: 350px auto;
  }

  .template-workspace-shell .builder-template-card .cv-template-preview {
    height: 350px;
  }

  .template-workspace-shell .builder-template-card .cv-template-preview iframe {
    transform: scale(0.31);
  }

  .customization-action-rail {
    position: static;
    width: 100%;
  }

  .customization-action-rail button,
  .customization-action-rail .button-link {
    flex: 1 1 140px;
  }
}

.plan-panel,
.auth-card,
.flow-step,
.document-panel,
.letter-revision-panel details,
.send-results,
.modal-card,
.builder-step:not(.builder-welcome-step),
.entry-card,
.completion-item,
.review-section,
.selection-picker,
.cv-template-card,
.preview-item {
  border-color: var(--soft-card-border);
  border-radius: var(--soft-card-radius);
  background: var(--soft-card-bg);
  box-shadow: var(--soft-card-shadow);
}

.document-row,
.metric-line,
.ats-columns div,
.metric,
.email-mode,
.email-chip,
.picker-selected-summary,
.generation-status,
.assist-result,
.selected-skills-summary,
.table-wrap {
  border-color: var(--soft-card-border);
  border-radius: var(--soft-card-radius-sm);
  background: var(--soft-card-bg-flat);
  box-shadow: var(--soft-card-shadow-sm);
}

.cv-template-card:hover,
.preview-item:hover,
.entry-card:hover,
.selection-picker:hover,
.document-panel:hover {
  border-color: var(--soft-card-border-strong);
  box-shadow: 0 22px 64px rgba(6, 95, 70, 0.105);
}

.table-wrap {
  overflow: auto;
}

.builder-step.builder-welcome-step {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.customization-workspace-shell .builder-step {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.template-browser-body {
  height: 100vh;
  overflow: hidden;
}

.template-browser-topbar {
  position: relative;
}

.template-browser-shell {
  display: grid;
  grid-template-columns: minmax(260px, 330px) minmax(0, 1fr);
  height: calc(100vh - 64px);
  min-height: 0;
}

.template-browser-sidebar {
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  border-right: 1px solid var(--line);
  background: rgba(248, 252, 249, 0.96);
}

.template-browser-sidebar-heading,
.template-browser-stage-heading,
.template-browser-actions,
.template-browser-option-copy {
  display: flex;
  align-items: center;
}

.template-browser-sidebar-heading {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.75rem;
}

.template-browser-sidebar-heading span {
  color: var(--accent-dark);
  font-weight: 800;
  text-transform: uppercase;
}

.template-browser-list {
  display: grid;
  gap: 10px;
}

.template-browser-option {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 8px;
  border-radius: 10px;
  text-align: left;
}

.template-browser-option.is-selected {
  border: 2px solid var(--accent-dark);
  background: rgba(18, 102, 77, 0.13);
  box-shadow:
    0 0 0 3px rgba(22, 112, 82, 0.16),
    0 12px 28px rgba(10, 70, 53, 0.16);
}

.template-browser-option.is-selected .template-browser-option-preview {
  border-color: var(--accent);
}

.template-browser-option.is-selected .template-browser-option-copy strong {
  color: var(--accent-dark);
}

.template-browser-selected-label {
  display: none;
  width: fit-content;
  margin-top: 3px;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--accent-dark);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
}

.template-browser-option.is-selected .template-browser-selected-label {
  display: inline-flex;
}

.template-browser-option-preview {
  position: relative;
  display: block;
  height: 98px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  pointer-events: none;
}

.template-browser-option-preview iframe {
  width: 210mm;
  height: 297mm;
  border: 0;
  transform: scale(0.095);
  transform-origin: top left;
  pointer-events: none;
}

.template-browser-option-copy {
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.template-browser-option-copy strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.template-browser-option-copy small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.template-browser-stage {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  min-height: 0;
  padding: 18px;
}

.template-browser-stage-heading {
  justify-content: space-between;
  gap: 18px;
}

.template-browser-stage-heading > div:first-child {
  display: grid;
  gap: 4px;
}

.template-browser-stage-heading h2 {
  font-size: 1.3rem;
}

.template-browser-stage-heading p {
  color: var(--muted);
  font-size: 0.82rem;
}

.template-browser-actions {
  gap: 8px;
  flex: 0 0 auto;
}

.template-browser-actions button:not(.primary) {
  width: 40px;
  padding: 8px;
}

.template-browser-preview {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(18, 46, 36, 0.12);
}

@media (max-width: 800px) {
  .template-browser-body {
    height: auto;
    overflow: auto;
  }

  .template-browser-shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .template-browser-sidebar {
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .template-browser-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .template-browser-option {
    flex: 0 0 230px;
  }

  .template-browser-stage {
    min-height: 78vh;
  }

  .template-browser-stage-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .template-browser-actions {
    width: 100%;
  }

  .template-browser-actions .primary {
    flex: 1;
  }

  .template-browser-preview {
    min-height: 68vh;
  }
}

/* Modern account welcome screen */
.auth-body {
  min-width: 320px;
  overflow-x: hidden;
  background: #f5faf7;
}

.auth-backdrop,
.auth-backdrop > span {
  position: fixed;
  pointer-events: none;
}

.auth-backdrop {
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background:
    radial-gradient(circle at 10% 8%, rgba(52, 211, 153, 0.17), transparent 30%),
    radial-gradient(circle at 90% 82%, rgba(16, 185, 129, 0.14), transparent 32%),
    linear-gradient(135deg, #fbfefc 0%, #f3fbf7 52%, #eef9f4 100%);
}

.auth-orb {
  border-radius: 999px;
  filter: blur(2px);
}

.auth-orb-one {
  top: -19vw;
  left: -14vw;
  width: 42vw;
  height: 42vw;
  border: 1px solid rgba(16, 185, 129, 0.11);
  box-shadow:
    0 0 0 70px rgba(52, 211, 153, 0.025),
    0 0 0 140px rgba(52, 211, 153, 0.018);
}

.auth-orb-two {
  right: -16vw;
  bottom: -25vw;
  width: 46vw;
  height: 46vw;
  background: rgba(110, 231, 183, 0.07);
  box-shadow: inset 0 0 100px rgba(5, 150, 105, 0.08);
}

.auth-grid-pattern {
  inset: 0;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(5, 150, 105, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 150, 105, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(105deg, #000, transparent 48%, #000);
  -webkit-mask-image: linear-gradient(105deg, #000, transparent 48%, #000);
}

.auth-body .auth-view {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: block;
}

.auth-topbar {
  width: min(1320px, calc(100% - 56px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.auth-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.auth-brand-link .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(145deg, #047857, #16a87a);
  box-shadow: 0 11px 28px rgba(5, 150, 105, 0.2);
}

.auth-brand-link .brand-mark::before {
  top: 12px;
}

.auth-brand-link .brand-mark span {
  top: 19px;
}

.auth-brand-link .brand-mark::after {
  top: 26px;
}

.auth-brand-copy {
  display: grid;
  gap: 1px;
}

.auth-brand-copy strong {
  color: #103d30;
  font-size: 0.94rem;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.auth-brand-copy small {
  color: #738079;
  font-size: 0.72rem;
}

.auth-explore-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(15, 118, 84, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #31594c;
  padding: 9px 14px;
  box-shadow: 0 8px 24px rgba(15, 70, 53, 0.04);
  font-size: 0.79rem;
  font-weight: 750;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.auth-explore-link span {
  color: #059669;
  font-size: 1rem;
  transition: transform 180ms ease;
}

.auth-explore-link:hover {
  border-color: rgba(5, 150, 105, 0.3);
  background: rgba(255, 255, 255, 0.94);
  transform: translateY(-1px);
}

.auth-explore-link:hover span {
  transform: translateX(3px);
}

.auth-layout {
  width: min(1240px, calc(100% - 56px));
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  padding: 34px 0 66px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(400px, 0.8fr);
  align-items: center;
  gap: clamp(64px, 8vw, 128px);
}

.auth-showcase {
  min-width: 0;
  display: grid;
  gap: 30px;
  animation: auth-content-in 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-showcase-copy {
  display: grid;
  gap: 20px;
}

.auth-showcase-kicker {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(5, 150, 105, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: #42675a;
  padding: 7px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 26px rgba(12, 76, 57, 0.04);
}

.auth-showcase-kicker i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.12), 0 0 16px rgba(52, 211, 153, 0.72);
}

.auth-showcase h1 {
  max-width: 720px;
  color: #113c30;
  font-size: clamp(3rem, 4.5vw, 4.75rem);
  font-weight: 790;
  line-height: 0.99;
  letter-spacing: -0.058em;
}

.auth-showcase h1 span {
  color: #0f9d73;
  background: linear-gradient(92deg, #047857, #10b981 58%, #3bcf9e);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-showcase-copy > p {
  max-width: 610px;
  color: #64736d;
  font-size: 1rem;
  line-height: 1.65;
}

.auth-workspace-preview {
  position: relative;
  width: min(530px, 90%);
  height: 250px;
  margin: 0 0 0 22px;
}

.auth-preview-glow {
  position: absolute;
  inset: 12% 4% 0;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.18);
  filter: blur(38px);
}

.auth-preview-sheet {
  position: absolute;
  top: 0;
  left: 94px;
  width: 205px;
  height: 250px;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 84, 0.1);
  border-radius: 8px;
  background: #fff;
  padding: 24px 21px;
  box-shadow: 0 30px 60px rgba(19, 67, 52, 0.15);
  transform: rotate(-3.5deg);
}

.auth-preview-sheet::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 8px;
  background: linear-gradient(#16a87a, #34d399);
}

.auth-preview-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #dce9e3;
}

.auth-preview-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #e1f7ee;
  color: #087454;
  font-size: 0.52rem;
  font-weight: 900;
}

.auth-preview-name {
  flex: 1;
  display: grid;
  gap: 5px;
}

.auth-preview-name i,
.auth-preview-contact i,
.auth-preview-lines i,
.auth-preview-columns i,
.auth-preview-section strong,
.auth-preview-section span,
.auth-preview-columns strong {
  display: block;
  border-radius: 999px;
  background: #dbe8e2;
}

.auth-preview-name i:first-child {
  width: 72%;
  height: 7px;
  background: #225b49;
}

.auth-preview-name i:last-child {
  width: 52%;
  height: 4px;
}

.auth-preview-contact {
  display: flex;
  gap: 5px;
  margin: 10px 0 15px;
}

.auth-preview-contact i {
  width: 28%;
  height: 3px;
}

.auth-preview-section {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 7px;
}

.auth-preview-section strong {
  width: 35%;
  height: 5px;
  background: #168a67;
}

.auth-preview-section span {
  flex: 1;
  height: 1px;
}

.auth-preview-section-short strong {
  width: 25%;
}

.auth-preview-lines,
.auth-preview-columns > div {
  display: grid;
  gap: 5px;
}

.auth-preview-lines i,
.auth-preview-columns i {
  height: 3px;
}

.auth-preview-lines i:nth-child(2) {
  width: 89%;
}

.auth-preview-lines i:nth-child(3) {
  width: 68%;
}

.auth-preview-columns {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 12px;
  margin: 15px 0;
}

.auth-preview-columns strong {
  width: 58%;
  height: 5px;
  margin-bottom: 2px;
  background: #356b59;
}

.auth-preview-card {
  position: absolute;
  z-index: 2;
  min-width: 172px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.9);
  padding: 11px 13px;
  box-shadow: 0 18px 45px rgba(15, 77, 58, 0.13);
  backdrop-filter: blur(14px);
}

.auth-preview-card span:last-child {
  display: grid;
  gap: 1px;
}

.auth-preview-card small {
  color: #82918b;
  font-size: 0.57rem;
}

.auth-preview-card strong {
  color: #234b3e;
  font-size: 0.72rem;
}

.auth-preview-ats {
  top: 25px;
  right: 10px;
  animation: auth-float 5s ease-in-out infinite;
}

.auth-preview-designs {
  bottom: 24px;
  left: 0;
  animation: auth-float 5s 1.2s ease-in-out infinite;
}

.auth-check,
.auth-design-count {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #dff8ee;
  color: #07845e;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 900;
}

.auth-design-count {
  background: #eef4ff;
  color: #4263a5;
}

.auth-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.auth-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #586a63;
  font-size: 0.73rem;
  font-weight: 700;
}

.auth-benefits i {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.11);
  color: #07966b;
  font-size: 0.6rem;
  font-style: normal;
}

.auth-access {
  width: 100%;
  max-width: 455px;
  justify-self: end;
  animation: auth-card-in 560ms 80ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-body .auth-social-card {
  width: 100%;
  display: grid;
  gap: 20px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  padding: 12px 34px 30px;
  box-shadow:
    0 36px 90px rgba(11, 70, 52, 0.13),
    0 2px 8px rgba(11, 70, 52, 0.04),
    inset 0 0 0 1px rgba(6, 95, 70, 0.03);
  backdrop-filter: blur(22px);
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid rgba(15, 118, 84, 0.08);
  border-radius: 17px;
  background: rgba(232, 242, 237, 0.76);
  padding: 4px;
}

.auth-mode-tabs a {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #6a7772;
  font-size: 0.79rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.auth-mode-tabs a:hover {
  color: #0b7656;
}

.auth-mode-tabs a.active {
  background: #fff;
  color: #075f46;
  box-shadow: 0 5px 16px rgba(15, 74, 57, 0.09);
}

.auth-card-heading {
  display: grid;
  gap: 8px;
  padding-top: 3px;
}

.auth-body .auth-eyebrow {
  color: #07845e;
  font-size: 0.68rem;
  letter-spacing: 0.11em;
}

.auth-card-heading h2 {
  max-width: 350px;
  color: #163c30;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.038em;
}

.auth-body .auth-note {
  color: #718079;
  font-size: 0.82rem;
  line-height: 1.55;
}

.auth-body .social-auth {
  min-height: 58px;
  gap: 10px;
}

.auth-provider-loading {
  display: grid;
  gap: 8px;
}

.auth-provider-loading span {
  display: block;
  height: 56px;
  overflow: hidden;
  border-radius: 15px;
  background: #edf4f1;
  position: relative;
}

.auth-provider-loading span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.82) 45%, transparent 70%);
  animation: auth-loading 1.25s linear infinite;
}

.auth-provider-loading span:last-child {
  display: none;
}

.auth-body .social-button {
  min-height: 58px;
  justify-content: flex-start;
  gap: 12px;
  border: 1px solid #dbe7e1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: #31463e;
  padding: 10px 14px;
  box-shadow: 0 8px 22px rgba(19, 63, 50, 0.045);
  font-size: 0.85rem;
  font-weight: 650;
}

.auth-body .social-button:hover {
  border-color: rgba(5, 150, 105, 0.35);
  box-shadow: 0 15px 30px rgba(17, 87, 65, 0.1);
  transform: translateY(-2px);
}

.social-button-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid #edf1ef;
  border-radius: 10px;
  background: #fff;
  color: #202124;
  flex: 0 0 auto;
}

.social-button-icon svg {
  width: 20px;
  height: 20px;
}

.social-button-label {
  flex: 1;
  text-align: left;
}

.social-button-label strong {
  color: #203d33;
  font-weight: 850;
}

.social-button-arrow {
  color: #0a8c65;
  font-size: 1.1rem;
  transition: transform 180ms ease;
}

.social-button:hover .social-button-arrow {
  transform: translateX(3px);
}

.auth-assurance {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-radius: 13px;
  background: rgba(235, 247, 241, 0.75);
  padding: 10px 11px;
}

.auth-assurance > span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fff;
  color: #07845e;
  flex: 0 0 auto;
  box-shadow: 0 4px 12px rgba(15, 87, 65, 0.07);
}

.auth-assurance svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-assurance p {
  color: #61716b;
  font-size: 0.68rem;
  line-height: 1.45;
}

.auth-switch {
  color: #74817c;
  font-size: 0.75rem;
  text-align: center;
}

.auth-switch a {
  color: #067e5b;
  font-weight: 850;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-card-divider {
  height: 1px;
  position: relative;
  background: #e2ebe7;
}

.auth-card-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: #94a09b;
  padding: 0 9px;
  font-size: 0.67rem;
  transform: translate(-50%, -50%);
}

.auth-guest-link {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #526760;
  font-size: 0.76rem;
  font-weight: 750;
  text-decoration: none;
}

.auth-guest-link span {
  color: #0b926a;
  transition: transform 180ms ease;
}

.auth-guest-link:hover {
  color: #086f51;
}

.auth-guest-link:hover span {
  transform: translateX(3px);
}

.auth-body .auth-notice {
  margin: 0;
  border-color: rgba(180, 108, 20, 0.2);
  border-radius: 13px;
  font-size: 0.74rem;
  line-height: 1.45;
}

.auth-terms {
  max-width: 360px;
  margin: 13px auto 0;
  color: #89958f;
  font-size: 0.63rem;
  line-height: 1.45;
  text-align: center;
}

@keyframes auth-content-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes auth-card-in {
  from { opacity: 0; transform: translateY(20px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes auth-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes auth-loading {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@media (max-width: 1040px) {
  .auth-layout {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr);
    gap: 48px;
  }

  .auth-showcase h1 {
    font-size: clamp(2.8rem, 4.7vw, 3.7rem);
  }

  .auth-workspace-preview {
    width: 470px;
    margin-left: 0;
  }
}

@media (max-width: 860px) {
  .auth-topbar,
  .auth-layout {
    width: min(680px, calc(100% - 40px));
  }

  .auth-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 30px 0 56px;
  }

  .auth-showcase {
    justify-items: center;
    gap: 22px;
    text-align: center;
  }

  .auth-showcase-copy {
    justify-items: center;
  }

  .auth-showcase h1 {
    max-width: 620px;
    font-size: clamp(2.55rem, 8vw, 3.6rem);
  }

  .auth-showcase-copy > p {
    max-width: 540px;
  }

  .auth-workspace-preview {
    display: none;
  }

  .auth-benefits {
    justify-content: center;
  }

  .auth-access {
    max-width: 480px;
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .auth-topbar,
  .auth-layout {
    width: min(480px, calc(100% - 28px));
  }

  .auth-topbar {
    min-height: 70px;
  }

  .auth-brand-copy small {
    display: none;
  }

  .auth-explore-link {
    border: 0;
    background: transparent;
    padding: 8px 0;
    box-shadow: none;
    font-size: 0;
  }

  .auth-explore-link::before {
    content: "Explore first";
    font-size: 0.73rem;
  }

  .auth-explore-link span {
    font-size: 0.9rem;
  }

  .auth-layout {
    gap: 24px;
    padding: 22px 0 36px;
  }

  .auth-showcase {
    gap: 16px;
  }

  .auth-showcase-copy {
    gap: 14px;
  }

  .auth-showcase-kicker {
    padding: 6px 10px;
    font-size: 0.65rem;
  }

  .auth-showcase h1 {
    font-size: clamp(2.18rem, 11vw, 2.8rem);
    line-height: 1.02;
  }

  .auth-showcase-copy > p {
    font-size: 0.85rem;
    line-height: 1.55;
  }

  .auth-benefits {
    gap: 8px 12px;
  }

  .auth-benefits span:last-child {
    display: none;
  }

  .auth-body .auth-social-card {
    gap: 17px;
    border-radius: 23px;
    padding: 10px 19px 23px;
  }

  .auth-card-heading h2 {
    font-size: 1.55rem;
  }

  .auth-mode-tabs a {
    min-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-showcase,
  .auth-access,
  .auth-preview-card,
  .auth-provider-loading span::after {
    animation: none;
  }
}
