/* 1stStep product chooser. Kept separate so the legacy app shell remains stable. */
.welcome-overlay {
  background: #fff;
  overflow-y: auto;
  padding: 28px;
  align-items: flex-start;
}

body:has(#welcomeOverlay.visible) #lc_text-widget { display: none !important; }

.welcome-modal.product-choice-modal {
  width: min(1380px, 100%);
  max-width: 1380px;
  min-height: calc(100dvh - 56px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #0b1024;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-choice-screen { width: 100%; padding: 4px 0 8px; text-align: center; }
.product-choice-logo { color: #0b1024; font-size: 25px; margin: 0 0 24px; letter-spacing: -1px; }
.product-choice-logo span { color: #5558ee; }
.product-choice-screen h2 { color: #0b1024; font-size: clamp(32px, 3.25vw, 48px); line-height: 1.05; letter-spacing: -2.2px; margin: 0 0 12px; font-weight: 800; }
.product-choice-subtitle { color: #4d5875; font-size: 17px; line-height: 1.55; margin: 0 0 28px; }
.product-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: 100%; text-align: left; }
/* Two visible paths: resume and Job Agent. Assisted apply is gated off. */
.product-choice-grid.is-two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.product-choice-card {
  appearance: none;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid #d8deea;
  background: #fff;
  color: #0b1024;
  text-align: left;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(29, 38, 70, 0.035);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.product-choice-card:hover,
.product-choice-card:focus-visible { transform: translateY(-3px); border-color: #7a7df5; box-shadow: 0 14px 34px rgba(72, 74, 205, 0.12); }
.product-choice-card-featured { border: 2px solid #5558ee; padding: 23px; background: linear-gradient(180deg, #fff 0%, #fcfcff 100%); box-shadow: 0 12px 32px rgba(72, 74, 205, 0.16); }
.product-choice-icon { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 13px; color: #4c50ea; background: #efefff; margin-bottom: 18px; }
.product-choice-icon svg { width: 25px; height: 25px; }
.product-choice-title { display: block; color: #0b1024; font-size: 20px; line-height: 1.22; letter-spacing: -.55px; font-weight: 800; margin-bottom: 7px; }
.product-choice-description { display: block; min-height: 68px; color: #38445f; font-size: 14px; line-height: 1.55; margin-bottom: 16px; }

.product-preview { display: block; position: relative; height: 196px; margin: auto 0 14px; border: 1px solid #dfe4ed; border-radius: 11px; background: #f8f9fc; overflow: hidden; color: #16203a; box-shadow: inset 0 1px #fff; }
.resume-product-preview { padding: 18px; display: grid; grid-template-columns: 1.45fr .72fr; gap: 12px; }
.preview-document, .preview-score { display: flex; flex-direction: column; padding: 13px; background: #fff; border: 1px solid #e1e5ed; border-radius: 7px; }
.preview-document b { font-size: 10px; margin-bottom: 16px; }
.preview-document i { height: 4px; border-radius: 4px; background: #d8dde7; margin-bottom: 11px; }
.preview-document i:nth-of-type(2) { width: 83%; }
.preview-document i:nth-of-type(3) { width: 92%; }
.preview-document i:nth-of-type(4) { width: 64%; }
.preview-score { justify-content: center; }
.preview-score small { font-size: 9px; font-style: normal; font-weight: 700; }
.preview-score strong { color: #087c45; font-size: 27px; line-height: 1.1; margin: 7px 0; }
.preview-score em { color: #087c45; font-size: 8px; font-style: normal; }

.extension-product-preview { padding: 38px 14px 14px; }
.preview-browser-bar { position: absolute; inset: 0 0 auto; height: 28px; display: flex; align-items: center; gap: 5px; padding: 0 10px; border-bottom: 1px solid #e1e5ed; background: #fff; }
.preview-browser-bar i { width: 6px; height: 6px; border-radius: 50%; background: #ff746e; }
.preview-browser-bar i:nth-child(2) { background: #f2c14e; }
.preview-browser-bar i:nth-child(3) { background: #4fc278; }
.preview-browser-bar b { margin-left: 6px; color: #75809a; font-size: 7px; font-weight: 500; }
.preview-field { display: flex; flex-direction: column; width: 58%; padding: 12px; text-align: left; }
.preview-field small { color: #69738a; font-size: 8px; }
.preview-field b { margin-top: 8px; padding: 9px; border: 1px solid #d9dfeb; border-radius: 6px; background: #fff; font-size: 9px; }
.preview-assistant { position: absolute; right: 12px; bottom: 12px; width: 46%; display: flex; flex-direction: column; padding: 12px; border-radius: 8px; background: #fff; border: 1px solid #d9dfeb; box-shadow: 0 8px 24px rgba(29, 38, 70, .13); }
.preview-assistant strong { color: #4d50ea; font-size: 9px; margin-bottom: 8px; }
.preview-assistant em { color: #087c45; font-size: 9px; font-style: normal; font-weight: 700; }
.preview-assistant small { color: #69738a; font-size: 7px; line-height: 1.45; margin-top: 6px; }

.agent-product-preview { padding: 7px 13px; background: #fff; }
.agent-status { position: relative; display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto; column-gap: 8px; padding: 9px 0; border-bottom: 1px solid #edf0f5; }
.agent-status i { grid-row: 1 / 3; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 9px; font-style: normal; margin-top: 1px; }
.agent-status b { font-size: 9px; line-height: 1.2; }
.agent-status small { color: #75809a; font-size: 7px; line-height: 1.4; }
.status-done { background: #16a365; }
.status-active { background: #575bea; box-shadow: inset 0 0 0 5px #dfe0ff; }
.status-wait { background: #e8a30b; }
.needs-you-row { display: grid; grid-template-columns: 1fr auto; padding-top: 10px; }
.needs-you-row b { font-size: 9px; }
.needs-you-row small { grid-column: 1; color: #75809a; font-size: 7px; margin-top: 3px; }
.needs-you-row em { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #4d50ea; font-size: 8px; font-style: normal; font-weight: 700; }

.product-choice-action { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 9px; background: #4f52ed; color: #fff; font-size: 15px; line-height: 1.2; font-weight: 800; text-align: center; }
.product-choice-trust { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 28px auto 8px; color: #26324c; text-align: left; }
.product-choice-trust > span { width: 28px; height: 28px; color: #087c45; flex: 0 0 auto; }
.product-choice-trust svg { width: 100%; height: 100%; }
.product-choice-trust p { margin: 0; font-size: 12px; line-height: 1.55; }
.product-choice-restore { border: 0; background: none; color: #4d50ea; font: 600 12px/1.4 'Inter', sans-serif; cursor: pointer; padding: 5px 10px; }

.welcome-resume-panel { position: relative; width: min(560px, 100%); padding: 42px 36px; border: 1px solid #dfe4ed; border-radius: 18px; color: #0b1024; background: #fff; box-shadow: 0 24px 70px rgba(29, 38, 70, .12); text-align: center; }
.welcome-resume-panel[hidden] { display: none; }
.welcome-resume-panel .welcome-logo { color: #0b1024; margin-bottom: 18px; }
.welcome-resume-panel .welcome-logo span { color: #5558ee; }
.welcome-resume-panel h2 { color: #0b1024; font-size: 28px; letter-spacing: -1px; margin: 0 0 9px; }
.welcome-resume-panel > p { color: #65708a; font-size: 14px; line-height: 1.5; margin: 0 0 24px; }
.welcome-product-back { position: absolute; left: 22px; top: 22px; border: 0; background: none; color: #4d50ea; font: 700 12px/1 'Inter', sans-serif; cursor: pointer; padding: 8px; }
.welcome-resume-choice { min-height: 92px; padding: 18px; border: 1px solid #d9deea; border-radius: 12px; background: #fff; color: #17203a; font: 800 14px/1.35 'Inter', sans-serif; cursor: pointer; }
.welcome-resume-choice span { display: block; margin-top: 5px; color: #69738a; font-size: 10px; font-weight: 500; }
.welcome-resume-choice-primary { background: #4f52ed; border-color: #4f52ed; color: #fff; }
.welcome-resume-choice-primary span { color: rgba(255,255,255,.8); }
.welcome-paste-panel { text-align: left; }
.welcome-paste-panel[hidden] { display: none; }
.welcome-paste-panel label { display: block; margin-bottom: 8px; color: #17203a; font: 800 14px/1.35 'Inter', sans-serif; }
.welcome-paste-panel textarea { width: 100%; box-sizing: border-box; resize: vertical; padding: 12px; border: 1px solid #d9deea; border-radius: 12px; color: #17203a; background: #fff; font: 13px/1.5 'Inter', sans-serif; }
.welcome-paste-panel textarea:focus { outline: 3px solid rgba(79,82,237,.18); border-color: #5558ee; }
.welcome-paste-panel p { min-height: 18px; margin: 6px 0; color: #b42318; font: 600 11px/1.4 'Inter', sans-serif; }
.welcome-paste-actions { display: flex; gap: 10px; }
.welcome-paste-actions button { min-height: 44px; flex: 1; border: 1px solid #d9deea; border-radius: 10px; background: #fff; color: #17203a; font: 800 13px/1.2 'Inter', sans-serif; cursor: pointer; }
.welcome-paste-actions #welcomePasteSaveBtn { border-color: #4f52ed; background: #4f52ed; color: #fff; }

@media (max-width: 980px) {
  .welcome-overlay { padding: 20px; }
  .welcome-modal.product-choice-modal { min-height: calc(100dvh - 40px); align-items: flex-start; }
  .product-choice-screen { max-width: 680px; padding: 24px 0; }
  .product-choice-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-choice-card { display: grid; grid-template-columns: 48px 1fr auto; grid-template-rows: auto auto; column-gap: 16px; padding: 20px; }
  .product-choice-card-featured { padding: 19px; }
  .product-choice-icon { grid-row: 1 / 3; margin: 0; }
  .product-choice-title { grid-column: 2; margin: 2px 0 4px; }
  .product-choice-description { grid-column: 2; min-height: 0; margin: 0; }
  .product-preview { display: none; }
  .product-choice-action { grid-column: 3; grid-row: 1 / 3; align-self: center; width: 155px; padding: 0 16px; }
}

@media (max-width: 620px) {
  .welcome-overlay { padding: 18px 16px; align-items: flex-start !important; background: #fff !important; }
  .welcome-modal.product-choice-modal { width: 100% !important; max-width: 100% !important; min-height: calc(100dvh - 36px); max-height: none !important; overflow: visible !important; padding: 0 !important; border-radius: 0 !important; }
  .welcome-modal.product-choice-modal::before { display: none !important; content: none !important; }
  .product-choice-screen { padding: 10px 0 20px; }
  .product-choice-logo { font-size: 21px; margin-bottom: 22px; }
  .product-choice-screen h2 { font-size: 31px !important; letter-spacing: -1.3px; line-height: 1.08; }
  .product-choice-subtitle { font-size: 14px !important; margin: 0 8px 22px !important; }
  .product-choice-card { display: flex; padding: 18px; }
  .product-choice-card-featured { padding: 17px; }
  .product-choice-icon { width: 42px; height: 42px; margin-bottom: 13px; }
  .product-choice-title { font-size: 18px; }
  .product-choice-description { min-height: 0; font-size: 13px; margin-bottom: 16px; }
  .product-choice-action { width: 100%; min-height: 46px; font-size: 14px; padding: 0 12px; }
  .product-choice-trust { align-items: flex-start; margin-top: 22px; }
  .product-choice-trust p { font-size: 10px !important; }
  .welcome-resume-panel { padding: 64px 20px 26px; border: 0; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  .product-choice-card { transition: none; }
}
.product-choice-card[hidden] { display: none !important; }
@media (max-width: 980px) {
  .product-choice-grid.is-two-up { grid-template-columns: 1fr; }
}
