/**
 * 9to5Resumes — shared UI (bright, professional).
 * Page-specific rules can extend via base.html {% block extra_css %}.
 */
:root {
  --bg: #eef2f7;
  --surface: #ffffff;
  --surface2: #f8fafc;
  --border: #cbd5e1;
  --text: #1e293b;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.14);
  --error: #dc2626;
  --success: #059669;
  --nav-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.04);
}

* { box-sizing: border-box; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  letter-spacing: 0.01em;
}

/* Public docs/support pages: keep standard layout but use app backdrop. */
body.app-static-dark {
  background: #06060a;
  background-image:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(79, 125, 243, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(99, 102, 241, 0.08), transparent 50%);
}

body.app-static-dark .nav {
  background: rgba(14, 14, 20, 0.88);
  border-bottom: 1px solid #2a2a38;
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.app-static-dark .nav a {
  color: #9ca3af;
}

body.app-static-dark .nav a:hover,
body.app-static-dark .nav a.active {
  color: #93c5fd;
}

body.app-static-dark .nav .brand {
  color: #f4f4f8;
}

body.app-static-dark .site-footer {
  background: rgba(14, 14, 20, 0.9);
  border-top: 1px solid #2a2a38;
  color: #9ca3af;
}

body.app-static-dark .site-footer a {
  color: #9ca3af;
}

body.app-static-dark .site-footer a:hover {
  color: #93c5fd;
}

.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--nav-shadow);
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  position: sticky;
  top: 0;
  z-index: 5000;
  overflow: visible;
  isolation: isolate;
}

.wf-mobile-nav-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #35354a;
  background: #12121a;
  color: #d1d5db;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.wf-mobile-nav-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--accent);
}

.nav .brand {
  font-weight: 600;
  color: var(--text);
  margin-right: 0.25rem;
  letter-spacing: -0.02em;
}

/* Account menu (avatar + dropdown) */
.nav-user-menu {
  position: relative;
  margin-left: auto;
  z-index: 1;
}

.nav-user-menu[open] {
  z-index: 7000;
}

.nav-login-cta {
  margin-left: auto;
}

.nav-user-dropdown a.active {
  color: var(--accent);
}

/* Tailor: theme label + select on one line */
.theme-inline-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.theme-inline-row .theme-inline-label {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.theme-inline-row select {
  min-width: 9rem;
}

/* Tailor: job vs profile gaps (one-time per job) */
.tailor-gaps-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--nav-shadow);
}
.tailor-gaps-panel h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.15rem;
}
.tailor-gaps-panel h3 {
  margin: 1rem 0 0.35rem 0;
  font-size: 0.95rem;
  color: var(--text);
}
.tailor-gaps-panel ul {
  margin: 0.25rem 0 0 1rem;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text);
}
.tailor-gaps-panel li {
  margin-bottom: 0.35rem;
}
.tailor-gaps-panel #gaps-skills-list,
.tailor-gaps-panel #gaps-exp-list {
  margin: 0.35rem 0 0 0;
  list-style: none;
}
.tailor-gaps-panel .tailor-gap-item {
  margin-bottom: 0.4rem;
}
.tailor-gaps-panel .tailor-gap-toggle {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
}
.tailor-gaps-panel .tailor-gap-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tailor-gaps-panel .tailor-gap-check {
  width: 1rem;
  height: 1rem;
  border: 1px solid #6b7280;
  border-radius: 50%;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 0.72rem;
  margin-top: 0.1rem;
  flex: 0 0 1rem;
}
.tailor-gaps-panel .tailor-gap-checkbox:focus-visible + .tailor-gap-check {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
.tailor-gaps-panel .tailor-gap-checkbox:checked + .tailor-gap-check {
  border-color: #22c55e;
  color: #22c55e;
}
.tailor-gaps-panel .tailor-gap-text {
  display: inline-block;
}
.tailor-gaps-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
}
.tailor-gaps-panel .tailor-gaps-actions a.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Tailor coach panel: suggestion rows read as chat-style cards */
.tailor-coach-panel #suggestions-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.45rem;
}
.tailor-coach-panel #suggestions-list li:last-child {
  margin-bottom: 0;
}

.nav-user-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.25rem 0;
}

.nav-user-summary::-webkit-details-marker {
  display: none;
}

.nav-user-summary::marker {
  content: "";
}

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--surface2);
}

.nav-avatar--initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
}

.nav-user-chevron {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
}

.nav-user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--nav-shadow);
  padding: 0.35rem 0;
  z-index: 7100;
}

.nav-user-dropdown-name {
  padding: 0.35rem 1rem 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.2rem;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user-dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-user-dropdown a:hover {
  background: var(--surface2);
  color: var(--accent);
}

.impersonation-banner {
  width: min(1100px, calc(100% - 2rem));
  margin: 0.9rem auto 0;
  padding: 0.65rem 0.8rem;
  border: 1px solid #7c2d12;
  border-radius: 10px;
  background: rgba(124, 45, 18, 0.14);
  color: #fdba74;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  font-size: 0.86rem;
}

.impersonation-banner a {
  color: #fdba74;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.impersonation-banner a:hover {
  color: #ffedd5;
}

.main {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.5rem;
  flex: 1;
}

.site-footer {
  margin-top: auto;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer .footer-links {
  margin-top: 0.35rem;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-footer .footer-copy {
  margin-bottom: 0.25rem;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
  color: var(--text);
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

section h2 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.75rem 0;
}

label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-weight: 500;
}

input[type="text"],
input[type="url"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

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

.row {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.row .field {
  flex: 1;
  min-width: 180px;
}

button,
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}

button:hover,
.btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

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

/* Upgrade page: pack buttons — light card + dark text (avoid .muted on blue) */
button.stripe-pack-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--border);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

button.stripe-pack-btn:hover:not(:disabled) {
  background: var(--surface2);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

button.stripe-pack-btn strong {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

button.stripe-pack-btn .stripe-pack-sub {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.45;
}

button.stripe-pack-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface2);
  border-color: var(--accent);
  color: var(--accent);
}

.status {
  font-size: 0.85rem;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.status.error {
  color: var(--error);
}

.status.success {
  color: var(--success);
}

.preview-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  margin-top: 0.75rem;
}

.preview-box iframe {
  width: 100%;
  height: 70vh;
  border: none;
}

.preview-actions {
  padding: 0.6rem 0.75rem;
  background: var(--surface2);
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.preview-actions a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.preview-actions a:hover {
  text-decoration: underline;
}

.badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
}

.collapsible {
  margin-top: 0.5rem;
}

.collapsible summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
}

.collapsible pre {
  background: var(--surface2);
  padding: 1rem;
  border-radius: 8px;
  overflow: auto;
  font-size: 0.8rem;
  white-space: pre-wrap;
  margin-top: 0.5rem;
  border: 1px solid var(--border);
}

/* Tailor usage banner (component) */
.usage-banner {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.usage-banner--limit {
  border-color: #fbbf24;
  background: linear-gradient(135deg, #fffbeb 0%, #fff 100%);
}

.usage-banner__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--text);
}

.usage-banner__count {
  font-weight: 600;
  color: var(--text);
}

.usage-banner__hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.btn-purchase {
  display: inline-block;
  background: var(--text);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn-purchase:hover {
  opacity: 0.92;
  color: #fff;
}

@media (max-width: 640px) {
  .main {
    padding: 1rem;
  }

  .nav {
    padding: 0.5rem 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

/* --- Tailor workflow (premium dark UI, aligns with landing) --- */
body.app-workflow {
  font-family: 'Inter', 'DM Sans', system-ui, sans-serif;
  background: #06060a;
  background-image:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(79, 125, 243, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(99, 102, 241, 0.08), transparent 50%);
  color: #e8e8ef;
}

body.app-workflow .nav {
  position: sticky;
  top: 0;
  z-index: 5000;
  background: rgba(14, 14, 20, 0.88);
  border-bottom: 1px solid #2a2a38;
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.app-workflow .nav a {
  color: #9ca3af;
}

body.app-workflow .nav a:hover,
body.app-workflow .nav a.active {
  color: #93c5fd;
}

body.app-workflow .nav .brand {
  color: #f4f4f8;
}

body.app-workflow .nav-avatar,
body.app-workflow .nav-user-dropdown {
  border-color: #2a2a38;
  background: #16161f;
}

body.app-workflow .nav-user-dropdown a {
  color: #e5e7eb;
}

body.app-workflow .nav-user-dropdown a:hover {
  background: #1f1f2a;
  color: #93c5fd;
}

body.app-workflow .nav-user-dropdown-name {
  color: #9ca3af;
  border-bottom-color: #2a2a38;
}

body.app-workflow .main {
  max-width: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

body.app-workflow .site-footer {
  background: rgba(14, 14, 20, 0.9);
  border-top: 1px solid #2a2a38;
  color: #9ca3af;
}

body.app-workflow .site-footer a {
  color: #9ca3af;
}

body.app-workflow .site-footer a:hover {
  color: #93c5fd;
}

.wf-shell {
  display: flex;
  gap: 0;
  min-height: calc(100vh - 3.5rem);
  align-items: stretch;
}

.wf-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 3400;
}

.wf-mobile-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.wf-sidebar {
  width: 15.5rem;
  flex-shrink: 0;
  padding: 1.25rem 1rem 1.5rem;
  border-right: 1px solid #2a2a38;
  background: rgba(10, 10, 14, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: var(--wf-nav-offset, 3.5rem);
  align-self: flex-start;
  max-height: calc(100vh - var(--wf-nav-offset, 3.5rem));
  overflow-y: auto;
  z-index: 5;
}

.wf-sidebar-menu {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.wf-sidebar-menu-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  text-decoration: none;
  padding: 0.62rem 0.68rem;
  border-radius: 10px;
  border: 1px solid transparent;
  color: #9ca3af;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.wf-sidebar-menu-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.wf-sidebar-menu-ai {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #a5b4fc;
  background: rgba(79, 125, 243, 0.2);
  border: 1px solid rgba(129, 140, 248, 0.45);
}

.wf-sidebar-menu-link:hover {
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.04);
}

.wf-sidebar-menu-link.is-active {
  color: #f4f4f8;
  background: rgba(79, 125, 243, 0.12);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 0 0 1px rgba(79, 125, 243, 0.2);
}

.wf-sidebar-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  color: #a5b4fc;
}

.wf-sidebar-footer {
  margin-top: auto;
  width: 100%;
}

.wf-credits-card,
.wf-upgrade-card {
  background: linear-gradient(165deg, #16161f 0%, #12121a 100%);
  border: 1px solid #2e2e3d;
  border-radius: 14px;
  padding: 1rem 1rem 1.1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.wf-credits-card h3,
.wf-upgrade-card h3 {
  margin: 0 0 0.35rem 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.wf-credits-card .wf-credits-line {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f4f4f8;
  margin: 0 0 0.35rem 0;
  letter-spacing: -0.02em;
}

.wf-credits-card .wf-credits-sub {
  font-size: 0.78rem;
  color: #8b8b9a;
  line-height: 1.45;
  margin: 0 0 0.85rem 0;
}

.wf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.wf-btn--primary {
  background: linear-gradient(135deg, #4f7df3 0%, #6366f1 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(79, 125, 243, 0.35);
}

.wf-btn--primary:hover {
  filter: brightness(1.06);
  color: #fff;
}

.wf-btn--ghost {
  background: transparent;
  color: #c4c4d4;
  border: 1px solid #3f3f50;
}

.wf-btn--ghost:hover {
  border-color: #6366f1;
  color: #e0e7ff;
}

.wf-nav-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
  margin: 0 0 0.4rem 0.35rem;
}

.wf-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.wf-steps button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #9ca3af;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.wf-steps button:hover {
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.04);
}

.wf-steps button.is-active {
  color: #f4f4f8;
  background: rgba(79, 125, 243, 0.12);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 0 0 1px rgba(79, 125, 243, 0.2);
}

.wf-steps button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.wf-upgrade-card p {
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 0 0 0.75rem 0;
  line-height: 1.45;
}

.wf-upgrade-card h3 {
  color: #d1d5db;
}

.wf-main {
  flex: 1;
  min-width: 0;
  padding: 1.5rem clamp(1rem, 3vw, 2.25rem) 2.5rem;
}

/* Customize Resume — top flow stepper (Profile → Job → Customize → Download) */
.wf-flow-stepper {
  max-width: 56rem;
  margin: 0 auto 1.35rem;
  padding: 0 0.15rem;
}

.wf-flow-stepper__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0;
}

.wf-flow-stepper__segment {
  flex: 0 0 auto;
}

.wf-flow-stepper__rule {
  flex: 1 1 1.25rem;
  height: 1px;
  min-width: 0.65rem;
  margin: 0 0.1rem;
  align-self: center;
  background: #3f3f50;
  list-style: none;
}

.wf-flow-stepper__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.2rem 0.15rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  border-radius: 10px;
  transition: color 0.15s ease, background 0.15s ease;
}

.wf-flow-stepper__btn:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.65);
  outline-offset: 3px;
}

.wf-flow-stepper__btn:hover:not(.is-active) .wf-flow-stepper__label {
  color: #d1d5db;
}

.wf-flow-stepper__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
  background: #2a2a35;
  color: #9ca3af;
  border: 1px solid #3f3f50;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.wf-flow-stepper__btn.is-active .wf-flow-stepper__num {
  background: #fff;
  color: #111827;
  border-color: #fff;
  font-weight: 700;
}

.wf-flow-stepper__label {
  font-size: 0.88rem;
  font-weight: 500;
  color: #9ca3af;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.wf-flow-stepper__btn.is-active .wf-flow-stepper__label {
  color: #f9fafb;
  font-weight: 600;
}

@media (max-width: 520px) {
  .wf-flow-stepper__label {
    font-size: 0.8rem;
  }

  .wf-flow-stepper__num {
    width: 1.6rem;
    height: 1.6rem;
    font-size: 0.72rem;
  }

  .wf-flow-stepper__rule {
    min-width: 0.4rem;
  }
}

.wf-panel {
  display: none;
  max-width: 56rem;
  margin: 0 auto;
}

.wf-panel.is-visible {
  display: block;
}

.wf-panel--wide {
  max-width: min(1400px, 100%);
}

.wf-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0 0 0.5rem 0;
}

.wf-title {
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f9fafb;
  margin: 0 0 0.65rem 0;
  line-height: 1.15;
}

.wf-lead {
  font-size: 1rem;
  color: #9ca3af;
  line-height: 1.55;
  margin: 0 0 1.75rem 0;
  max-width: 38rem;
}

body.app-workflow .wf-main--upgrade {
  position: relative;
  display: flex;
  justify-content: center;
  max-width: none;
  margin: 0 auto;
  padding: 2rem 1.25rem 2.5rem;
  overflow: hidden;
}

body.app-workflow .wf-upgrade-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

body.app-workflow .wf-upgrade-ambient-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(64px);
  opacity: 0.7;
}

body.app-workflow .wf-upgrade-ambient-orb--top {
  width: 44rem;
  height: 44rem;
  top: -23rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(79, 125, 243, 0.22);
}

body.app-workflow .wf-upgrade-ambient-orb--side {
  width: 34rem;
  height: 34rem;
  top: 4.5rem;
  right: -18rem;
  background: rgba(99, 102, 241, 0.14);
}

body.app-workflow .wf-upgrade-ambient-grid {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
}

body.app-workflow .wf-upgrade-page {
  position: relative;
  z-index: 1;
  width: min(100%, 76rem);
  margin: 0 auto;
}

body.app-workflow .wf-upgrade-hero {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  text-align: center;
  margin: 0 auto 1.5rem;
  max-width: 48rem;
}

body.app-workflow .wf-upgrade-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
}

body.app-workflow .wf-upgrade-chip svg {
  width: 0.95rem;
  height: 0.95rem;
  color: #93c5fd;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.app-workflow .wf-upgrade-title {
  margin-top: 0.9rem;
  margin-bottom: 0.6rem;
}

body.app-workflow .wf-upgrade-lead {
  margin: 0 auto;
  max-width: 42rem;
  font-size: 1.02rem;
}

body.app-workflow .wf-upgrade-status {
  margin: 0.9rem auto 0;
  max-width: 42rem;
  text-align: center;
  font-size: 0.9rem;
}

body.app-workflow .wf-upgrade-toggle {
  margin: 1.8rem auto 0;
  width: min(100%, 23rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: 16px;
  border: 1px solid #2d2d3f;
  background: rgba(0, 0, 0, 0.34);
  padding: 0.3rem;
  backdrop-filter: blur(8px);
}

body.app-workflow .wf-upgrade-toggle-btn {
  border: 0;
  margin: 0;
  border-radius: 12px;
  background: transparent;
  color: #9ca3af;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.16s ease, background 0.16s ease;
}

body.app-workflow .wf-upgrade-toggle-btn:hover {
  color: #f3f4f6;
}

body.app-workflow .wf-upgrade-toggle-btn.is-active {
  color: #f8fafc;
  background: linear-gradient(135deg, #4f7df3 0%, #6366f1 100%);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.45), 0 12px 28px rgba(79, 125, 243, 0.34);
}

body.app-workflow .wf-upgrade-toggle-soon {
  opacity: 0.72;
  font-size: 0.72rem;
}

body.app-workflow .wf-upgrade-mode-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin-top: 1.4rem;
}

body.app-workflow .wf-upgrade-pack-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

body.app-workflow .wf-pack-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 27rem;
  text-align: left;
  background: linear-gradient(165deg, rgba(14, 19, 35, 0.96) 0%, rgba(9, 13, 26, 0.96) 100%);
  border: 1px solid rgba(99, 102, 241, 0.36);
  border-radius: 1.4rem;
  padding: 1.15rem;
  color: #f3f4f6;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.36);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  font-family: inherit;
}

body.app-workflow .wf-pack-card:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(129, 140, 248, 0.6);
  background: linear-gradient(165deg, rgba(17, 24, 45, 0.98) 0%, rgba(10, 16, 33, 0.98) 100%);
}

body.app-workflow .wf-pack-card.is-selected {
  border-color: rgba(129, 140, 248, 0.85);
  background: linear-gradient(165deg, rgba(20, 29, 52, 0.98) 0%, rgba(12, 18, 38, 0.98) 100%);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.5), 0 0 48px rgba(79, 125, 243, 0.28);
}

body.app-workflow .wf-pack-card.is-selected::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.24), transparent 58%);
}

body.app-workflow .wf-pack-top,
body.app-workflow .wf-pack-feature-list,
body.app-workflow .wf-pack-bottom {
  position: relative;
  z-index: 1;
}

body.app-workflow .wf-pack-top {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

body.app-workflow .wf-pack-badge {
  align-self: flex-start;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.46);
  background: rgba(99, 102, 241, 0.16);
  color: #dbeafe;
  padding: 0.24rem 0.5rem;
}

body.app-workflow .wf-pack-badge-spacer {
  display: block;
  height: 1.25rem;
}

body.app-workflow .wf-pack-kicker {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ca3af;
}

body.app-workflow .wf-pack-title {
  font-size: 1.8rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

body.app-workflow .wf-pack-description {
  position: relative;
  z-index: 1;
  margin-top: 0.8rem;
  display: block;
  color: #94a3b8;
  font-size: 0.84rem;
  line-height: 1.5;
}

body.app-workflow .wf-pack-divider {
  display: block;
  margin: 1rem 0 0.95rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}

body.app-workflow .wf-pack-feature-list {
  display: grid;
  gap: 0.48rem;
}

body.app-workflow .wf-pack-feature {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  color: #cbd5e1;
  font-size: 0.8rem;
  line-height: 1.4;
}

body.app-workflow .wf-pack-feature::before {
  content: "✓";
  color: #a5b4fc;
  font-weight: 700;
  line-height: 1.1;
}

body.app-workflow .wf-pack-bottom {
  margin-top: auto;
  padding-top: 1.1rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

body.app-workflow .wf-pack-price-wrap {
  display: flex;
  flex-direction: column;
}

body.app-workflow .wf-pack-price {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f8fafc;
}

body.app-workflow .wf-pack-price-sub {
  margin-top: 0.2rem;
  color: #94a3b8;
  font-size: 0.78rem;
}

body.app-workflow .wf-pack-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 999px;
  border: 1px solid #3f3f50;
  background: rgba(0, 0, 0, 0.25);
  color: #6b7280;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

body.app-workflow .wf-pack-check svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.app-workflow .wf-pack-card.is-selected .wf-pack-check {
  border-color: rgba(129, 140, 248, 0.62);
  background: rgba(99, 102, 241, 0.22);
  color: #e0e7ff;
}

body.app-workflow .wf-pack-card .stripe-pack-sub {
  display: none;
}

body.app-workflow .wf-upgrade-coming-soon {
  border-radius: 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 38px rgba(79, 125, 243, 0.14);
  text-align: center;
  padding: 2rem 1.25rem;
}

body.app-workflow .wf-upgrade-coming-soon-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.9rem;
  margin: 0 auto;
  border: 1px solid rgba(129, 140, 248, 0.44);
  background: rgba(99, 102, 241, 0.16);
  color: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.app-workflow .wf-upgrade-coming-soon-icon svg {
  width: 1.65rem;
  height: 1.65rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.app-workflow .wf-upgrade-coming-soon h2 {
  margin: 0.95rem 0 0.5rem;
  color: #f8fafc;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

body.app-workflow .wf-upgrade-coming-soon p {
  margin: 0 auto;
  max-width: 38rem;
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.55;
}

body.app-workflow .wf-upgrade-security {
  margin-top: 1.1rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.6fr);
  gap: 0.85rem;
  align-items: center;
}

body.app-workflow .wf-upgrade-security-copy {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

body.app-workflow .wf-upgrade-security-icon {
  width: 2.65rem;
  height: 2.65rem;
  flex-shrink: 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(129, 140, 248, 0.4);
  background: rgba(99, 102, 241, 0.14);
  color: #dbeafe;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.app-workflow .wf-upgrade-security-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.app-workflow .wf-upgrade-security h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

body.app-workflow .wf-upgrade-security p {
  margin: 0.35rem 0 0;
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.5;
}

body.app-workflow .wf-upgrade-payments p {
  margin: 0;
  color: #6b7280;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.app-workflow .wf-upgrade-payments-list {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

body.app-workflow .wf-upgrade-payments-list span {
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.2);
  color: #cbd5e1;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
}

body.app-workflow .wf-upgrade-upi {
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 0.65rem 0.5rem;
}

body.app-workflow .wf-upgrade-upi span {
  display: block;
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
}

body.app-workflow .wf-upgrade-upi small {
  display: block;
  margin-top: 0.2rem;
  color: #6b7280;
  font-size: 0.68rem;
}

body.app-workflow .wf-upgrade-checkout-wrap {
  margin: 0.95rem auto 0;
  width: min(100%, 34rem);
  text-align: center;
}

body.app-workflow .wf-upgrade-checkout-btn {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
  border: 0;
  padding: 0.95rem 1rem;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  color: #f8fafc;
  background: linear-gradient(135deg, #4f7df3 0%, #6366f1 100%);
  box-shadow: 0 0 32px rgba(79, 125, 243, 0.32);
  cursor: pointer;
  transition: filter 0.16s ease, transform 0.16s ease;
}

body.app-workflow .wf-upgrade-checkout-btn::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -35%;
  width: 32%;
  background: rgba(255, 255, 255, 0.4);
  filter: blur(12px);
  transition: left 0.55s ease;
}

body.app-workflow .wf-upgrade-checkout-btn:hover:not(:disabled)::before {
  left: 108%;
}

body.app-workflow .wf-upgrade-checkout-btn:hover:not(:disabled) {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

body.app-workflow .wf-upgrade-checkout-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

body.app-workflow .wf-upgrade-checkout-hint {
  margin: 0.35rem 0 0;
  color: #6b7280;
  font-size: 0.72rem;
}

body.app-workflow .wf-upgrade-panel {
  margin-top: 1.1rem;
  background: linear-gradient(165deg, #16161f 0%, #12121a 100%);
  border: 1px solid #2e2e3d;
  border-radius: 14px;
  padding: 1.2rem 1.1rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
  text-align: left;
}

body.app-workflow .wf-upgrade-panel-title {
  margin: 0 0 0.75rem 0;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

body.app-workflow .wf-upgrade-env-list {
  margin: 0;
  padding-left: 1.15rem;
  color: #d1d5db;
  font-size: 0.9rem;
  line-height: 1.55;
}

body.app-workflow .wf-upgrade-env-list li + li {
  margin-top: 0.45rem;
}

body.app-workflow .wf-upgrade-page code {
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 6px;
  padding: 0.08rem 0.35rem;
  font-size: 0.78rem;
}

body.app-workflow .wf-upgrade-back-link-wrap {
  margin-top: 1rem;
  margin-bottom: 0;
}

body.app-workflow .wf-upgrade-back-link-wrap .wf-btn {
  width: auto;
}

@media (max-width: 1060px) {
  body.app-workflow .wf-upgrade-pack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-workflow .wf-upgrade-security {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 700px) {
  body.app-workflow .wf-main--upgrade {
    padding: 1.35rem 0.85rem 2rem;
  }

  body.app-workflow .wf-upgrade-pack-grid {
    grid-template-columns: 1fr;
  }

  body.app-workflow .wf-pack-card {
    min-height: auto;
  }

  body.app-workflow .wf-upgrade-checkout-wrap {
    width: 100%;
  }

  body.app-workflow .wf-upgrade-title {
    font-size: clamp(1.55rem, 8vw, 2.1rem);
  }
}

.wf-card {
  background: linear-gradient(165deg, #16161f 0%, #12121a 100%);
  border: 1px solid #2e2e3d;
  border-radius: 16px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  margin-bottom: 1.25rem;
}

.wf-card--ghost {
  background: rgba(22, 22, 31, 0.5);
}

.wf-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #d1d5db;
  margin-bottom: 0.4rem;
}

.wf-field .wf-hint {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0.35rem 0 0 0;
  line-height: 1.4;
}

body.app-workflow input[type="url"],
body.app-workflow input[type="text"],
body.app-workflow input[type="email"],
body.app-workflow input[type="tel"],
body.app-workflow input[type="number"],
body.app-workflow textarea,
body.app-workflow select {
  background: #0e0e14;
  border: 1px solid #35354a;
  color: #f3f4f6;
  border-radius: 12px;
}

body.app-workflow input:focus,
body.app-workflow textarea:focus,
body.app-workflow select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background: #12121a;
}

body.app-workflow input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

body.app-workflow input::placeholder,
body.app-workflow textarea::placeholder {
  color: #6b7280;
}

/* Profile / settings — override global light `section` + missing input types */
body.app-workflow .wf-main--settings {
  padding-top: 1.6rem;
}

body.app-workflow .wf-settings-panel {
  max-width: 62rem;
  margin: 0 auto;
}

body.app-workflow .wf-settings-panel .muted {
  color: #9ca3af;
}

body.app-workflow .wf-settings-panel section {
  background: linear-gradient(165deg, #16161f 0%, #12121a 100%);
  border: 1px solid #2e2e3d;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

body.app-workflow .wf-settings-panel section h2 {
  color: #9ca3af;
}

body.app-workflow .wf-settings-panel h3,
body.app-workflow .wf-settings-panel .wf-settings-subh3 {
  color: #f3f4f6;
  font-size: 0.95rem;
  margin: 1.25rem 0 0.5rem 0;
  font-weight: 600;
}

body.app-workflow .wf-settings-panel label {
  color: #d1d5db;
}

body.app-workflow .wf-settings-panel .wf-settings-picker-copy {
  margin: 0 0 0.85rem 0;
  font-size: 0.9rem;
  color: #9ca3af;
}

body.app-workflow .wf-settings-panel .profile-layout {
  margin-top: 1rem;
}

body.app-workflow .wf-settings-panel--generated section {
  padding: 1rem;
}

body.app-workflow .wf-settings-panel .generated-resumes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.9rem;
}

body.app-workflow .wf-settings-panel .generated-resume-card {
  border: 1px solid #35354a;
  border-radius: 16px;
  background: #12121a;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

body.app-workflow .wf-settings-panel .generated-resume-card .w-mini {
  height: 148px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.1rem;
}

/* Netflix-style two-slide carousel: resume on the left, cover letter on the
   right. The track is twice the card width and slides via CSS transform when
   the user clicks a dot or swipes horizontally. */
body.app-workflow .wf-settings-panel .generated-resume-carousel {
  position: relative;
  overflow: hidden;
}

body.app-workflow .wf-settings-panel .generated-resume-carousel-track {
  display: flex;
  width: 200%;
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

body.app-workflow .wf-settings-panel .generated-resume-slide {
  flex: 0 0 50%;
  min-width: 0;
}

body.app-workflow .wf-settings-panel .generated-resume-slide .w-mini {
  height: 148px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.1rem;
}

body.app-workflow .wf-settings-panel .generated-resume-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.15rem 0 0.35rem 0;
}

body.app-workflow .wf-settings-panel .generated-resume-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: #4b5563;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
}

body.app-workflow .wf-settings-panel .generated-resume-dot:hover {
  background: #6b7280;
}

body.app-workflow .wf-settings-panel .generated-resume-dot.is-active {
  background: #f3f4f6;
  transform: scale(1.18);
}

body.app-workflow .wf-settings-panel .generated-resume-dot:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

body.app-workflow .wf-settings-panel .w-mini--cover-letter .w-mini__head {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(168, 85, 247, 0.08));
}

body.app-workflow .wf-settings-panel .w-mini--cover-letter .w-mini__body .w-mini__p--em {
  font-style: italic;
  color: #4b5563;
}

body.app-workflow .wf-settings-panel .w-mini--cover-letter .w-mini__body .w-mini__p--muted {
  color: #9ca3af;
  font-size: 0.72rem;
}

body.app-workflow .wf-settings-panel .generated-resume-actions-group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

body.app-workflow .wf-settings-panel .generated-resume-actions-group[hidden] {
  display: none;
}

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

body.app-workflow .wf-settings-panel.cover-letter-editor-panel .wf-back-link {
  margin-left: 0.65rem;
  color: #93c5fd;
  text-decoration: none;
}

body.app-workflow .wf-settings-panel.cover-letter-editor-panel .wf-back-link:hover {
  text-decoration: underline;
}

body.app-workflow .cover-letter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin: 0.75rem 0 1rem 0;
}

body.app-workflow .cover-letter-toolbar #cl-status.success { color: #34d399; }
body.app-workflow .cover-letter-toolbar #cl-status.error { color: #f87171; }

body.app-workflow .cover-letter-template-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.5rem;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
}
body.app-workflow .cover-letter-template-picker__label {
  font-size: 0.78rem;
  color: #cbd5e1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
body.app-workflow .cover-letter-template-picker__select {
  background: transparent;
  color: #e2e8f0;
  border: none;
  font: inherit;
  padding: 0.15rem 0.25rem;
  cursor: pointer;
}
body.app-workflow .cover-letter-template-picker__select option {
  color: #0f172a;
}

body.app-workflow .cover-letter-doc {
  background: #ffffff;
  color: #1f2937;
  border-radius: 14px;
  padding: 2.2rem 2.4rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  max-width: 760px;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.6;
}

body.app-workflow .cover-letter-doc-head {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 0.85rem;
  margin-bottom: 1.2rem;
}

body.app-workflow .cover-letter-doc-name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
}

body.app-workflow .cover-letter-doc-meta {
  margin: 0.4rem 0 0 0;
  color: #4b5563;
  font-size: 0.9rem;
}

body.app-workflow .cover-letter-doc-meta span + span::before {
  content: " · ";
  color: #9ca3af;
}

body.app-workflow .cover-letter-doc-target {
  color: #4b5563;
  font-size: 0.95rem;
  margin: 0 0 1.1rem 0;
}

body.app-workflow .cover-letter-line,
body.app-workflow .cover-letter-body {
  margin: 0 0 0.85rem 0;
  outline: none;
  border-radius: 4px;
  padding: 0.15rem 0.25rem;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

body.app-workflow .cover-letter-body:focus,
body.app-workflow .cover-letter-line:focus {
  background: #eff6ff;
  box-shadow: inset 0 0 0 1px #93c5fd;
}

body.app-workflow .cover-letter-body:hover,
body.app-workflow .cover-letter-line:hover {
  background: #f9fafb;
}

body.app-workflow .cover-letter-body .cover-letter-paragraph {
  margin: 0 0 0.85rem 0;
}

body.app-workflow .cover-letter-body .cover-letter-paragraph:last-child {
  margin-bottom: 0;
}

body.app-workflow .cover-letter-salutation {
  font-weight: 500;
}

body.app-workflow .cover-letter-signature {
  font-weight: 600;
  color: #111827;
}

body.app-workflow .wf-settings-panel .generated-resume-title {
  margin: 0;
  font-size: 1rem;
  color: #f3f4f6;
}

body.app-workflow .wf-settings-panel .generated-resume-meta {
  margin: 0;
  color: #9ca3af;
  font-size: 0.78rem;
  line-height: 1.45;
}

body.app-workflow .wf-settings-panel .generated-resume-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

body.app-workflow .wf-settings-panel .generated-resume-actions .wf-btn,
body.app-workflow .wf-settings-panel .generated-resume-actions .btn-ghost {
  width: 100%;
  text-align: center;
}

body.app-workflow .wf-settings-panel .profile-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #2e2e3d;
  margin-bottom: 1rem;
}

body.app-workflow .wf-settings-panel .profile-tabs button {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: #9ca3af;
  cursor: pointer;
  border-radius: 0;
}

body.app-workflow .wf-settings-panel .profile-tabs button:hover {
  color: #f3f4f6;
  background: transparent;
}

body.app-workflow .wf-settings-panel .profile-tabs button.active {
  color: #93c5fd;
  border-bottom-color: #6366f1;
  font-weight: 500;
}

body.app-workflow .wf-settings-panel .profile-tab-panel {
  display: none;
}

body.app-workflow .wf-settings-panel .profile-tab-panel.active {
  display: block;
}

body.app-workflow .wf-settings-panel .profile-content {
  max-width: 100%;
}

body.app-workflow .wf-settings-panel .profile-content section {
  scroll-margin-top: 1rem;
}

body.app-workflow .wf-settings-panel .strength-card {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

body.app-workflow .wf-settings-panel .strength-card .label {
  font-weight: 500;
  color: #f3f4f6;
}

body.app-workflow .wf-settings-panel .strength-card .type {
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: capitalize;
  margin-bottom: 0.25rem;
}

body.app-workflow .wf-settings-panel .strength-card .detail {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-top: 0.35rem;
}

body.app-workflow .wf-settings-panel .wf-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

body.app-workflow .wf-settings-panel .experience-item,
body.app-workflow .wf-settings-panel .education-item {
  background: rgba(14, 14, 20, 0.92);
  border: 1px solid #35354a;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.app-workflow .wf-settings-panel input[type="url"],
body.app-workflow .wf-settings-panel input[type="text"],
body.app-workflow .wf-settings-panel input[type="email"],
body.app-workflow .wf-settings-panel input[type="tel"],
body.app-workflow .wf-settings-panel input[type="number"],
body.app-workflow .wf-settings-panel textarea,
body.app-workflow .wf-settings-panel select {
  background: #0e0e14;
  border: 1px solid #3f3f50;
  color: #f3f4f6;
  border-radius: 10px;
}

body.app-workflow .wf-settings-panel input:focus,
body.app-workflow .wf-settings-panel textarea:focus,
body.app-workflow .wf-settings-panel select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
  background: #12121a;
  outline: none;
}

body.app-workflow .wf-settings-panel .status {
  color: #d1d5db;
}

body.app-workflow .wf-settings-panel .wf-nav-label--tight {
  margin-bottom: 0.5rem;
}

body.app-workflow .wf-settings-panel .wf-settings-hint {
  font-size: 0.85rem;
  color: #9ca3af;
  margin: 0 0 0.75rem 0;
  line-height: 1.5;
}

body.app-workflow .wf-settings-panel .wf-settings-btn-spaced {
  margin-bottom: 1rem;
}

body.app-workflow .wf-settings-panel .wf-settings-btn-danger {
  color: #fca5a5;
}

body.app-workflow .wf-settings-panel .wf-settings-btn-danger:hover {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.45);
}

body.app-workflow .wf-settings-panel .admin-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-end;
  margin-bottom: 0.85rem;
}

body.app-workflow .wf-settings-panel .admin-search-form .field {
  flex: 1;
  min-width: 14rem;
}

body.app-workflow .wf-settings-panel .admin-advanced-search {
  flex: 1 1 100%;
  border: 1px solid #2f3346;
  border-radius: 10px;
  padding: 0.4rem 0.7rem 0.75rem;
  background: rgba(17, 24, 39, 0.45);
}

body.app-workflow .wf-settings-panel .admin-advanced-search summary {
  cursor: pointer;
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.2rem 0 0.35rem;
}

body.app-workflow .wf-settings-panel .admin-advanced-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 0.45rem 0.8rem;
  align-items: end;
}

body.app-workflow .wf-settings-panel .admin-search-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.3rem;
  color: #d1d5db;
  font-size: 0.83rem;
}

body.app-workflow .wf-settings-panel .admin-search-checkbox input {
  margin: 0;
}

body.app-workflow .wf-settings-panel .admin-search-hint {
  margin: 0;
  font-size: 0.83rem;
  color: #9ca3af;
}

body.app-workflow .wf-settings-panel .admin-user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 0.85rem;
}

body.app-workflow .wf-settings-panel .admin-user-card {
  border: 1px solid #2e2e3d;
  border-radius: 12px;
  background: rgba(14, 14, 20, 0.82);
  padding: 0.85rem 0.9rem;
}

body.app-workflow .wf-settings-panel .admin-user-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

body.app-workflow .wf-settings-panel .admin-user-card-header strong {
  color: #f3f4f6;
  font-size: 0.9rem;
}

body.app-workflow .wf-settings-panel .admin-user-meta {
  margin: 0.2rem 0;
  color: #cbd5e1;
  font-size: 0.8rem;
  line-height: 1.4;
}

body.app-workflow .wf-settings-panel .admin-credit-form {
  margin-top: 0.65rem;
}

body.app-workflow .wf-settings-panel .admin-impersonate-form {
  margin-top: 0.65rem;
}

body.app-workflow .wf-settings-panel .admin-impersonate-form .button[disabled] {
  opacity: 0.65;
}

body.app-workflow .wf-settings-panel .admin-credit-row {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

body.app-workflow .wf-settings-panel .admin-credit-row input[type="number"] {
  width: 9.5rem;
  min-width: 9.5rem;
}

body.app-workflow .wf-settings-panel .field--block {
  margin-bottom: 0.75rem;
}

body.app-workflow .wf-settings-panel .field--wide {
  flex: 2;
  min-width: 140px;
}

body.app-workflow .wf-settings-panel .field--tight-top {
  margin-top: 0.5rem;
}

body.app-workflow .wf-settings-panel .exp-highlights {
  width: 100%;
  min-height: 6.5rem;
  line-height: 1.4;
  resize: vertical;
}

body.app-workflow .wf-settings-panel .add-profile-status {
  margin-top: 0.5rem;
}

/* Wizard import — same shell + tokens as Manage profiles */
body.app-workflow .wf-settings-panel .wizard-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

body.app-workflow .wf-settings-panel .wizard-step {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 500;
  border: 1px solid transparent;
  background: transparent;
  color: #9ca3af;
}

body.app-workflow .wf-settings-panel .wizard-step.active {
  color: #f4f4f8;
  background: rgba(79, 125, 243, 0.12);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 0 0 1px rgba(79, 125, 243, 0.2);
}

body.app-workflow .wf-settings-panel .wizard-step.done {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

body.app-workflow .wf-settings-panel .wizard-panel {
  display: none;
}

body.app-workflow .wf-settings-panel .wizard-panel.active {
  display: block;
}

/* Wizard step 1 — landing (Create your job profile) */
body.app-workflow .wf-settings-panel .wizard-landing {
  max-width: 40rem;
  margin: 0 auto;
  padding-bottom: 1rem;
}

body.app-workflow .wf-settings-panel .wizard-landing-hero {
  text-align: center;
  margin-bottom: 1.5rem;
}

body.app-workflow .wf-settings-panel .wizard-landing-doc-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  color: #93c5fd;
}

body.app-workflow .wf-settings-panel .wizard-landing-title {
  margin: 0 0 0.65rem 0;
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  font-weight: 700;
  color: #f9fafb;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

body.app-workflow .wf-settings-panel .wizard-landing-sub {
  margin: 0 auto;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.55;
  color: #9ca3af;
}

/* Step 1 process strip — same teal “How this works” theme as review step */
body.app-workflow .wf-settings-panel .wizard-landing-process.wizard-review-how-card {
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  text-align: center;
}

body.app-workflow .wf-settings-panel .wizard-landing-process .wizard-how-kicker {
  margin-bottom: 1rem;
}

body.app-workflow .wf-settings-panel .wizard-landing-card {
  background: linear-gradient(165deg, #16161f 0%, #12121a 100%);
  border: 1px solid #2e2e3d;
  border-radius: 16px;
  padding: 1.65rem 1.35rem 1.5rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  text-align: left;
}

body.app-workflow .wf-settings-panel .wizard-landing-field {
  margin-bottom: 1.25rem;
}

body.app-workflow .wf-settings-panel .wizard-landing-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f3f4f6;
}

body.app-workflow .wf-settings-panel .wizard-landing-field input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  border-radius: 12px;
  background: #0e0e14;
  border: 1px solid #3f3f50;
  color: #f3f4f6;
}

body.app-workflow .wf-settings-panel .wizard-landing-field input[type="text"]:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
  background: #12121a;
  outline: none;
}

body.app-workflow .wf-settings-panel .wizard-landing-hint {
  margin: 0.4rem 0 0 0;
  font-size: 0.82rem;
  color: #9ca3af;
  line-height: 1.45;
}

body.app-workflow .wf-settings-panel .wizard-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.app-workflow .wf-settings-panel .wizard-dropzone {
  position: relative;
  border: 2px dashed #3f3f50;
  border-radius: 14px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  background: rgba(14, 14, 20, 0.55);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

body.app-workflow .wf-settings-panel .wizard-dropzone:hover,
body.app-workflow .wf-settings-panel .wizard-dropzone--hover {
  border-color: rgba(30, 105, 255, 0.55);
  background: rgba(30, 105, 255, 0.06);
}

body.app-workflow .wf-settings-panel .wizard-dropzone:focus {
  outline: 2px solid rgba(99, 102, 241, 0.5);
  outline-offset: 2px;
}

body.app-workflow .wf-settings-panel .wizard-upload-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.85rem;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(30, 105, 255, 0.35), rgba(99, 102, 241, 0.25));
  border: 1px solid rgba(147, 197, 253, 0.35);
  color: #e0e7ff;
}

body.app-workflow .wf-settings-panel .wizard-dropzone-title {
  margin: 0 0 0.35rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f9fafb;
}

body.app-workflow .wf-settings-panel .wizard-dropzone-desc {
  margin: 0 0 1rem 0;
  font-size: 0.88rem;
  color: #9ca3af;
  line-height: 1.45;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

body.app-workflow .wf-settings-panel .wizard-btn-choose-file {
  display: inline-block;
  padding: 0.55rem 1.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  background: #fff;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.app-workflow .wf-settings-panel .wizard-btn-choose-file:hover {
  filter: brightness(1.03);
}

body.app-workflow .wf-settings-panel .wizard-dropzone-foot {
  margin: 0.85rem 0 0 0;
  font-size: 0.78rem;
  color: #6b7280;
}

body.app-workflow .wf-settings-panel .wizard-file-name {
  min-height: 1.25rem;
  margin: 0.65rem 0 0 0;
  font-size: 0.85rem;
  color: #93c5fd;
  word-break: break-all;
}

body.app-workflow .wf-settings-panel .wizard-btn-import {
  width: 100%;
  margin-top: 1.35rem;
  padding: 0.95rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: #1e69ff;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 10px 32px rgba(30, 105, 255, 0.38);
  transition: filter 0.15s ease, transform 0.05s ease;
}

body.app-workflow .wf-settings-panel .wizard-btn-import:hover:not(:disabled) {
  filter: brightness(1.06);
}

body.app-workflow .wf-settings-panel .wizard-btn-import:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

body.app-workflow .wf-settings-panel .wizard-upload-status {
  margin-top: 0.85rem;
  text-align: center;
}

body.app-workflow .wf-settings-panel .wizard-upload-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: #9ca3af;
  line-height: 1.45;
}

body.app-workflow .wf-settings-panel .wizard-upload-loading[hidden] {
  display: none;
}

body.app-workflow .wf-settings-panel .wizard-import-spinner {
  box-sizing: border-box;
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid rgba(96, 165, 250, 0.35);
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: wizard-import-spin 0.75s linear infinite;
  flex-shrink: 0;
}

body.app-workflow .wf-settings-panel .wizard-upload-message {
  display: block;
  font-size: 0.88rem;
  line-height: 1.45;
}

body.app-workflow .wf-settings-panel .wizard-upload-message[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  body.app-workflow .wf-settings-panel .wizard-import-spinner {
    animation: none;
    border-color: rgba(96, 165, 250, 0.45);
    border-top-color: rgba(96, 165, 250, 0.45);
    opacity: 0.85;
  }
}

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

/* Wizard step 2 — review imported profile */
body.app-workflow .wf-settings-panel .wizard-review-page {
  max-width: min(52rem, 100%);
  margin: 0 auto;
  padding-bottom: 2rem;
}

body.app-workflow .wf-settings-panel .wizard-review-hero {
  margin-bottom: 1.75rem;
}

body.app-workflow .wf-settings-panel .wizard-review-kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0 0 0.5rem 0;
}

body.app-workflow .wf-settings-panel .wizard-review-title {
  font-size: clamp(1.65rem, 3vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f9fafb;
  margin: 0 0 0.75rem 0;
  line-height: 1.15;
}

body.app-workflow .wf-settings-panel .wizard-review-lead {
  font-size: 1rem;
  color: #9ca3af;
  line-height: 1.55;
  margin: 0;
  max-width: 40rem;
}

body.app-workflow .wf-settings-panel .wizard-review-section {
  margin: 0;
}

body.app-workflow .wf-settings-panel .wizard-review-empty {
  margin-top: 0.5rem;
}

body.app-workflow .wf-settings-panel .wizard-review-how-card {
  border-radius: 16px;
  border: 1px solid rgba(45, 212, 191, 0.42);
  background: linear-gradient(145deg, rgba(13, 148, 136, 0.12) 0%, rgba(15, 23, 42, 0.55) 55%, rgba(14, 14, 20, 0.9) 100%);
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.08), 0 12px 40px rgba(0, 0, 0, 0.28);
  padding: 1.35rem 1.35rem 1.45rem;
  margin-bottom: 1.25rem;
}

body.app-workflow .wf-settings-panel .wizard-review-how-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.35rem;
}

body.app-workflow .wf-settings-panel .wizard-review-how-text {
  flex: none;
  width: 100%;
  min-width: 0;
}

body.app-workflow .wf-settings-panel .wizard-how-kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5eead4;
  margin: 0 0 0.5rem 0;
}

body.app-workflow .wf-settings-panel .wizard-how-headline {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  color: #f9fafb;
  margin: 0 0 0.55rem 0;
  line-height: 1.25;
}

body.app-workflow .wf-settings-panel .wizard-how-body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #9ca3af;
  max-width: 40rem;
}

body.app-workflow .wf-settings-panel .wizard-review-how-diagram {
  flex: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding-top: 0.15rem;
}

body.app-workflow .wf-settings-panel .wizard-how-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.35rem 0.2rem;
  width: 100%;
}

body.app-workflow .wf-settings-panel .wizard-how-step {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.5rem 0.7rem;
  min-width: 4.75rem;
  max-width: 10.5rem;
  flex: 0 1 auto;
  text-align: center;
  border-radius: 12px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  background: rgba(15, 23, 42, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.app-workflow .wf-settings-panel .wizard-how-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5eead4;
}

body.app-workflow .wf-settings-panel .wizard-how-step-label {
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.3;
  color: #e5e7eb;
  hyphens: auto;
}

body.app-workflow .wf-settings-panel .wizard-how-arrow {
  align-self: center;
  color: rgba(94, 234, 212, 0.55);
  font-size: 1rem;
  font-weight: 600;
  user-select: none;
  padding: 0 0.1rem;
  flex-shrink: 0;
}

body.app-workflow .wf-settings-panel .wizard-review-hint-line {
  margin: 0 0 1.5rem 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #9ca3af;
}

body.app-workflow .wf-settings-panel .wizard-imported-card {
  background: linear-gradient(165deg, #18181f 0%, #12121a 100%);
  border: 1px solid #2e2e3d;
  border-radius: 16px;
  padding: 1.35rem 1.35rem 1.5rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

body.app-workflow .wf-settings-panel .wizard-imported-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-bottom: 1rem;
}

body.app-workflow .wf-settings-panel .wizard-imported-card-head-text {
  flex: 1 1 12rem;
  min-width: 0;
}

body.app-workflow .wf-settings-panel .wizard-imported-heading {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e5e7eb;
  margin: 0 0 0.45rem 0;
  line-height: 1.35;
}

body.app-workflow .wf-settings-panel .wizard-imported-sub {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #9ca3af;
  max-width: 36rem;
}

body.app-workflow .wf-settings-panel .wizard-imported-divider {
  height: 1px;
  margin: 0 0 1.15rem 0;
  background: linear-gradient(90deg, transparent, #3f3f50 12%, #3f3f50 88%, transparent);
  border: 0;
}

body.app-workflow .wf-settings-panel .wizard-imported-form .wf-settings-subh3 {
  margin-top: 1.25rem;
}

body.app-workflow .wf-settings-panel .wizard-imported-form .wf-settings-subh3:first-of-type {
  margin-top: 0;
}

body.app-workflow .wf-settings-panel .wizard-imported-save-status {
  margin-top: 1rem;
}

body.app-workflow .wf-settings-panel .wizard-imported-core {
  margin-top: 1rem;
}

body.app-workflow .wf-settings-panel .wizard-imported-core > .wf-settings-subh3 {
  margin-top: 0;
}

body.app-workflow .wf-settings-panel .wizard-enrich-status {
  margin-bottom: 0.75rem;
}

body.app-workflow .wf-settings-panel .wizard-core-empty {
  font-size: 0.9rem;
  margin: 0;
}

body.app-workflow .wf-settings-panel .wizard-btn-save-profile {
  flex-shrink: 0;
  align-self: flex-start;
  padding: 0.65rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: #1e69ff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 8px 28px rgba(30, 105, 255, 0.35);
  transition: filter 0.15s ease, transform 0.05s ease;
}

body.app-workflow .wf-settings-panel .wizard-btn-save-profile:hover:not(:disabled) {
  filter: brightness(1.06);
}

body.app-workflow .wf-settings-panel .wizard-btn-save-profile:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  body.app-workflow .wf-settings-panel .wizard-btn-save-profile {
    width: 100%;
    text-align: center;
  }

  body.app-workflow .wf-settings-panel .wizard-how-flow {
    flex-direction: column;
  }

  body.app-workflow .wf-settings-panel .wizard-how-arrow {
    transform: rotate(90deg);
    padding: 0.15rem 0;
  }
}

body.app-workflow .wf-settings-panel .wf-settings-empty {
  font-size: 0.9rem;
  margin: 0;
}

body.app-workflow .wf-settings-panel .profile-editor-actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

body.app-workflow .wf-settings-panel .profile-editor-export {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}

body.app-workflow .wf-settings-panel .profile-editor-export label {
  font-size: 0.79rem;
  color: #9ca3af;
  margin-bottom: 0.2rem;
}

body.app-workflow .wf-settings-panel .profile-editor-export select {
  min-width: 10.5rem;
}

body.app-workflow .wf-settings-panel--template-editor {
  max-width: 78rem;
}

body.app-workflow .wf-settings-panel--template-editor .profile-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

body.app-workflow .wf-settings-panel--template-editor #settings-profiles {
  padding: 1rem;
}

body.app-workflow .wf-settings-panel--template-editor .profile-template-editor {
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

body.app-workflow .wf-settings-panel--template-editor .profile-template-editor--inline {
  gap: 0.9rem;
  border: 1px solid #2e2e3d;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(20, 20, 31, 0.94) 0%, rgba(13, 13, 22, 0.94) 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle modern AI-themed decoration on the right end of the editor card so
   the gutter that opens up when content shifts left (to make room for the
   coach panel) doesn't feel empty. Constrained to the right edge with a soft
   horizontal mask so it stays unobtrusive behind the editor content. */
body.app-workflow .wf-settings-panel--template-editor .profile-template-editor--inline::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(8rem, 28%, 20rem);
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 92% 22%, rgba(99, 102, 241, 0.22), transparent 60%),
    radial-gradient(circle at 78% 78%, rgba(45, 212, 191, 0.10), transparent 65%),
    linear-gradient(rgba(165, 180, 252, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(165, 180, 252, 0.05) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: auto, auto, 22px 22px, 22px 22px, 26px 26px;
  -webkit-mask-image: linear-gradient(270deg, #000 30%, transparent 100%);
  mask-image: linear-gradient(270deg, #000 30%, transparent 100%);
  opacity: 0.9;
}

body.app-workflow .wf-settings-panel--template-editor .profile-template-editor--inline > * {
  position: relative;
  z-index: 1;
}

body.app-workflow .wf-settings-panel--template-editor .profile-inline-topbar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.55rem;
  flex-wrap: wrap;
  border-bottom: 1px solid #2e2e3d;
  padding: 0.1rem 0 0.8rem;
}

body.app-workflow .wf-settings-panel--template-editor .profile-inline-heading {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

body.app-workflow .wf-settings-panel--template-editor .profile-inline-heading h2 {
  margin: 0;
  font-size: 1.04rem;
  color: #f8fafc;
}

body.app-workflow .wf-settings-panel--template-editor .wf-inline-save-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border-radius: 999px;
  padding: 0.2rem 0.58rem;
  font-size: 0.73rem;
  font-weight: 600;
  border: 1px solid rgba(94, 234, 212, 0.45);
  background: rgba(45, 212, 191, 0.12);
  color: #99f6e4;
}

body.app-workflow .wf-settings-panel--template-editor .wf-inline-save-indicator.is-saving {
  border-color: rgba(165, 180, 252, 0.5);
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
}

body.app-workflow .wf-settings-panel--template-editor .wf-inline-save-indicator.is-error {
  border-color: rgba(252, 165, 165, 0.5);
  background: rgba(239, 68, 68, 0.14);
  color: #fecaca;
}

body.app-workflow .wf-settings-panel--template-editor .profile-inline-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  width: 100%;
}

body.app-workflow .wf-settings-panel--template-editor .profile-inline-actions .btn-ghost,
body.app-workflow .wf-settings-panel--template-editor .profile-inline-actions .button {
  min-height: 2rem;
  padding: 0.3rem 0.66rem;
  font-size: 0.78rem;
}

body.app-workflow .wf-settings-panel--template-editor .profile-inline-toolbar {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  flex-wrap: wrap;
  border: 1px solid #34344a;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.68);
  padding: 0.42rem;
}

body.app-workflow .wf-settings-panel--template-editor .profile-inline-toolbar select,
body.app-workflow .wf-settings-panel--template-editor .profile-inline-toolbar .btn-ghost {
  min-height: 1.95rem;
  padding: 0.25rem 0.58rem;
  font-size: 0.78rem;
}

body.app-workflow .wf-settings-panel--template-editor .wf-inline-underline {
  text-decoration: underline;
}

body.app-workflow .wf-settings-panel--template-editor #profile-inline-status {
  min-height: 1rem;
  margin-top: 0;
  margin-bottom: 0;
}

body.app-workflow .wf-settings-panel--template-editor .profile-template-toolbar {
  margin-bottom: 0;
}

body.app-workflow .wf-settings-panel--template-editor .profile-template-split {
  margin-top: 0.2rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

body.app-workflow .wf-settings-panel--template-editor .profile-template-preview {
  min-width: 0;
  position: relative;
  z-index: 1;
}

body.app-workflow .wf-settings-panel--template-editor .profile-template-preview .wf-preview-frame-wrap {
  width: min(100%, 8.5in);
  margin-inline: auto;
}

/* When the coach panel is open (default), shift the resume preview to the
   left so the fixed-position coach on the right edge of the viewport doesn't
   cover the resume. The coach panel is up to ~24rem wide + side gutter, so
   reserve roughly that much right padding on wide screens. Reset when the
   coach is collapsed so the preview recenters. */
@media (min-width: 768px) {
  body.app-workflow:not(.wf-profile-coach-collapsed)
    .wf-settings-panel--template-editor
    .profile-template-editor--inline {
    padding-right: clamp(8rem, 22vw, 22rem);
  }
}

body.app-workflow .wf-settings-panel--template-editor .profile-template-split .wf-coach {
  position: fixed;
  top: calc(var(--wf-nav-offset, 3.5rem) + 0.9rem);
  right: clamp(0.75rem, 2vw, 1.35rem);
  width: min(24rem, calc(100vw - 1.5rem));
  max-height: calc(100vh - var(--wf-nav-offset, 3.5rem) - 1.8rem);
  z-index: 3250;
  transition: transform 180ms ease, opacity 180ms ease;
}

body.app-workflow.wf-profile-coach-collapsed .wf-settings-panel--template-editor .profile-template-split .wf-coach {
  transform: translateX(calc(100% + 0.9rem));
  opacity: 0;
  pointer-events: none;
}

body.app-workflow .wf-settings-panel--template-editor .profile-coach-collapse-btn {
  min-height: 2rem;
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
}

body.app-workflow .wf-settings-panel--template-editor .profile-coach-restore-btn {
  display: none;
  position: fixed;
  top: calc(var(--wf-nav-offset, 3.5rem) + 8.75rem);
  right: 0;
  z-index: 3260;
  border-radius: 12px 0 0 12px;
  border: 1px solid rgba(129, 140, 248, 0.65);
  border-right: none;
  min-height: 2.5rem;
  padding: 0.45rem 0.75rem 0.45rem 0.62rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #4f7df3 0%, #6366f1 100%);
  box-shadow: 0 10px 24px rgba(79, 125, 243, 0.35);
  cursor: pointer;
}

body.app-workflow.wf-profile-coach-collapsed .wf-settings-panel--template-editor .profile-coach-restore-btn {
  display: inline-flex;
  align-items: center;
}

body.app-workflow .wf-settings-panel--template-editor .theme-inline-row {
  margin-left: auto;
}

body.app-workflow .wf-settings-panel--template-editor .wf-coach-list--weaknesses li {
  color: #fecaca;
}

body.app-workflow .wf-settings-panel--template-editor .wf-coach-list--weaknesses .wf-coach-list-empty {
  color: #fda4af;
}

@media (max-width: 1100px) {
  body.app-workflow .wf-settings-panel--template-editor .profile-template-preview .wf-preview-frame-wrap {
    width: min(100%, 8.1in);
  }

  body.app-workflow .wf-settings-panel--template-editor .theme-inline-row {
    margin-left: 0;
  }

  body.app-workflow .wf-settings-panel--template-editor .profile-template-split .wf-coach {
    width: min(21.5rem, calc(100vw - 1rem));
    top: calc(var(--wf-nav-offset, 3.5rem) + 0.75rem);
  }

  body.app-workflow .wf-settings-panel--template-editor .profile-coach-restore-btn {
    top: calc(var(--wf-nav-offset, 3.5rem) + 8rem);
  }

  body.app-workflow .wf-settings-panel--template-editor .profile-inline-actions {
    width: 100%;
  }
}

.wf-coach-list {
  margin: 0.35rem 0 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.3rem;
}

.wf-coach-actions {
  margin-top: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.wf-coach-list li {
  color: #dbeafe;
  font-size: 0.82rem;
  line-height: 1.45;
}

.wf-coach-list .wf-coach-list-empty {
  color: #94a3b8;
  list-style: none;
  margin-left: -1rem;
}

body.app-workflow .wf-coach-list--weaknesses li {
  color: #fecaca;
}

body.app-workflow .wf-coach-list--weaknesses .wf-coach-list-empty {
  color: #fda4af;
}

body.app-workflow .wf-coach-list--suggestions {
  padding-left: 0;
  gap: 0.55rem;
}

body.app-workflow .wf-coach-list--suggestions .wf-coach-list-empty {
  margin-left: 0;
  color: #94a3b8;
}

body.app-workflow .wf-coach-suggestion-item {
  list-style: none;
  border: 1px solid #323243;
  border-radius: 10px;
  padding: 0.6rem 0.65rem;
  background: rgba(15, 23, 42, 0.45);
}

body.app-workflow .wf-coach-suggestion-issue {
  margin: 0 0 0.25rem 0;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.8rem;
}

body.app-workflow .wf-coach-suggestion-target,
body.app-workflow .wf-coach-suggestion-current,
body.app-workflow .wf-coach-suggestion-replacement {
  margin: 0.2rem 0 0 0;
  color: #cbd5e1;
  font-size: 0.77rem;
  line-height: 1.4;
}

body.app-workflow .wf-coach-suggestion-replacement {
  color: #bfdbfe;
}

body.app-workflow .wf-coach-suggestion-actions {
  margin-top: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

body.app-workflow .wf-coach-apply-one-btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
}

body.app-workflow .wf-coach-dismiss-one-btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
}

body.app-workflow .wf-coach-suggestion-state {
  font-size: 0.74rem;
  color: #93c5fd;
}

body.app-workflow .wf-coach-suggestion-item--onboarding {
  border-color: rgba(99, 102, 241, 0.55);
  background: rgba(49, 46, 129, 0.32);
}

body.app-workflow .wf-coach-onboarding-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
}

body.app-workflow .wf-coach-suggestion-item.is-applied {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(6, 78, 59, 0.28);
}

body.app-workflow .wf-coach-suggestion-item.is-applied .wf-coach-suggestion-state {
  color: #86efac;
}

body.app-workflow .wf-coach-suggestion-item.is-skipped {
  border-color: rgba(251, 113, 133, 0.5);
  background: rgba(76, 5, 25, 0.34);
}

body.app-workflow .wf-coach-suggestion-item.is-skipped .wf-coach-suggestion-state {
  color: #fda4af;
}

body.app-workflow button.button,
body.app-workflow .wf-cta {
  background: linear-gradient(135deg, #4f7df3 0%, #6366f1 100%);
  border: none;
  color: #fff;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.75rem 1.35rem;
  box-shadow: 0 8px 28px rgba(79, 125, 243, 0.3);
  cursor: pointer;
  font-family: inherit;
}

body.app-workflow button.button:hover,
body.app-workflow .wf-cta:hover {
  filter: brightness(1.05);
  color: #fff;
}

body.app-workflow .btn-ghost {
  background: transparent;
  border: 1px solid #3f3f50;
  color: #d1d5db;
  box-shadow: none;
}

body.app-workflow .btn-ghost:hover {
  border-color: #6366f1;
  color: #e0e7ff;
}

.wf-profile-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin: 0 -0.25rem 1.5rem;
  scroll-snap-type: x proximity;
}

.wf-profile-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  border-radius: 16px;
  border: 1px solid #35354a;
  background: #12121a;
  padding: 0.65rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  font-family: inherit;
  color: inherit;
}

.wf-profile-card:hover {
  border-color: #4b5563;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.wf-profile-card.is-selected {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 1px rgba(79, 125, 243, 0.22), 0 12px 36px rgba(79, 125, 243, 0.1);
}

.wf-profile-card .w-mini {
  height: 132px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.wf-profile-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}

.wf-profile-meta strong {
  display: block;
  font-size: 0.88rem;
  color: #f3f4f6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wf-profile-name-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  flex: 1 1 auto;
}

.wf-profile-name {
  cursor: text;
  border-radius: 4px;
  padding: 1px 3px;
  margin: -1px -3px;
  transition: background-color 0.15s, color 0.15s;
}

.wf-profile-name:hover,
.wf-profile-name:focus {
  background: rgba(99, 102, 241, 0.18);
  color: #fff;
  outline: none;
}

.wf-profile-name-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
  flex-shrink: 0;
  pointer-events: none;
}

.wf-profile-card:hover .wf-profile-name-edit,
.wf-profile-name:focus + .wf-profile-name-edit,
.wf-profile-name-wrap:hover .wf-profile-name-edit {
  opacity: 1;
  color: #c7d2fe;
}

.wf-profile-name-input {
  font: inherit;
  font-size: 0.88rem;
  color: #f3f4f6;
  background: rgba(14, 14, 20, 0.95);
  border: 1px solid rgba(129, 140, 248, 0.55);
  border-radius: 4px;
  padding: 1px 4px;
  margin: -2px -4px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  outline: none;
}

.wf-profile-name-input:focus {
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.wf-profile-meta span {
  font-size: 0.72rem;
  color: #6b7280;
}

.wf-profile-updated {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  color: #6b7280;
}

.wf-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.28rem 0.55rem 0.28rem 0.42rem;
  border-radius: 999px;
  background: rgba(67, 85, 160, 0.45);
  border: 1px solid rgba(129, 140, 248, 0.38);
  color: #b8c7f5;
  line-height: 1;
}

.wf-profile-meta .wf-profile-pill span {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.wf-profile-pill-icon {
  flex-shrink: 0;
  display: block;
}

.wf-file-name {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

.wf-create-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0.65rem;
  border-radius: 16px;
  border: 1px dashed #3f3f50;
  background: rgba(79, 125, 243, 0.06);
}

.wf-create-card-preview {
  height: 132px;
  border-radius: 10px;
  border: 1px dashed #3f3f50;
  background: rgba(14, 14, 20, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
}

.wf-create-card .wf-create-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(79, 125, 243, 0.16);
  color: #93a4e6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wf-create-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.wf-create-card-title {
  margin: 0 0 0.5rem 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #f3f4f6;
  line-height: 1.25;
}

.wf-create-card-cta {
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
  margin-top: auto;
  padding: 0.5rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.wf-create-card-height-spacer {
  visibility: hidden;
  user-select: none;
}

.wf-bar-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.wf-summaries {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.wf-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  border: 1px solid #2e2e3d;
  background: rgba(18, 18, 26, 0.8);
  font-size: 0.82rem;
  color: #d1d5db;
}

.wf-summary-bar button {
  background: none;
  border: none;
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.wf-progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #c4b5fd;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  margin-bottom: 1rem;
}

.wf-progress-pill[hidden] {
  display: none !important;
}

/* Step 3: one strong headline is enough */
#wf-panel-3 .wf-title {
  font-weight: 600;
}

.wf-panel--overlay {
  position: fixed;
  inset: 0;
  max-width: none;
  margin: 0;
  z-index: 4200;
}

.wf-wait-overlay {
  position: fixed;
  top: var(--wf-nav-offset, 3.5rem);
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2vw, 1.6rem);
}

.wf-wait-overlay[hidden] {
  display: none !important;
}

.wf-wait-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 18, 0.66);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.wf-wait-overlay__center {
  position: relative;
  z-index: 1;
  width: min(100%, 42rem);
  text-align: center;
}

.wf-wait-overlay__center .wf-lead {
  margin-bottom: 1.15rem;
  max-width: none;
}

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

.wf-wait-screen {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  max-width: 42rem;
  border: 1px solid #2e2e3d;
  border-radius: 18px;
  background: rgba(11, 15, 28, 0.88);
  box-shadow: 0 18px 52px rgba(2, 6, 23, 0.5);
  padding: 1.35rem clamp(1rem, 3vw, 1.5rem) 1.55rem;
}

.wf-wait-screen[hidden] {
  display: none !important;
}

.wf-wait-screen__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wf-wait-screen__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32rem;
  height: 32rem;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.22) 0%, rgba(59, 130, 246, 0.06) 45%, transparent 70%);
  filter: blur(48px);
  animation: wf-wait-glow 6s ease-in-out infinite;
}

.wf-wait-screen__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.wf-wait-screen__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  background: rgba(96, 165, 250, 0.14);
  color: #dbeafe;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  margin-bottom: 1rem;
}

.wf-wait-screen__chip-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #93c5fd;
  animation: wf-wait-dot 1.4s ease-in-out infinite;
}

.wf-wait-screen__scan {
  position: relative;
  margin: 0 auto 1rem;
  max-width: 19rem;
  height: 2px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.wf-wait-screen__scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 7rem;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(147, 197, 253, 0.9), transparent);
  transform: translateX(-150%);
  animation: wf-wait-scan 4.2s ease-in-out infinite;
}

.wf-wait-screen__kicker {
  margin: 0 0 0.55rem 0;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #93c5fd;
}

.wf-wait-screen__tip-card {
  margin: 0 auto;
  max-width: 36rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 32px rgba(2, 6, 23, 0.38);
  padding: 1rem 1.05rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease;
}

.wf-wait-screen__tip-card.is-swapping {
  opacity: 0;
  transform: translateY(-8px);
}

.wf-wait-screen__tip-title {
  margin: 0;
  color: #f8fafc;
  font-size: 1.02rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.wf-wait-screen__tip-body {
  margin: 0.6rem 0 0 0;
  color: rgba(241, 245, 249, 0.68);
  font-size: 0.88rem;
  line-height: 1.55;
}

.wf-wait-screen__footer {
  margin: 1rem 0 0 0;
  color: rgba(241, 245, 249, 0.42);
  font-size: 0.82rem;
}

@keyframes wf-wait-glow {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.28;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.06);
    opacity: 0.52;
  }
}

@keyframes wf-wait-dot {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

@keyframes wf-wait-scan {
  0% {
    transform: translateX(-145%);
  }
  100% {
    transform: translateX(360%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wf-wait-screen__glow,
  .wf-wait-screen__chip-dot,
  .wf-wait-screen__scan-line {
    animation: none;
  }

  .wf-wait-screen__tip-card {
    transition: none;
  }
}

.wf-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #a5b4fc;
  border-radius: 50%;
  animation: wf-spin 0.75s linear infinite;
}

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

.wf-theme-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.wf-theme-filters button {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #3f3f50;
  background: transparent;
  color: #9ca3af;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.wf-theme-filters button.is-active {
  border-color: #6366f1;
  color: #e0e7ff;
  background: rgba(99, 102, 241, 0.12);
}

.wf-theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 1rem;
}

.wf-theme-card {
  border-radius: 14px;
  border: 1px solid #35354a;
  background: #14141c;
  padding: 0.55rem;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  font-family: inherit;
}

.wf-theme-card:hover {
  border-color: #4b5563;
  transform: translateY(-2px);
}

.wf-theme-card.is-selected {
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.4), 0 16px 40px rgba(79, 125, 243, 0.12);
}

.wf-theme-card.is-dimmed {
  opacity: 0.28;
  pointer-events: none;
}

.wf-theme-card:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.25);
  transform: none;
}

.wf-theme-card:disabled:hover {
  transform: none;
  border-color: #35354a;
}

.wf-theme-card .w-mini {
  height: 148px;
  border-radius: 10px;
  overflow: hidden;
  pointer-events: none;
}

.wf-theme-card span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e5e7eb;
}

/* Template step: horizontal theme carousel (panel width matches steps 1–2) */
.wf-theme-filters--flowcv {
  margin-bottom: 1.75rem;
}

.wf-theme-filters--flowcv button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #e5e7eb;
  font-size: 0.8rem;
}

.wf-theme-filters--flowcv button.is-active {
  border-color: transparent;
  background: #2d2d38;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.wf-theme-filters--flowcv button:hover:not(.is-active) {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.wf-filter-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.9;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.wf-filter-icon--grid {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23e5e7eb' stroke-width='1.5'%3E%3Crect x='1' y='1' width='5' height='5' rx='0.5'/%3E%3Crect x='8' y='1' width='5' height='5' rx='0.5'/%3E%3Crect x='1' y='8' width='5' height='5' rx='0.5'/%3E%3Crect x='8' y='8' width='5' height='5' rx='0.5'/%3E%3C/svg%3E");
}

.wf-filter-icon--simple {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23e5e7eb' stroke-width='1.5'%3E%3Cpath d='M3 5h8M3 9h5'/%3E%3Crect x='1.5' y='2' width='11' height='10' rx='1'/%3E%3C/svg%3E");
}

.wf-filter-icon--modern {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23e5e7eb' stroke-width='1.5'%3E%3Cpath d='M2 11V4l5-2 5 2v7l-5 2-5-2z'/%3E%3Cpath d='M7 2v11'/%3E%3C/svg%3E");
}

.wf-filter-icon--creative {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23e5e7eb' stroke-width='1.5'%3E%3Cpath d='M2 10l2-3 3 1 3-4 2 3'/%3E%3Ccircle cx='10' cy='3' r='1' fill='%23e5e7eb'/%3E%3C/svg%3E");
}

.wf-theme-grid--flowcv {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: clamp(1.25rem, 3vw, 2rem);
  overflow-x: auto;
  overflow-y: visible;
  padding: 0.75rem 0.35rem 1.75rem;
  margin: 0 -0.35rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.wf-theme-grid--flowcv::-webkit-scrollbar {
  height: 8px;
}

.wf-theme-grid--flowcv::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 99px;
}

.wf-theme-card--flowcv {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  min-width: min(292px, 78vw);
  max-width: 300px;
  border: none;
  background: transparent;
  padding: 0.5rem 0.6rem 0.85rem;
  border-radius: 22px;
  box-shadow: none;
  scroll-snap-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.wf-theme-card--flowcv:hover {
  transform: translateY(-4px);
}

.wf-theme-card--flowcv.is-selected {
  box-shadow:
    0 0 0 3px rgba(129, 140, 248, 0.95),
    0 0 36px rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.07);
}

.wf-theme-card--flowcv .wf-theme-card-name {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  color: #f3f4f6;
}

.wf-theme-card--flowcv .wf-theme-card-tagline {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 400;
  text-align: center;
  color: #9ca3af;
  line-height: 1.35;
}

/* Cropped chrome (~top third): avoids a tall “second page” under the carousel. */
.wf-theme-card--flowcv .w-mini {
  width: 100%;
  height: 200px;
  max-height: 210px;
  border-radius: 12px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

/* Denser sample resume for theme grid (realistic content) */
.w-mini--demo {
  font-size: 4.25px;
  line-height: 1.32;
}

.w-mini--demo .w-mini__name {
  font-size: 7px;
}

.w-mini--demo .w-mini__role {
  font-size: 5px;
}

.w-mini--demo .w-mini__loc {
  font-size: 4.5px;
}

.w-mini--demo .w-mini__contact {
  font-size: 3.85px;
  line-height: 1.35;
  margin-top: 2px;
  opacity: 0.92;
  word-break: break-word;
}

.w-mini--demo .w-mini__job--row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px;
  margin-top: 3px;
}

.w-mini--demo .w-mini__job--row .w-mini__jt {
  font-size: 5px;
  flex: 1;
  min-width: 0;
}

.w-mini--demo .w-mini__jd {
  font-size: 4px;
  font-weight: 700;
  color: #0d9488;
  white-space: nowrap;
  flex-shrink: 0;
}

.w-mini--demo strong {
  font-weight: 700;
  color: inherit;
}

.w-mini--demo .w-mini__sec {
  font-size: 4.25px;
  margin-top: 3px;
}

.w-mini--demo .w-mini__p {
  font-size: 4.1px;
  line-height: 1.38;
  margin-bottom: 2px;
}

.w-mini--demo .w-mini__p--compact {
  font-size: 3.95px;
  margin-bottom: 1px;
}

.w-mini--demo .w-mini__jt {
  font-size: 5px;
}

.w-mini--demo .w-mini__co {
  font-size: 4px;
}

.w-mini--demo .w-mini__ul {
  font-size: 3.95px;
  margin-top: 1px;
  padding-left: 6px;
}

.w-mini--demo .w-mini__ul li {
  margin-bottom: 0;
}

.w-mini--demo .w-mini__em {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 3.6px;
  margin-right: 2px;
  opacity: 0.92;
}

/* Theme grid: one visual per real template (not only clean/modern/professional families). */
.wf-theme-card--flowcv .w-mini--demo {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wf-theme-card--flowcv .w-mini--demo > .w-mini__body {
  flex: 0 0 auto;
  min-height: 0;
  overflow: hidden;
}

/* Minis sit inside body.app-workflow (#e8e8ef); without a reset, text inherits as light-on-white. */
.wf-theme-card--flowcv .w-mini.w-mini--demo {
  color: #0f172a;
}

.wf-theme-card--flowcv .w-mini.w-mini--demo .w-mini__p,
.wf-theme-card--flowcv .w-mini.w-mini--demo .w-mini__ul,
.wf-theme-card--flowcv .w-mini.w-mini--demo .w-mini__ul li {
  color: #334155;
}

.wf-theme-card--flowcv .w-mini.w-mini--demo .w-mini__jt {
  color: #0f172a;
}

.w-mini--demo.w-mini--t-technical {
  background: #f1f5f9;
}

.w-mini--demo.w-mini--t-technical .w-mini__head {
  background: linear-gradient(135deg, #dbeafe 0%, #ffffff 95%);
  border-bottom: 2px solid #2563eb;
  margin: -5px -6px 5px -6px;
  padding: 8px 8px 6px;
}

.w-mini--demo.w-mini--t-technical .w-mini__head {
  color: #0f172a;
}

.w-mini--demo.w-mini--t-technical .w-mini__name {
  color: #0f172a;
}

.w-mini--demo.w-mini--t-technical .w-mini__role,
.w-mini--demo.w-mini--t-technical .w-mini__contact {
  color: #334155;
  opacity: 1;
}

.w-mini--demo.w-mini--t-technical .w-mini__body {
  color: #0f172a;
}

.w-mini--demo.w-mini--t-technical .w-mini__sec span:last-child {
  color: #1e40af;
}

.w-mini--demo.w-mini--t-technical .w-mini__bar {
  background: #2563eb;
}

.w-mini--demo.w-mini--t-technical .w-mini__jd {
  color: #1d4ed8;
}

.w-mini--demo.w-mini--t-minimal {
  background: #fff;
  font-family: Georgia, 'Times New Roman', serif;
}

.w-mini--demo.w-mini--t-minimal .w-mini__head {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 6px;
}

.w-mini--demo.w-mini--t-minimal .w-mini__name {
  font-weight: 400;
  color: #1a202c;
}

.w-mini--demo.w-mini--t-minimal .w-mini__role,
.w-mini--demo.w-mini--t-minimal .w-mini__contact {
  color: #334155;
  opacity: 1;
}

.w-mini--demo.w-mini--t-minimal .w-mini__body {
  color: #0f172a;
}

.w-mini--demo.w-mini--t-minimal .w-mini__sec span:last-child {
  color: #0f766e;
}

.w-mini--demo.w-mini--t-minimal .w-mini__bar {
  background: #0d9488;
}

.w-mini--demo.w-mini--t-minimal .w-mini__jd {
  color: #0f766e;
}

.w-mini--demo.w-mini--t-classic {
  background: #fefefe;
  font-family: Georgia, 'Times New Roman', serif;
}

.w-mini--demo.w-mini--t-classic .w-mini__head {
  border-bottom: 2px solid #1e3a5f;
  padding-bottom: 6px;
}

.w-mini--demo.w-mini--t-classic .w-mini__name {
  color: #1e3a5f;
}

.w-mini--demo.w-mini--t-classic .w-mini__role,
.w-mini--demo.w-mini--t-classic .w-mini__contact {
  color: #334155;
  opacity: 1;
}

.w-mini--demo.w-mini--t-classic .w-mini__body {
  color: #0f172a;
}

.w-mini--demo.w-mini--t-classic .w-mini__sec span:last-child {
  color: #1e3a5f;
}

.w-mini--demo.w-mini--t-classic .w-mini__bar {
  background: #1e3a5f;
}

.w-mini--demo.w-mini--t-classic .w-mini__jd {
  color: #1e3a5f;
}

.w-mini--demo.w-mini--t-modern .w-mini__head {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 45%, #14b8a6 100%);
  margin: -5px -6px 5px -6px;
  padding: 8px 8px 7px;
  color: #fff;
}

.w-mini--demo.w-mini--t-modern .w-mini__name,
.w-mini--demo.w-mini--t-modern .w-mini__role {
  color: #fff;
}

.w-mini--demo.w-mini--t-modern .w-mini__contact {
  color: #e2e8f0;
  opacity: 1;
}

.w-mini--demo.w-mini--t-modern .w-mini__body {
  background: #fff;
  color: #1e293b;
}

.w-mini--demo.w-mini--t-modern .w-mini__p,
.w-mini--demo.w-mini--t-modern .w-mini__ul,
.w-mini--demo.w-mini--t-modern .w-mini__ul li {
  color: #334155;
}

.w-mini--demo.w-mini--t-modern .w-mini__jt {
  color: #0f172a;
}

.w-mini--demo.w-mini--t-modern .w-mini__bar {
  background: #5eead4;
}

.w-mini--demo.w-mini--t-modern .w-mini__sec span:last-child {
  color: #0f766e;
}

.w-mini--demo.w-mini--t-modern .w-mini__jd {
  color: #0d9488;
}

.wf-theme-card--flowcv .w-mini.w-mini--demo.w-mini--t-executive,
.w-mini--demo.w-mini--t-executive {
  background: #f7f2ea;
  color: #2b2118;
}

.w-mini--demo.w-mini--t-executive .w-mini__p,
.w-mini--demo.w-mini--t-executive .w-mini__ul,
.w-mini--demo.w-mini--t-executive .w-mini__ul li {
  color: #3d2f24;
}

.w-mini--demo.w-mini--t-executive .w-mini__sec span:last-child {
  color: #5c4033;
}

.w-mini--demo.w-mini--t-executive .w-mini__head {
  border-bottom: 1px solid #cdbba6;
}

.w-mini--demo.w-mini--t-executive .w-mini__bar {
  background: #a8845d;
}

.w-mini--demo.w-mini--t-executive .w-mini__jd {
  color: #6b4f36;
}

.w-mini--demo.w-mini--t-dark-header .w-mini__head {
  background: #1e293b;
  margin: -5px -6px 0 -6px;
  padding: 8px 8px 6px;
  color: #f8fafc;
}

.w-mini--demo.w-mini--t-dark-header .w-mini__name,
.w-mini--demo.w-mini--t-dark-header .w-mini__role {
  color: #fff;
}

.w-mini--demo.w-mini--t-dark-header .w-mini__contact {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid #334155;
  color: #cbd5e1;
  opacity: 1;
}

.w-mini--demo.w-mini--t-dark-header .w-mini__body {
  background: #fff;
  color: #1e293b;
  padding-top: 6px;
}

.w-mini--demo.w-mini--t-dark-header .w-mini__p,
.w-mini--demo.w-mini--t-dark-header .w-mini__ul,
.w-mini--demo.w-mini--t-dark-header .w-mini__ul li {
  color: #334155;
}

.w-mini--demo.w-mini--t-dark-header .w-mini__jt {
  color: #0f172a;
}

.w-mini--demo.w-mini--t-dark-header .w-mini__bar {
  background: #0d9488;
}

.w-mini--demo.w-mini--t-dark-header .w-mini__sec span:last-child {
  color: #0f766e;
}

.w-mini--demo.w-mini--t-dark-header .w-mini__jd {
  color: #0d9488;
}

.w-mini--demo.w-mini--t-sidebar {
  flex-direction: row;
  align-items: stretch;
  background: #fff;
}

.w-mini--demo.w-mini--t-sidebar .w-mini__head {
  flex: 0 0 30%;
  max-width: 30%;
  background: #1e3a5f;
  color: #f8fafc;
  margin: 0;
  padding: 6px 5px;
}

.w-mini--demo.w-mini--t-sidebar .w-mini__name,
.w-mini--demo.w-mini--t-sidebar .w-mini__role,
.w-mini--demo.w-mini--t-sidebar .w-mini__contact {
  color: #e2e8f0;
  opacity: 1;
}

.w-mini--demo.w-mini--t-sidebar .w-mini__body {
  flex: 1;
  min-width: 0;
  background: #fff;
  color: #0f172a;
  border-left: 1px solid #e2e8f0;
}

.w-mini--demo.w-mini--t-sidebar .w-mini__p,
.w-mini--demo.w-mini--t-sidebar .w-mini__ul,
.w-mini--demo.w-mini--t-sidebar .w-mini__ul li {
  color: #334155;
}

.w-mini--demo.w-mini--t-sidebar .w-mini__jt {
  color: #0f172a;
}

.w-mini--demo.w-mini--t-sidebar .w-mini__sec span:last-child {
  color: #1e3a5f;
}

.w-mini--demo.w-mini--t-sidebar .w-mini__bar {
  background: #1e3a5f;
}

.w-mini--demo.w-mini--t-sidebar .w-mini__jd {
  color: #1e3a5f;
}

/* Step 4 (refine) inline edit toolbar — mirrors the saved-resumes inline
   editor (`profile_template_editor.html`) so the controls feel consistent
   across resume editing surfaces. The header row holds the title + autosave
   indicator; the actions row holds undo/redo/preview/theme/download. */
.wf-refine-inline-toolbar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 0 0 0.65rem;
  padding: 0.1rem 0 0.8rem;
  border-bottom: 1px solid #2e2e3d;
}

.wf-refine-inline-toolbar[hidden] {
  display: none;
}

.wf-refine-inline-toolbar .profile-inline-heading {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.wf-refine-inline-toolbar .profile-inline-heading h2 {
  margin: 0;
  font-size: 1.04rem;
  color: #f8fafc;
}

.wf-refine-inline-toolbar .profile-inline-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  width: 100%;
}

.wf-refine-inline-toolbar .profile-inline-actions .btn-ghost,
.wf-refine-inline-toolbar .profile-inline-actions .button {
  min-height: 2rem;
  padding: 0.3rem 0.66rem;
  font-size: 0.78rem;
}

.wf-refine-inline-toolbar .theme-inline-row {
  margin-left: auto;
}

.wf-refine-inline-toolbar .theme-inline-row .theme-inline-label {
  color: #9ca3af;
}

.wf-refine-inline-toolbar .wf-inline-save-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border-radius: 999px;
  padding: 0.2rem 0.58rem;
  font-size: 0.73rem;
  font-weight: 600;
  border: 1px solid rgba(94, 234, 212, 0.45);
  background: rgba(45, 212, 191, 0.12);
  color: #99f6e4;
}

.wf-refine-inline-toolbar .wf-inline-save-indicator.is-saving {
  border-color: rgba(165, 180, 252, 0.5);
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
}

.wf-refine-inline-toolbar .wf-inline-save-indicator.is-error {
  border-color: rgba(252, 165, 165, 0.5);
  background: rgba(239, 68, 68, 0.14);
  color: #fecaca;
}

#wf-panel-4 #profile-inline-status {
  min-height: 1rem;
  margin: 0 0 0.5rem 0;
  font-size: 0.78rem;
}

body.app-workflow .wf-refine-inline-toolbar select {
  min-width: 9rem;
}

/* Step 4 preview is now full-width — the resume coach widgets live in the
   global resume coach panel (right-edge pill) so the preview no longer needs
   to share horizontal space with an inline coach. */
.wf-refine-preview {
  display: block;
}

.wf-refine-preview .wf-preview-frame-wrap {
  width: min(100%, 8.5in);
  margin-inline: auto;
}

.wf-preview-frame-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #2e2e3d;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.wf-preview-frame-wrap iframe {
  width: 100%;
  min-height: 72vh;
  height: 72vh;
  border: none;
  display: block;
}

.wf-cover-letter-section {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2e2e3d;
}

.wf-cover-letter-section[hidden] {
  display: none;
}

.wf-cover-letter-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.wf-cover-letter-title {
  margin: 0.15rem 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #f3f4f6;
}

.wf-cover-letter-sub {
  margin: 0;
  font-size: 0.82rem;
  color: #9ca3af;
  max-width: 48ch;
}

.wf-ai-disclaimer {
  margin-top: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid #35354a;
  background: rgba(14, 14, 20, 0.72);
  color: #9ca3af;
  font-size: 0.78rem;
  line-height: 1.45;
}

.wf-coach {
  border-radius: 16px;
  border: 1px solid #2e2e3d;
  background: linear-gradient(180deg, #16161f 0%, #12121a 100%);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 8rem);
}

.wf-coach-header {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #2e2e3d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.wf-coach-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.wf-coach-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #f3f4f6;
}

.wf-coach-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a5b4fc;
  background: rgba(79, 125, 243, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

.wf-coach-close {
  display: none;
  width: auto;
  min-height: 36px;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #3f3f50;
  background: transparent;
  color: #d1d5db;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.wf-coach-fab {
  display: none;
}

.wf-coach-body {
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wf-coach-section h3 {
  margin: 0 0 0.5rem 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.wf-coach-count {
  color: #cbd5e1;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.wf-feedback-section {
  border-top: 1px solid #2e2e3d;
  padding-top: 0.8rem;
}

.wf-feedback-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wf-feedback-btn {
  border: 1px solid #3b3b52;
  background: rgba(255, 255, 255, 0.02);
  color: #d1d5db;
  border-radius: 999px;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.wf-feedback-btn:hover {
  border-color: #565680;
  background: rgba(99, 102, 241, 0.14);
  color: #f3f4f6;
}

.wf-feedback-btn.is-selected {
  border-color: #818cf8;
  background: rgba(99, 102, 241, 0.2);
  color: #e0e7ff;
}

.wf-feedback-more {
  margin-left: 0.15rem;
  font-size: 0.78rem;
  color: #a5b4fc;
  text-decoration: none;
}

.wf-feedback-more:hover {
  text-decoration: underline;
}

.wf-feedback-status {
  min-height: 1rem;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: #9ca3af;
}

.wf-feedback-status.error {
  color: #fca5a5;
}

/* Global resume coach: pinned to right edge across all logged-in pages so the
   "Coach" affordance lives in the same place as the uploaded-resumes coach pill. */
.global-resume-coach {
  position: fixed;
  top: calc(var(--wf-nav-offset, 3.5rem) + 8.75rem);
  right: 0;
  z-index: 3400;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  pointer-events: none;
}

.global-resume-coach__fab,
.global-resume-coach__panel {
  pointer-events: auto;
}

.global-resume-coach__fab {
  display: inline-flex;
  align-items: center;
  border-radius: 12px 0 0 12px;
  border: 1px solid rgba(129, 140, 248, 0.65);
  border-right: none;
  min-height: 2.5rem;
  padding: 0.45rem 0.75rem 0.45rem 0.62rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(135deg, #4f7df3 0%, #6366f1 100%);
  box-shadow: 0 10px 24px rgba(79, 125, 243, 0.35);
  cursor: pointer;
}

.global-resume-coach[data-open="true"] .global-resume-coach__fab {
  display: none;
}

.global-resume-coach[data-open="false"] .global-resume-coach__panel,
.global-resume-coach__panel[hidden] {
  display: none !important;
}

.global-resume-coach__panel {
  width: min(24rem, calc(100vw - 1.5rem));
  border-radius: 16px 0 0 16px;
  border: 1px solid #2e2e3d;
  border-right: none;
  background: linear-gradient(180deg, #16161f 0%, #12121a 100%);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.42);
  max-height: min(70vh, 38rem);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.global-resume-coach__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.9rem 1rem 0.8rem;
  border-bottom: 1px solid #2e2e3d;
}

.global-resume-coach__kicker {
  margin: 0 0 0.22rem 0;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.global-resume-coach__title {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: #f3f4f6;
}

.global-resume-coach__close {
  border-radius: 999px;
  min-height: 34px;
  padding: 0.3rem 0.62rem;
  border: 1px solid #3f3f50;
  background: transparent;
  color: #d1d5db;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.global-resume-coach__body {
  padding: 0.95rem 1rem 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.global-resume-coach__section {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  box-shadow: none;
}

.global-resume-coach__section h3 {
  margin: 0 0 0.45rem 0;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.global-resume-coach__section ul {
  margin: 0;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.42rem;
  color: #d1d5db;
  font-size: 0.81rem;
  line-height: 1.45;
}

.global-resume-coach__section p {
  margin: 0;
  color: #d1d5db;
  font-size: 0.82rem;
  line-height: 1.45;
}

.global-resume-coach__intro + .global-resume-coach__intro {
  margin-top: 0.55rem;
}

.global-resume-coach__cta {
  display: inline-flex;
  margin-top: 0.6rem;
  color: #a5b4fc;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.global-resume-coach__cta:hover {
  text-decoration: underline;
}

/* When the global coach hosts the Customize Resume workflow widgets, give it
   more breathing room since the suggestions list, refine textarea, and gaps
   panel are significantly taller than the static profile-signals layout. */
.global-resume-coach--workflow .global-resume-coach__panel {
  width: min(26rem, calc(100vw - 1.25rem));
  max-height: min(86vh, 48rem);
}

/* Workflow widgets reuse the `.wf-coach-section` styling that originally
   lived inside the in-page coach aside. Their h3 needs to look the same as
   the global coach's other section headings (small uppercase muted label)
   rather than the inline coach's larger heading style. */
.global-resume-coach--workflow .wf-coach-section h3 {
  margin: 0 0 0.45rem 0;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.global-resume-coach--workflow .wf-coach-section h3 .wf-coach-count {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.7rem;
  color: #c7d2fe;
}

.global-resume-coach--workflow #refine-instructions {
  width: 100%;
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.4;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid #34344a;
  background: #0f172a;
  color: #e5e7eb;
  resize: vertical;
}

.global-resume-coach--workflow .wf-coach-actions {
  margin-top: 0.4rem;
}

.global-resume-coach--workflow .tailor-gaps-panel {
  background: rgba(14, 14, 20, 0.9);
  border: 1px solid #35354a;
  border-radius: 10px;
  padding: 0.65rem 0.7rem;
  color: #e5e7eb;
}

.global-resume-coach--workflow .tailor-gaps-panel h2,
.global-resume-coach--workflow .tailor-gaps-panel h3 {
  color: #f3f4f6;
}

/* First-login resume upload experience */
.first-login-shell {
  width: min(100%, 62rem);
  margin: 0 auto;
  padding: clamp(1.2rem, 3vw, 2.5rem) 1rem 2.2rem;
}

.first-login-hero {
  text-align: left;
  margin-bottom: 1.35rem;
}

.first-login-title {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #f8fafc;
  font-weight: 700;
  text-wrap: balance;
}

.first-login-subtitle {
  margin: 0.95rem 0 0 0;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.5;
  color: #94a3b8;
}

.first-login-card {
  border-radius: 24px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: radial-gradient(circle at 85% 100%, rgba(30, 64, 175, 0.22), transparent 52%), rgba(10, 12, 24, 0.92);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.5);
  padding: clamp(1.4rem, 3.2vw, 2.1rem);
}

.first-login-card-kicker {
  margin: 0;
  color: #818cf8;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.first-login-card-title {
  margin: 0.55rem 0 0 0;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: #f8fafc;
  text-transform: uppercase;
}

.first-login-card-lead {
  margin: 0.7rem 0 1.4rem 0;
  color: #9ca3af;
  font-size: 1rem;
  line-height: 1.45;
}

.first-login-options {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .first-login-options {
    grid-template-columns: 1fr 1fr;
  }
}

.first-login-option {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(99, 102, 241, 0.28);
  background: rgba(15, 23, 42, 0.55);
  padding: clamp(1.1rem, 2.4vw, 1.5rem);
  display: flex;
  flex-direction: column;
  min-height: 22rem;
}

.first-login-option--upload {
  border-color: rgba(129, 140, 248, 0.55);
  background: linear-gradient(180deg, rgba(30, 41, 80, 0.85) 0%, rgba(15, 23, 42, 0.6) 100%);
}

.first-login-option-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #eef2ff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.first-login-option-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.first-login-option-icon--upload {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #eef2ff;
}

.first-login-option-icon--builder {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
}

.first-login-option-title {
  margin: 0;
  color: #f8fafc;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
}

.first-login-option-desc {
  margin: 0.45rem 0 1.1rem 0;
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.5;
}

.first-login-upload-form {
  margin: auto 0 0 0;
  display: flex;
  flex-direction: column;
}

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

.first-login-dropzone {
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.45);
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.first-login-dropzone:hover,
.first-login-dropzone--hover {
  border-color: rgba(129, 140, 248, 0.78);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.24);
}

.first-login-dropzone:focus {
  outline: 2px solid rgba(129, 140, 248, 0.68);
  outline-offset: 2px;
}

.first-login-dropzone-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 0.6rem;
  width: 100%;
}

.first-login-dropzone-icon {
  display: inline-grid;
  place-items: center;
  color: #cbd5e1;
}

.first-login-dropzone-title {
  margin: 0;
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.first-login-dropzone-desc {
  margin: 0.15rem 0 0 0;
  color: #94a3b8;
  font-size: 0.82rem;
  flex-basis: 100%;
  padding-left: 1.6rem;
}

.first-login-btn-choose-file {
  margin-top: 0.95rem;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #eef2ff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.first-login-btn-builder {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 12px;
  background: transparent;
  border: 1px solid rgba(129, 140, 248, 0.65);
  color: #e0e7ff;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.first-login-btn-builder:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(165, 180, 252, 0.85);
}

.first-login-btn-builder:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.first-login-file-name {
  margin: 0.55rem 0 0 0;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.first-login-upload-form .status,
.first-login-option--builder .status {
  margin-top: 0.6rem;
}

.first-login-shell .wf-panel--overlay {
  max-width: none;
}

.wf-feedback-status.success {
  color: #6ee7b7;
}

.wf-suggestion-card {
  border: 1px solid #35354a;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.5rem;
  background: rgba(14, 14, 20, 0.6);
}

.wf-suggestion-card strong {
  display: block;
  font-size: 0.82rem;
  color: #f3f4f6;
  margin-bottom: 0.35rem;
}

.wf-suggestion-card p {
  margin: 0 0 0.55rem 0;
  font-size: 0.78rem;
  color: #9ca3af;
  line-height: 1.45;
}

.wf-suggestion-card .wf-apply-suggestion {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid #4f46e5;
  background: rgba(79, 70, 229, 0.15);
  color: #c4b5fd;
  cursor: pointer;
  font-family: inherit;
}

.wf-suggestion-card .wf-apply-suggestion:hover {
  background: rgba(79, 70, 229, 0.28);
}

/* Mini resume document */
.w-mini {
  font-family: 'Inter', system-ui, sans-serif;
  text-align: left;
  font-size: 5px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
}

.w-mini__head {
  padding: 5px 6px 4px;
}

.w-mini__name {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.w-mini__role {
  font-size: 5.5px;
  margin-top: 2px;
}

.w-mini__loc {
  font-size: 5px;
  margin-top: 1px;
  opacity: 0.85;
}

.w-mini__body {
  padding: 4px 6px 6px;
}

.w-mini__sec {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 4px 0 2px 0;
}

.w-mini__bar {
  width: 10px;
  height: 1.5px;
  border-radius: 99px;
  display: inline-block;
  font-style: normal;
}

.w-mini__p {
  margin: 0 0 3px 0;
  font-size: 5px;
  line-height: 1.4;
}

.w-mini__job {
  margin-top: 2px;
}

.w-mini__jt {
  font-size: 6px;
  font-weight: 600;
  display: block;
}

.w-mini__co {
  font-size: 5px;
  display: block;
  opacity: 0.85;
}

.w-mini__ul {
  margin: 2px 0 0 0;
  padding-left: 7px;
  font-size: 5px;
}

.w-mini__ul li {
  margin-bottom: 1px;
}

.w-mini--clean {
  background: #fff;
  color: #0f172a;
}

.w-mini--clean .w-mini__head {
  border-bottom: 1px solid #e2e8f0;
}

.w-mini--clean .w-mini__role,
.w-mini--clean .w-mini__loc {
  color: #64748b;
}

.w-mini--clean .w-mini__bar {
  background: #0f172a;
}

.w-mini--clean .w-mini__sec span:last-child {
  color: #475569;
}

.w-mini--clean .w-mini__p,
.w-mini--clean .w-mini__ul {
  color: #334155;
}

.w-mini--modern .w-mini__head {
  background: linear-gradient(90deg, #0d9488, #06b6d4);
  color: #fff;
}

.w-mini--modern .w-mini__role,
.w-mini--modern .w-mini__loc {
  opacity: 0.9;
}

.w-mini--modern {
  background: #fff;
  color: #0f172a;
}

.w-mini--modern .w-mini__bar {
  background: #06b6d4;
}

.w-mini--modern .w-mini__sec span:last-child {
  color: #0e7490;
}

.w-mini--modern .w-mini__p,
.w-mini--modern .w-mini__ul {
  color: #334155;
}

.w-mini--professional {
  background: #f7f2ea;
  color: #2b2118;
}

.w-mini--professional .w-mini__head {
  border-bottom: 1px solid #cdbba6;
}

.w-mini--professional .w-mini__role,
.w-mini--professional .w-mini__loc {
  color: #6b594b;
}

.w-mini--professional .w-mini__bar {
  background: #a8845d;
}

.w-mini--professional .w-mini__sec span:last-child {
  color: #8a6f53;
}

.w-mini--professional .w-mini__p,
.w-mini--professional .w-mini__ul {
  color: #5e4d40;
}

@media (max-width: 900px) {
  .wf-coach {
    max-height: none;
  }
}

body.app-workflow .tailor-gaps-panel {
  background: rgba(14, 14, 20, 0.9);
  border-color: #35354a;
  color: #e5e7eb;
}

body.app-workflow .tailor-gaps-panel h2,
body.app-workflow .tailor-gaps-panel h3 {
  color: #f3f4f6;
}

body.app-workflow .tailor-gaps-panel .muted {
  color: #9ca3af;
}

body.app-workflow .tailor-gaps-panel ul {
  color: #d1d5db;
}
body.app-workflow .tailor-gaps-panel .tailor-gap-check {
  border-color: #6b7280;
  color: #6b7280;
}
body.app-workflow .tailor-gaps-panel .tailor-gap-checkbox:checked + .tailor-gap-check {
  border-color: #4ade80;
  color: #4ade80;
}

body.app-workflow .status.error {
  color: #fca5a5;
}

body.app-workflow .status.success {
  color: #6ee7b7;
}

/* Mobile layout: keep header + main flow visible, move sidebar/coach to overlays. */
@media (max-width: 767px) {
  /* Avoid overflow-x on body — it breaks position:sticky on .nav; .main already clips horizontally. */

  body.wf-mobile-overlay-open {
    overflow: hidden;
  }

  body.app-workflow .nav {
    padding: 0.5rem 0.75rem;
    gap: 0.6rem;
    flex-wrap: nowrap;
  }

  body.app-workflow .nav .brand {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.app-workflow .main {
    max-width: none;
    margin: 0;
    padding: 0;
    overflow-x: clip;
  }

  body.app-workflow .wf-mobile-nav-btn {
    display: inline-flex;
  }

  body.app-workflow .wf-shell {
    min-height: calc(100vh - 3.5rem);
  }

  body.app-workflow .wf-main {
    padding: 1rem 0.95rem 5.25rem;
  }

  body.app-workflow .wf-sidebar {
    position: fixed;
    top: var(--wf-nav-offset, 3.5rem);
    left: 0;
    bottom: 0;
    width: min(20rem, 86vw);
    max-height: none;
    border-right: 1px solid #2a2a38;
    border-bottom: none;
    transform: translateX(-105%);
    transition: transform 200ms ease;
    z-index: 3600;
  }

  body.wf-mobile-sidebar-open .wf-sidebar {
    transform: translateX(0);
  }

  body.app-workflow .wf-mobile-backdrop {
    top: var(--wf-nav-offset, 3.5rem);
    z-index: 3500;
  }

  body.app-workflow .wf-coach {
    display: none;
  }

  body.app-workflow .wf-coach-fab {
    display: inline-flex;
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 3300;
    border-radius: 999px;
    min-height: 44px;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
    border: 1px solid rgba(129, 140, 248, 0.85);
    background: linear-gradient(135deg, #4f7df3 0%, #6366f1 100%);
    box-shadow: 0 10px 30px rgba(79, 125, 243, 0.35);
  }

  body.app-workflow .wf-settings-panel--template-editor .profile-coach-restore-btn,
  body.app-workflow .wf-settings-panel--template-editor .profile-coach-collapse-btn {
    display: none !important;
  }

  body.wf-mobile-coach-open .wf-coach {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    border-radius: 16px 16px 0 0;
    max-height: min(80vh, 42rem);
    z-index: 3600;
  }

  body.wf-mobile-coach-open .wf-mobile-backdrop {
    top: var(--wf-nav-offset, 3.5rem);
    z-index: 3500;
  }

  body.app-workflow .wf-coach-close {
    display: inline-flex;
  }

  body.app-workflow .nav-user-menu[open] .nav-user-dropdown {
    position: fixed;
    top: calc(var(--wf-nav-offset, 3.5rem) + 0.35rem);
    right: 0.75rem;
    left: auto;
    max-width: calc(100vw - 1.5rem);
    background: #12121a;
    border: 1px solid #4b4b67;
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.64), 0 0 0 1px rgba(99, 102, 241, 0.16);
    z-index: 7200;
  }

  .global-resume-coach {
    top: calc(var(--wf-nav-offset, 3.5rem) + 6rem);
    right: 0;
    z-index: 3650;
  }

  .global-resume-coach__panel {
    width: min(22rem, calc(100vw - 0.75rem));
    max-height: min(76vh, 38rem);
  }
}
