/* Career profile + Resume Studio — OTT tokens, senior product density */

.rb-wrap { margin-bottom: 32px; font-family: var(--ott-font-family, Poppins, system-ui, sans-serif); }
.cr-portal-tabs { flex-wrap: wrap; }

.rb-studio-hero {
  background: var(--ott-color-canvas-inverse);
  color: var(--ott-color-text-inverse);
  border-radius: 16px;
  padding: 28px 28px 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.rb-studio-hero::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: var(--ott-color-surface-muted);
  opacity: .18;
}
.rb-kicker {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ott-color-surface-muted);
  margin: 0 0 8px;
}
.rb-studio-hero h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 700;
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
}
.rb-studio-hero p {
  margin: 0 0 18px;
  color: var(--ott-color-border-strong);
  max-width: 42rem;
  position: relative;
  z-index: 1;
}
.rb-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.rb-credits-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
}
.rb-credits-pill strong { color: var(--ott-color-surface-muted); }

.rb-progress-track {
  height: 8px;
  background: rgba(1,32,43,.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 6px;
}
.rb-progress-fill {
  height: 100%;
  background: var(--ott-color-action-primary);
  border-radius: 999px;
  transition: width var(--ott-motion-transition);
}

.rb-section-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.rb-rail-card {
  border: 1px solid var(--ott-color-border-subtle);
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  text-align: left;
  cursor: pointer;
  min-height: 88px;
  box-shadow: var(--ott-shadow-elevated);
  transition: border-color var(--ott-motion-transition), transform var(--ott-motion-transition);
}
.rb-rail-card:hover { transform: translateY(-1px); }
.rb-rail-card:focus-visible { outline: 2px solid var(--ott-color-border-focus); outline-offset: 2px; }
.rb-rail-card.active { border-color: var(--ott-color-action-primary); box-shadow: var(--ott-shadow-cta-inset); }
.rb-rail-card.done { border-color: var(--ott-color-status-success); }
.rb-rail-card span { display: block; font-size: 11px; color: var(--ott-color-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.rb-rail-card strong { display: block; margin-top: 4px; color: var(--ott-color-text-primary); font-size: 14px; }

.rb-panel {
  background: #fff;
  border: 1px solid var(--ott-color-border-subtle);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--ott-shadow-elevated);
}
.rb-panel h3 { margin: 0 0 6px; font-size: 20px; font-weight: 700; color: var(--ott-color-text-primary); }
.rb-panel .rb-lead { color: var(--ott-color-text-muted); margin: 0 0 20px; font-size: 14px; }

.rb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.rb-resume-card {
  background: #fff;
  border: 1px solid var(--ott-color-border-subtle);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--ott-shadow-elevated);
  display: flex;
  flex-direction: column;
}
.rb-resume-thumb {
  height: 120px;
  background: linear-gradient(160deg, var(--ott-color-canvas-inverse), #16343d);
  padding: 16px;
  color: #fff;
}
.rb-resume-thumb em { font-style: normal; font-size: 11px; opacity: .7; }
.rb-resume-thumb strong { display: block; margin-top: 8px; font-size: 16px; }
.rb-resume-body { padding: 16px; flex: 1; }
.rb-resume-body h3 { margin: 0 0 6px; font-size: 16px; }
.rb-meta { font-size: 13px; color: var(--ott-color-text-muted); margin-bottom: 10px; line-height: 1.45; }
.rb-card-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 16px; }
.rb-card-actions button, .rb-card-actions a {
  min-height: 40px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--ott-radius-control);
  border: 1px solid var(--ott-color-border-subtle);
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  color: var(--ott-color-text-primary);
}
.rb-card-actions button:hover, .rb-card-actions a:hover { border-color: var(--ott-color-action-primary); }
.rb-card-actions .rb-primary {
  background: var(--ott-color-action-primary);
  color: #fff;
  border-color: var(--ott-color-action-primary);
  box-shadow: var(--ott-shadow-cta-inset);
}

.rb-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.rb-tpl-grid--wide { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.rb-tpl {
  border: 2px solid var(--ott-color-border-subtle);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  min-height: 120px;
}
.rb-tpl:focus-visible { outline: 2px solid var(--ott-color-border-focus); outline-offset: 2px; }
.rb-tpl.selected { border-color: var(--ott-color-action-primary); }
.rb-tpl-mini { height: 64px; border-radius: 8px; background: #f4f7f8; margin-bottom: 8px; padding: 8px; }
.rb-tpl-mini i { display: block; height: 4px; background: var(--ott-color-canvas-inverse); margin-bottom: 4px; width: 70%; }
.rb-tpl-mini i:nth-child(2) { width: 90%; opacity: .35; }
.rb-tpl-mini i:nth-child(3) { width: 50%; opacity: .2; }
.rb-tpl small { font-size: 12px; font-weight: 600; color: var(--ott-color-text-primary); }

/* Naukri-style profile path + chip questions */
.rb-path-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.rb-path-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 8px;
  padding: 18px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  min-height: 168px;
  transition: border-color .15s, box-shadow .15s;
}
.rb-path-card:hover { border-color: #fdba74; box-shadow: 0 8px 24px rgba(15, 23, 42, .06); }
.rb-path-card.selected { border-color: var(--ott-color-action-primary, #ff693d); background: #fffaf7; }
.rb-path-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: #f1f5f9; color: #334155;
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px;
}
.rb-path-card.selected .rb-path-icon { background: var(--ott-color-action-primary, #ff693d); color: #fff; }
.rb-path-card strong { font-size: 15px; color: #0f172a; }
.rb-path-card p { margin: 0; font-size: 13px; color: #64748b; line-height: 1.45; flex: 1; }
.rb-status-hint {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-size: 13px;
  line-height: 1.45;
}
.rb-work-phase-label {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}
.rb-work-phase-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.rb-work-phase-bar .rb-work-phase-label { margin: 0; }

.rb-chip-grid {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px;
}
.rb-chip {
  display: inline-flex; align-items: center;
  padding: 10px 14px; border-radius: 999px;
  border: 1px solid #e2e8f0; background: #fff;
  font-size: 13px; font-weight: 600; color: #334155;
  cursor: pointer; min-height: 40px;
}
.rb-chip:hover { border-color: #fdba74; }
.rb-chip.selected {
  border-color: var(--ott-color-action-primary, #ff693d);
  background: rgba(255, 105, 61, .1);
  color: #9a3412;
}

/* Resume template preview cards */
.rb-tpl-card {
  position: relative;
  display: flex; flex-direction: column;
  border: 2px solid #e2e8f0; border-radius: 14px;
  background: #fff; padding: 10px; cursor: pointer; text-align: left;
  min-height: 190px;
}
.rb-tpl-card:hover { border-color: #cbd5e1; }
.rb-tpl-card.selected { border-color: var(--ott-color-action-primary, #ff693d); box-shadow: 0 0 0 1px rgba(255,105,61,.25); }
.rb-tpl-preview {
  height: 108px; border-radius: 10px; background: #f8fafc;
  border: 1px solid #e2e8f0; padding: 10px; margin-bottom: 10px;
  overflow: hidden;
}
.rb-tpl-preview-name { height: 10px; width: 55%; background: #0f172a; border-radius: 4px; margin-bottom: 6px; }
.rb-tpl-preview-role { height: 6px; width: 38%; background: #ff693d; border-radius: 4px; margin-bottom: 10px; opacity: .85; }
.rb-tpl-preview-line { height: 4px; background: #cbd5e1; border-radius: 3px; margin-bottom: 5px; width: 72%; }
.rb-tpl-preview-line.wide { width: 92%; }
.rb-tpl-preview-section { height: 5px; width: 28%; background: #0f172a; border-radius: 3px; margin: 8px 0 6px; opacity: .7; }
.rb-tpl-preview-pill { display: inline-block; height: 14px; width: 42px; background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; margin-right: 4px; }
.rb-tpl-preview-pill.short { width: 34px; }
.rb-tpl-preview--wallstreet .rb-tpl-preview-name { background: #000; }
.rb-tpl-preview--fintech .rb-tpl-preview-name { background: #0056b3; }
.rb-tpl-preview--executive .rb-tpl-preview-name { letter-spacing: .08em; width: 70%; background: #111; }
.rb-tpl-preview--wealth .rb-tpl-preview-name { background: #1a4a38; }
.rb-tpl-preview--corporate .rb-tpl-preview-name { background: #002244; }
.rb-tpl-preview--minimal .rb-tpl-preview-name { background: #888; width: 62%; }
.rb-tpl-preview--analyst .rb-tpl-preview-name { background: #000; font-family: monospace; height: 8px; }
.rb-tpl-preview--risk .rb-tpl-preview-name { background: #000; margin-left: auto; }
.rb-tpl-preview--retail .rb-tpl-preview-section { background: #004080; }
.rb-tpl-preview--retail .rb-tpl-preview-name { background: #004080; }
.rb-tpl-preview--consultant .rb-tpl-preview-name { background: #2c3e50; }
.rb-tpl-preview--consultant .rb-tpl-preview-section { background: #2c3e50; }
.rb-tpl-card-meta strong { display: block; font-size: 13px; color: #0f172a; }
.rb-tpl-card-meta span { font-size: 11px; color: #64748b; font-weight: 600; }
.rb-tpl-blurb {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
  line-height: 1.35;
  font-weight: 500;
}
.rb-tpl-card.recommended:not(.selected) {
  border-color: #fdba74;
}
.rb-tpl-card-badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 10px; font-style: normal; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em;
  background: var(--ott-color-action-primary, #ff693d); color: #fff;
  padding: 3px 8px; border-radius: 999px;
}

.rb-choice {
  display: inline-flex; margin: 0 8px 8px 0; padding: 12px 16px; border-radius: 999px;
  border: 1px solid var(--ott-color-border-subtle); background: #fff; cursor: pointer; font-weight: 600; font-size: 14px;
  min-height: 44px; align-items: center;
}
.rb-choice:hover { border-color: var(--ott-color-action-primary); }
.rb-choice.selected { border-color: var(--ott-color-action-primary); background: rgba(255,105,61,.1); color: var(--ott-color-text-primary); }
.rb-choice:focus-visible { outline: 2px solid var(--ott-color-border-focus); outline-offset: 2px; }

.rb-steps { display: flex; gap: 0; margin-bottom: 24px; }
.rb-step {
  flex: 1; padding: 12px 8px; font-size: 12px; font-weight: 600; border: 0; background: transparent;
  color: var(--ott-color-text-muted); border-bottom: 3px solid var(--ott-color-border-subtle); cursor: default;
}
.rb-step.active { color: var(--ott-color-action-primary); border-bottom-color: var(--ott-color-action-primary); }
.rb-step.done { color: var(--ott-color-status-success); border-bottom-color: var(--ott-color-status-success); }

.rb-editor {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) minmax(260px, 320px);
  gap: 16px;
  align-items: start;
}
.rb-nav { background: #fff; border-radius: 12px; padding: 8px; border: 1px solid var(--ott-color-border-subtle); }
.rb-nav button {
  display: block; width: 100%; text-align: left; padding: 10px 12px; margin-bottom: 2px;
  border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-weight: 600; font-size: 13px;
  min-height: 44px; color: var(--ott-color-text-primary);
}
.rb-nav button.active { background: rgba(255,105,61,.12); color: var(--ott-color-action-primary); }
.rb-nav button:focus-visible { outline: 2px solid var(--ott-color-border-focus); }
.rb-section { background: #fff; border-radius: 16px; padding: 20px; border: 1px solid var(--ott-color-border-subtle); }
.rb-live {
  background: #fff;
  border: 1px solid var(--ott-color-border-subtle);
  border-radius: 16px;
  padding: 16px;
  min-height: 360px;
  font-size: 12px;
  color: var(--ott-color-text-primary);
  box-shadow: var(--ott-shadow-elevated);
}
.rb-live-block { margin: 10px 0; }
.rb-live-block strong { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #64748b; margin-bottom: 4px; }
.rb-live-block p { margin: 0; font-size: 12px; line-height: 1.45; }
.rb-live-bullets {
  margin: 0; white-space: pre-wrap; font-family: inherit; font-size: 11px; line-height: 1.45;
  background: #f8fafc; border-radius: 8px; padding: 8px; border: 1px solid #e2e8f0;
}
.rb-kicker { margin: 0 0 6px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #ff693d; }

.rb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.rb-row-1 { grid-column: 1 / -1; }
.rb-check { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 14px; }
.rb-preview-box {
  border: 1px solid var(--ott-color-border-subtle); border-radius: 12px; padding: 16px; background: #fafbfb; margin: 12px 0;
}
.rb-modal {
  position: fixed; inset: 0; background: rgba(1,32,43,.55); display: flex; align-items: center; justify-content: center;
  z-index: 80; padding: 16px;
}
.rb-modal-card { background: #fff; border-radius: 16px; padding: 24px; max-width: 480px; width: 100%; box-shadow: var(--ott-shadow-elevated); }

/* AI Before | After review */
.rb-ai-modal { z-index: 90; align-items: flex-start; padding-top: 4vh; overflow-y: auto; }
.rb-ai-compare-card {
  max-width: 920px;
  max-height: 90vh;
  overflow: auto;
  padding: 0;
}
.rb-ai-compare-head {
  padding: 20px 24px 12px;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.rb-ai-compare-head h3 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 800; color: #0f172a; }
.rb-ai-compare-list { padding: 12px 20px 8px; display: flex; flex-direction: column; gap: 14px; }
.rb-ai-compare-row {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  background: #f8fafc;
}
.rb-ai-compare-row.is-changed {
  border-color: #fdba74;
  background: #fffaf7;
}
.rb-ai-compare-row h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rb-ai-changed-badge,
.rb-ai-same-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 2px 8px;
  border-radius: 999px;
}
.rb-ai-changed-badge { background: #ffedd5; color: #9a3412; }
.rb-ai-same-badge { background: #e2e8f0; color: #64748b; }
.rb-ai-compare-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.rb-ai-col {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 72px;
}
.rb-ai-col--after { border-color: #fed7aa; background: #fffbeb; }
.rb-ai-col em {
  display: block;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #94a3b8;
  margin-bottom: 6px;
}
.rb-ai-col--after em { color: #c2410c; }
.rb-ai-col pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  color: #1e293b;
  max-height: 220px;
  overflow: auto;
}
.rb-ai-compare-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 24px 20px;
  border-top: 1px solid #e2e8f0;
  position: sticky;
  bottom: 0;
  background: #fff;
}
@media (max-width: 720px) {
  .rb-ai-compare-cols { grid-template-columns: 1fr; }
}
.rb-suggest {
  display: inline-flex; margin: 0 6px 6px 0; padding: 6px 10px; border-radius: 999px;
  background: #fff7ed; border: 1px dashed var(--ott-color-action-primary); font-size: 12px; font-weight: 600; cursor: pointer;
}
.rb-score { font-size: 40px; font-weight: 800; color: var(--ott-color-action-primary); letter-spacing: -0.03em; }
.rb-match-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rb-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; align-items: center; }
.rb-gate-list { margin: 0; padding-left: 18px; color: var(--ott-color-text-primary); }
.rb-gate-list li { margin: 6px 0; }

.rb-hero-card {
  background: var(--ott-color-canvas-inverse);
  color: var(--ott-color-text-inverse);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
}
.rb-hero-card h2 { font-size: var(--ott-font-size-heading); font-weight: 700; margin: 0 0 8px; }
.rb-hero-card p { margin: 0 0 16px; color: var(--ott-color-border-strong); }
.rb-credits { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--ott-color-surface-muted); }
.rb-card { background: #fff; border: 1px solid var(--ott-color-border-subtle); border-radius: 16px; padding: 16px; }

@media (max-width: 1100px) {
  .rb-editor { grid-template-columns: 1fr; }
  .rb-live { display: none; }
}
@media (max-width: 800px) {
  .rb-section-rail, .rb-row, .rb-match-grid { grid-template-columns: 1fr; }
  .rb-nav { display: flex; overflow-x: auto; gap: 6px; }
  .rb-nav button { width: auto; white-space: nowrap; }
  .rb-steps { overflow-x: auto; }
}
.rb-wrap .cr-form-input, .rb-panel .cr-form-input, .rb-wrap textarea.cr-form-input { min-height: 44px; }
.rb-wrap textarea.cr-form-input, .rb-panel textarea.cr-form-input { min-height: 96px; }

.lp-home { margin-bottom: 28px; }
.lp-home-kicker {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  color: var(--ott-color-surface-muted, #ff693d); margin: 0 0 6px;
}
.lp-home-intro h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 700; margin: 0 0 8px; }
.lp-home-intro p { margin: 0 0 20px; color: var(--ott-color-text-primary, #01202b); max-width: 42rem; }
.lp-home-family { margin-bottom: 22px; }
.lp-home-family h3 {
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  margin: 0 0 10px; color: #64748b;
}
.lp-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.lp-home-card {
  display: flex; align-items: flex-start; gap: 12px; text-align: left;
  border: 1px solid var(--ott-color-border-subtle, #e2e8f0);
  background: #fff; border-radius: 16px; padding: 16px;
  cursor: pointer; width: 100%;
}
.lp-home-card-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--ott-color-canvas-inverse, #01202b); color: #fff;
}
.lp-home-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lp-home-card-body strong { font-size: 15px; color: #0f172a; }
.lp-home-card-body em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ott-color-surface-muted, #ff693d); }
.lp-home-card-body span { font-size: 13px; color: #64748b; }
.lp-home-stat {
  margin-left: auto; font-size: 18px; color: #0f172a;
}
.lp-home-card--gated { opacity: .78; }

/* ── Module workspace (per-product journeys) ── */
.mw-home { margin-bottom: 32px; }
.mw-home-welcome { margin-bottom: 24px; }
.mw-home-kicker {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  color: var(--ott-color-surface-muted, #ff693d); margin: 0 0 6px;
}
.mw-home-welcome h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800; margin: 0 0 8px; color: var(--ott-color-text-primary, #01202b); }
.mw-home-lead { margin: 0; max-width: 36rem; color: #64748b; font-size: 15px; line-height: 1.55; }

.mw-home-next {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; margin-bottom: 28px; border-radius: 16px;
  background: var(--ott-color-canvas-inverse, #01202b); color: #fff;
}
.mw-home-next-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ott-color-surface-muted, #ff693d); font-weight: 700; }
.mw-home-next h3 { margin: 4px 0 6px; font-size: 1.2rem; font-weight: 700; }
.mw-home-next p { margin: 0; font-size: 14px; color: rgba(255,255,255,.75); max-width: 28rem; }

.mw-home-section { margin-bottom: 28px; }
.mw-home-section--muted { padding-top: 8px; border-top: 1px solid #e2e8f0; }
.mw-home-section-title {
  font-size: 14px; font-weight: 700; margin: 0 0 14px; color: #334155;
  display: flex; align-items: center; gap: 8px;
}
.mw-home-section-title i { color: var(--ott-color-action-primary, #ff693d); }

.mw-home-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.mw-tile {
  text-align: left; border: 1px solid #e2e8f0; border-radius: 18px; padding: 18px;
  background: #fff; cursor: pointer; width: 100%; transition: border-color .2s, transform .2s;
}
.mw-tile:hover { transform: translateY(-2px); border-color: var(--ott-color-action-primary, #ff693d); }
.mw-tile-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.mw-tile-icon {
  width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff;
}
.mw-tile--learning .mw-tile-icon { background: #0e7490; }
.mw-tile--career .mw-tile-icon { background: var(--ott-color-action-primary, #ff693d); }
.mw-tile--account .mw-tile-icon { background: #334155; }
.mw-tile-stat { font-size: 22px; font-weight: 800; color: #0f172a; }
.mw-tile strong { display: block; font-size: 16px; margin-bottom: 6px; color: #0f172a; }
.mw-tile p { margin: 0 0 12px; font-size: 13px; color: #64748b; line-height: 1.45; min-height: 2.8em; }
.mw-tile-cta { font-size: 13px; font-weight: 700; color: var(--ott-color-action-primary, #ff693d); }
.mw-tile--gated { opacity: .85; }
.mw-tile--gated .mw-tile-cta { color: #64748b; }

.mw-home-util { display: flex; flex-wrap: wrap; gap: 10px; }
.mw-home-util-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  border-radius: 999px; border: 1px solid #e2e8f0; background: #f8fafc; font-weight: 600; font-size: 13px; cursor: pointer;
}
.mw-home-util-btn em { font-style: normal; font-size: 10px; text-transform: uppercase; color: #b45309; margin-left: 4px; }

.mw-shell { margin-bottom: 24px; }
.mw-shell-head {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 18px 18px 0 0;
  padding: 18px 20px 16px; border-bottom: none;
}
.mw-shell--learning .mw-shell-head { border-top: 4px solid #0e7490; }
.mw-shell--career .mw-shell-head { border-top: 4px solid var(--ott-color-action-primary, #ff693d); }
.mw-shell--account .mw-shell-head { border-top: 4px solid #475569; }
.mw-shell-back {
  border: 0; background: transparent; color: #64748b; font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; margin-bottom: 12px;
}
.mw-shell-back:hover { color: #0f172a; }
.mw-shell-title-row { display: flex; gap: 14px; align-items: flex-start; }
.mw-shell-icon {
  width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; flex-shrink: 0;
}
.mw-shell--learning .mw-shell-icon { background: #0e7490; }
.mw-shell--career .mw-shell-icon { background: var(--ott-color-action-primary, #ff693d); }
.mw-shell--account .mw-shell-icon { background: #475569; }
.mw-shell-title { margin: 0 0 4px; font-size: 1.35rem; font-weight: 800; color: #0f172a; }
.mw-shell-tagline { margin: 0; font-size: 14px; color: #64748b; line-height: 1.45; }

.mw-journey {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 4px;
}
.mw-journey-step {
  display: flex; align-items: center; gap: 8px; font-size: 12px; color: #94a3b8; font-weight: 600;
  padding-right: 12px; border-right: 1px solid #e2e8f0;
}
.mw-journey-step:last-child { border-right: 0; }
.mw-journey-dot {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cbd5e1;
  display: inline-flex; align-items: center; justify-content: center; font-size: 10px;
}
.mw-journey-step.current .mw-journey-dot { border-color: var(--ott-color-action-primary, #ff693d); background: rgba(255,105,61,.12); color: var(--ott-color-action-primary, #ff693d); }
.mw-journey-step.done .mw-journey-dot { border-color: #059669; background: #059669; color: #fff; }
.mw-journey-step.current { color: #0f172a; }
.mw-journey-step.done { color: #059669; }

.mw-shell-body {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 0 0 18px 18px;
  padding: 20px; border-top: 1px solid #e2e8f0;
}

/* Career profile — vertical focus stepper */
.mw-profile-layout { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 20px; align-items: start; }
.mw-profile-rail { display: flex; flex-direction: column; gap: 6px; }
.mw-profile-step {
  display: flex; gap: 12px; align-items: flex-start; text-align: left;
  border: 1px solid #e2e8f0; border-radius: 14px; padding: 12px 14px; background: #fff; cursor: pointer;
}
.mw-profile-step.active { border-color: var(--ott-color-action-primary, #ff693d); background: #fffaf7; }
.mw-profile-step.done { border-color: #a7f3d0; }
.mw-profile-step-icon {
  width: 36px; height: 36px; border-radius: 10px; background: #f1f5f9; color: #475569;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px;
}
.mw-profile-step.done .mw-profile-step-icon { background: #059669; color: #fff; }
.mw-profile-step.active .mw-profile-step-icon { background: var(--ott-color-action-primary, #ff693d); color: #fff; }
.mw-profile-step-text em { display: block; font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; font-weight: 700; }
.mw-profile-step-text strong { display: block; font-size: 14px; margin: 2px 0; color: #0f172a; }
.mw-profile-step-text span { font-size: 12px; color: #64748b; line-height: 1.35; }
.mw-profile-step-head { margin-bottom: 16px; }
.mw-profile-step-head h2 { margin: 0 0 6px; font-size: 1.35rem; font-weight: 800; }
.mw-profile-step-desc { margin: 0 0 12px; color: #64748b; font-size: 14px; }
.rb-panel--flat { box-shadow: none; }
.rb-credits-pill--light {
  background: #f1f5f9; border-color: #e2e8f0; color: #475569; margin-top: 8px;
}
.mw-profile-nav {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid #e2e8f0;
}
.mw-profile-nav-end { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }

.mw-resume-wizard { margin-bottom: 20px; }
.mw-resume-wizard-head h3 { margin: 0 0 6px; font-size: 1.2rem; font-weight: 800; }
.mw-resume-wizard-head p { margin: 0 0 16px; color: #64748b; font-size: 14px; }
.mw-resume-wizard-steps {
  list-style: none; margin: 0 0 16px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px;
}
.mw-resume-wizard-step {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px;
  border: 1px solid #e2e8f0; background: #fff; font-size: 12px;
}
.mw-resume-wizard-step.current { border-color: var(--ott-color-action-primary, #ff693d); background: #fffaf7; }
.mw-resume-wizard-step.done { opacity: .75; }
.mw-resume-wizard-step strong { display: block; font-size: 13px; color: #0f172a; }
.mw-resume-wizard-step em { display: block; font-style: normal; color: #64748b; margin-top: 2px; line-height: 1.35; }
.mw-resume-wizard-icon {
  width: 32px; height: 32px; border-radius: 8px; background: #f1f5f9; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mw-resume-wizard-step.current .mw-resume-wizard-icon { background: var(--ott-color-action-primary, #ff693d); color: #fff; }
.mw-resume-wizard-step.done .mw-resume-wizard-icon { background: #059669; color: #fff; }

.mw-resume-dash { margin-bottom: 20px; }
.mw-resume-dash-lead { margin: 0 0 14px; color: #64748b; font-size: 14px; max-width: 40rem; }

/* BFSI ready screen + coach */
.rb-ready .rb-lead { margin: 0 0 16px; color: #334155; font-size: 15px; line-height: 1.5; }
.rb-quality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 16px 0 8px;
}
.rb-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rb-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}
.rb-check-list li.ok { color: #047857; }
.rb-check-list li.fix { color: #b45309; }
.rb-check-list li i { margin-top: 2px; flex-shrink: 0; }
.rb-check-list .cr-portal-link-btn { margin-left: auto; flex-shrink: 0; }

.rb-coach {
  background: #fff;
  border: 1px solid var(--ott-color-border-subtle, #e2e8f0);
  border-radius: 16px;
  padding: 16px;
  min-height: 360px;
  font-size: 13px;
  color: var(--ott-color-text-primary, #0f172a);
  box-shadow: var(--ott-shadow-elevated, 0 8px 24px rgba(15, 23, 42, 0.06));
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
}
.rb-coach-score {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}
.rb-coach-score .rb-score-ring { margin: 0; flex-shrink: 0; }
.rb-coach-grade { display: block; font-size: 15px; color: #0f172a; }
.rb-coach-details {
  margin-top: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f8fafc;
}
.rb-coach-details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
  list-style: none;
}
.rb-coach-details summary::-webkit-details-marker { display: none; }
.rb-coach-details summary span { color: #94a3b8; font-weight: 600; }
.rb-coach-details[open] summary { margin-bottom: 8px; }
.rb-coach h4 {
  margin: 16px 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #64748b;
}
.rb-coach h4:first-of-type { margin-top: 8px; }

/* Quiet editor shell */
.rb-editor-shell { max-width: 960px; }
.rb-editor-shell--preview { max-width: 1180px; }
.rb-editor-shell--split { max-width: 1180px; }
.rb-editor-top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}
.rb-editor-back {
  border: 0; background: transparent; color: #64748b; font-weight: 600; cursor: pointer; padding: 8px 0;
}
.rb-editor-back:hover { color: #0f172a; }
.rb-editor-top-main { flex: 1; min-width: 160px; }
.rb-editor-role { margin: 0; font-size: 1.15rem; font-weight: 800; color: #0f172a; }
.rb-editor-top-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.rb-mode-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #f1f5f9;
  border-radius: 12px;
  margin-bottom: 16px;
}
.rb-mode-tabs button {
  border: 0; background: transparent; padding: 10px 16px; border-radius: 10px;
  font-weight: 700; font-size: 13px; color: #64748b; cursor: pointer;
}
.rb-mode-tabs button.active {
  background: #fff; color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.rb-editor--simple {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.rb-nav--pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: transparent;
  border: 0;
  padding: 0;
}
.rb-nav--pills button {
  width: auto;
  display: inline-flex;
  padding: 8px 14px;
  min-height: 40px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: 13px;
}
.rb-nav--pills button.active {
  background: rgba(255,105,61,.12);
  border-color: #fdba74;
  color: var(--ott-color-action-primary, #ff693d);
}
.rb-section-title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}
.rb-improve-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 16px;
  align-items: start;
}
.rb-improve-layout .rb-coach { position: static; max-height: none; }
.rb-improve-cta {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
}
.rb-improve-cta .rb-lead { margin: 0 0 14px; font-size: 14px; color: #475569; }
.rb-improve-cta .cr-enroll-btn,
.rb-improve-cta .cr-enroll-sec { display: block; width: 100%; text-align: center; margin-bottom: 8px; }

@media (max-width: 900px) {
  .rb-improve-layout { grid-template-columns: 1fr; }
  .rb-editor-top-actions { width: 100%; }
  .rb-editor-top-actions .cr-enroll-btn,
  .rb-editor-top-actions .cr-enroll-sec { flex: 1; text-align: center; }
}
.rb-score-ring {
  width: 72px;
  height: 72px;
  margin: 4px auto 8px;
  border-radius: 50%;
  border: 3px solid #ff693d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  background: #fff7ed;
}
.rb-metric-row {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}
.rb-metric-row .cr-form-label { margin-bottom: 2px; }

/* Resume studio — competitor-style journey & features */
.rb-studio-hero--light {
  background: linear-gradient(135deg, #fff7ed 0%, #fff 55%, #f0f9ff 100%);
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 24px 20px;
  margin-bottom: 20px;
}
.rb-studio-hero--light h2 { color: #0f172a; }
.rb-studio-hero--light p { color: #64748b; }
.rb-studio-hero--light .rb-kicker { color: #ff693d; }

.rb-studio-journey {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: flex-start;
}
.rb-studio-journey-step {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 100px;
}
.rb-studio-journey-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 4px 8px;
  width: 100%;
  text-align: center;
}
.rb-studio-journey-btn:disabled { cursor: default; opacity: .65; }
.rb-studio-journey-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
}
.rb-studio-journey-step.current .rb-studio-journey-icon {
  border-color: var(--ott-color-action-primary, #ff693d);
  background: rgba(255,105,61,.12);
  color: #ff693d;
}
.rb-studio-journey-step.done .rb-studio-journey-icon {
  border-color: #059669;
  background: #059669;
  color: #fff;
}
.rb-studio-journey-label {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  line-height: 1.2;
}
.rb-studio-journey-step.current .rb-studio-journey-label { color: #0f172a; }
.rb-studio-journey-line {
  flex: 0 0 12px;
  height: 2px;
  background: #e2e8f0;
  margin-top: -18px;
}

.rb-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.rb-feature-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
}
.rb-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,105,61,.12);
  color: #ff693d;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.rb-feature-card strong { display: block; font-size: 14px; margin-bottom: 4px; color: #0f172a; }
.rb-feature-card p { margin: 0; font-size: 12px; color: #64748b; line-height: 1.4; }

.rb-flow-panel { margin-bottom: 20px; }
.rb-flow-step-title { margin: 0 0 8px; font-size: 1.15rem; font-weight: 800; color: #0f172a; }
.rb-flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 16px;
  align-items: start;
}
.rb-flow-layout--split {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
  align-items: stretch;
}
.rb-flow-tip-inline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 16px;
  padding: 10px 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  font-size: 12px;
  color: #9a3412;
  line-height: 1.45;
}
.rb-flow-tip-inline i { margin-top: 2px; color: #ff693d; }
.rb-live-preview {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
}
.rb-live-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 8px;
  border-bottom: 1px solid #e2e8f0;
  background: #fafbfc;
}
.rb-live-preview-head .rb-kicker { margin: 0; }
.rb-live-preview-refresh {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  color: #64748b;
  cursor: pointer;
}
.rb-live-preview-refresh:hover { color: #0f172a; border-color: #cbd5e1; }
.rb-live-preview-canvas {
  flex: 1;
  min-height: 520px;
  max-height: calc(100vh - 220px);
  background: #e8edf3;
  background-image: radial-gradient(circle at 1px 1px, rgba(100, 116, 139, 0.1) 1px, transparent 0);
  background-size: 18px 18px;
  overflow: auto;
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.rb-live-preview-stage {
  position: relative;
  flex-shrink: 0;
}
.rb-live-preview-paper {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}
.rb-live-preview-frame {
  display: block;
  width: 794px;
  height: 1123px;
  border: 0;
  background: #fff;
}
.rb-live-preview-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  color: #64748b;
  font-size: 1.25rem;
  border-radius: 2px;
}
.rb-live-preview-hint {
  margin: 0;
  padding: 8px 14px;
  font-size: 11px;
  text-align: center;
  border-top: 1px solid #e2e8f0;
  background: #fafbfc;
}
.rb-progress-ring {
  position: relative;
  flex-shrink: 0;
}
.rb-progress-ring svg {
  width: 100%;
  height: 100%;
  display: block;
}
.rb-progress-ring-track {
  fill: none;
  stroke: #f1f5f9;
  stroke-width: 6;
}
.rb-progress-ring-fill {
  fill: none;
  stroke: #ff693d;
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dasharray 0.4s ease;
}
.rb-progress-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
  padding: 8px;
}
.rb-progress-ring-center strong {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}
.rb-progress-ring-center em {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #c2410c;
  font-style: normal;
  margin-top: 2px;
}
.rb-progress-ring-center span {
  font-size: 9px;
  color: #94a3b8;
  margin-top: 2px;
}
.rb-home-progress-note {
  margin-top: 6px !important;
  color: #64748b !important;
}
.rb-flow-main { min-width: 0; }
.rb-flow-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}
.rb-flow-nav-meta {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  min-width: 120px;
}
.rb-flow-aside { display: flex; flex-direction: column; gap: 12px; }
.rb-flow-tip-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  font-size: 13px;
}
.rb-flow-tip-card i { color: #ff693d; font-size: 18px; margin-bottom: 8px; display: block; }
.rb-flow-tip-card strong { display: block; margin-bottom: 4px; }
.rb-flow-tip-card p { margin: 0; color: #64748b; line-height: 1.45; }
.rb-flow-mini-preview {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 14px;
  font-size: 12px;
}
.rb-preview-step { padding: 12px 0; }
.rb-preview-step .rb-preview-success { justify-content: flex-start; }

/* —— Preview studio (document canvas + sidebar) —— */
.rb-preview-studio {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}
.rb-preview-studio.is-fullscreen {
  border-radius: 0;
  border: 0;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
}
.rb-preview-studio.is-fullscreen .rb-preview-studio-layout {
  flex: 1;
  min-height: 0;
}
.rb-preview-studio.is-fullscreen .rb-preview-viewport {
  min-height: 0;
}
.rb-preview-studio-layout {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  min-height: min(78vh, 820px);
}
.rb-preview-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(180deg, #fafbfc 0%, #f8fafc 100%);
  border-right: 1px solid #e2e8f0;
  overflow-y: auto;
}
.rb-preview-status {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}
.rb-preview-status-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.rb-preview-status-copy { min-width: 0; }
.rb-preview-status-title {
  margin: 2px 0 4px;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}
.rb-preview-score {
  text-align: center;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 12px;
  padding: 8px 10px;
  min-width: 56px;
}
.rb-preview-score-val {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #c2410c;
  line-height: 1.1;
}
.rb-preview-score-grade {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #9a3412;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.rb-preview-sidebar-section .cr-form-label {
  display: block;
  margin-bottom: 6px;
}
.rb-preview-tpl-strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}
.rb-preview-tpl-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.rb-preview-tpl-chip:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.rb-preview-tpl-chip.selected {
  border-color: #fdba74;
  background: #fff7ed;
  box-shadow: 0 0 0 1px #fdba74;
}
.rb-preview-tpl-chip:disabled { opacity: .6; cursor: wait; }
.rb-preview-tpl-thumb {
  flex-shrink: 0;
  width: 36px;
  height: 48px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  padding: 4px;
  background: #fff;
  overflow: hidden;
}
.rb-preview-tpl-thumb .rb-tpl-preview-name { height: 4px; margin-bottom: 3px; }
.rb-preview-tpl-thumb .rb-tpl-preview-line { height: 2px; margin-bottom: 2px; }
.rb-preview-tpl-name {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  line-height: 1.3;
}
.rb-preview-sidebar-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
.rb-preview-dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-decoration: none;
}
.rb-preview-dl-btn:disabled { opacity: 0.7; cursor: wait; }
.rb-pdf-export-host {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 794px;
  pointer-events: none;
  opacity: 0;
}
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-decoration: none;
}
.rb-preview-dl-hint {
  margin: 0;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
  text-align: center;
}
.rb-preview-sidebar-actions .cr-enroll-sec {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.rb-preview-home-link {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
  text-align: center;
}
.rb-preview-home-link:hover { color: #0f172a; }
.rb-preview-canvas {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #e8edf3;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(100, 116, 139, 0.12) 1px, transparent 0);
  background-size: 20px 20px;
}
.rb-preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e2e8f0;
  backdrop-filter: blur(8px);
}
.rb-preview-toolbar-group {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.rb-preview-toolbar-end { margin-left: auto; }
.rb-preview-toolbar-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #94a3b8;
  margin-right: 6px;
}
.rb-preview-zoom-btn {
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.rb-preview-zoom-btn:hover { background: #f1f5f9; color: #0f172a; }
.rb-preview-zoom-btn:focus-visible,
.rb-preview-tool-btn:focus-visible,
.rb-preview-tpl-chip:focus-visible {
  outline: 2px solid var(--ott-color-action-primary, #ff693d);
  outline-offset: 2px;
}
.rb-preview-zoom-btn.active {
  background: #fff;
  border-color: #e2e8f0;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.rb-preview-tool-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rb-preview-tool-btn:hover {
  border-color: #cbd5e1;
  color: #0f172a;
}
.rb-preview-viewport {
  flex: 1;
  overflow: auto;
  padding: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 420px;
}
.rb-preview-paper-stage {
  position: relative;
  flex-shrink: 0;
}
.rb-preview-paper {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  background: #fff;
  border-radius: 2px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 12px 40px rgba(15, 23, 42, 0.14);
}
.rb-preview-paper-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.rb-preview-skeleton {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}
.rb-preview-skeleton-page {
  width: 60%;
  height: 70%;
  border-radius: 4px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: rb-preview-shimmer 1.2s ease-in-out infinite;
}
@keyframes rb-preview-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.rb-preview-viewport-hint {
  margin: 0;
  padding: 8px 14px;
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}
.rb-preview-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid #e2e8f0;
  background: #fafbfc;
}
.rb-ready-screen { max-width: 1180px; margin: 0 auto; }
.rb-ready-extras { margin-top: 16px; }

.rb-preview-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.rb-preview-actions .rb-meta { margin: 0; flex: 1 1 200px; }
.rb-preview-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #059669;
}
.rb-preview-success i { font-size: 2rem; }
.rb-resume-summary-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.rb-score-pill {
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #c2410c;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.rb-continue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.rb-continue-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.rb-continue-card:hover {
  border-color: #fdba74;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
}
.rb-continue-card i { color: #ff693d; font-size: 18px; }
.rb-continue-card strong { font-size: 14px; color: #0f172a; }
.rb-continue-card span { font-size: 12px; color: #64748b; }

/* Fresher / experienced path badge */
.rb-path-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
}
.rb-path-badge--exp {
  color: #9a3412;
  background: #fff7ed;
  border-color: #fed7aa;
}

/* Role bullet library */
.rb-bullet-library {
  margin-top: 20px;
  padding: 14px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
}
.rb-bullet-library-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.rb-bullet-chip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.rb-bullet-chip i {
  color: #ff693d;
  margin-top: 3px;
  flex-shrink: 0;
}
.rb-bullet-chip:hover {
  border-color: #fdba74;
  box-shadow: 0 2px 8px rgba(255, 105, 61, 0.12);
}

.rb-starter-library {
  margin-top: 16px;
  padding: 14px;
  background: #f0f9ff;
  border: 1px dashed #bae6fd;
  border-radius: 12px;
}
.rb-starter-library-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.rb-starter-chip {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.rb-starter-chip:hover {
  border-color: #7dd3fc;
  box-shadow: 0 2px 8px rgba(14, 165, 233, 0.12);
}
.rb-starter-chip span { display: block; }

/* —— Mobile UX (resume builder) —— */
@media (max-width: 640px) {
  .rb-wrap { overflow-x: hidden; }
  .rb-studio-hero--light {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 14px;
  }
  .rb-studio-hero--light h2 { font-size: 1.2rem; }
  .rb-studio-hero--light p { font-size: 14px; }
  .rb-studio-journey {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    gap: 8px;
    margin: 12px -4px 0;
    padding: 0 4px 8px;
  }
  .rb-studio-journey-step {
    flex: 0 0 auto;
    min-width: 68px;
    scroll-snap-align: start;
  }
  .rb-studio-journey-label { font-size: 9px; }
  .rb-studio-journey-icon { width: 34px; height: 34px; font-size: 12px; }
  .rb-feature-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .rb-feature-card { padding: 12px; }
  .rb-feature-card strong { font-size: 13px; }
  .rb-resume-summary-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .rb-continue-grid { grid-template-columns: 1fr; }
  .rb-continue-card { min-height: 48px; }
  .rb-editor-shell,
  .rb-editor-shell--split,
  .rb-editor-shell--preview { max-width: 100%; }
  .rb-editor-top {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-bottom: 10px;
  }
  .rb-editor-back { align-self: flex-start; min-height: 44px; }
  .rb-editor-top-actions { width: 100%; margin-left: 0; }
  .rb-editor-top-actions .cr-enroll-sec { flex: 1; min-height: 44px; }
  .rb-flow-panel { padding: 14px; }
  .rb-flow-main.rb-panel { padding: 14px; }
  .rb-flow-layout--split {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .rb-flow-layout--split .rb-live-preview { order: -1; }
  .rb-live-preview-canvas {
    min-height: 240px;
    max-height: 42vh;
    padding: 10px;
  }
  .rb-flow-nav {
    position: sticky;
    bottom: 0;
    z-index: 20;
    background: #fff;
    margin: 16px -14px -14px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -6px 16px rgba(15, 23, 42, 0.06);
  }
  .rb-flow-nav-meta { display: none; }
  .rb-flow-nav .cr-enroll-btn { flex: 1; min-height: 48px; }
  .rb-flow-nav .cr-enroll-sec { min-height: 48px; }
  .rb-path-badge {
    display: flex;
    width: 100%;
    border-radius: 10px;
    justify-content: center;
    text-align: center;
  }
  .rb-bullet-chip { font-size: 12px; padding: 12px; }
  .rb-starter-chip { font-size: 12px; padding: 14px; }
  .rb-preview-studio-layout { min-height: auto; }
  .rb-preview-toolbar { padding: 8px 10px; }
  .rb-preview-zoom-btn { padding: 8px; min-height: 40px; }
  .rb-preview-sidebar { padding: 14px; }
  .rb-preview-footer {
    flex-direction: column;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .rb-preview-footer .cr-enroll-btn,
  .rb-preview-footer .cr-enroll-sec { width: 100%; min-height: 48px; }
  .rb-tpl-grid--wide { grid-template-columns: 1fr; }
  .rb-card { padding: 12px; }
  .rb-wrap .cr-form-input,
  .rb-panel .cr-form-input { font-size: 16px; }
}

@media (max-width: 1100px) {
  .rb-flow-layout { grid-template-columns: 1fr; }
  .rb-flow-layout--split { grid-template-columns: 1fr; }
  .rb-live-preview-canvas { min-height: 360px; }
  .rb-live-preview-frame { min-height: 360px; }
  .rb-studio-journey-step { min-width: 72px; }
  .rb-studio-journey-line { display: none; }
}

@media (max-width: 1100px) {
  .rb-quality-grid { grid-template-columns: 1fr; }
  .rb-coach {
    position: static;
    max-height: none;
  }
}

@media (max-width: 900px) {
  .mw-profile-layout { grid-template-columns: 1fr; }
  .mw-profile-rail { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .mw-profile-step { min-width: 200px; }
  .mw-journey { flex-direction: column; gap: 8px; }
  .mw-journey-step { border-right: 0; }
  .rb-preview-studio-layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .rb-preview-sidebar {
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
    max-height: none;
  }
  .rb-preview-tpl-strip {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-height: none;
    padding-bottom: 4px;
  }
  .rb-preview-tpl-chip { min-width: 140px; flex-shrink: 0; }
  .rb-preview-viewport { min-height: 360px; padding: 16px; }
  .rb-preview-footer .cr-enroll-btn,
  .rb-preview-footer .cr-enroll-sec { flex: 1; text-align: center; }
  .rb-editor-shell--preview { max-width: 100%; }
}
