/* ─── Home screen (session start) ─────────────────────────────────────────── */

#home-screen {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px 40px;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--orange-dim), transparent 55%),
    var(--bg-base);
}

#app.app-chrome-solo #home-screen.visible {
  padding-bottom: 28px;
}

#home-screen.visible {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-height: 0;
  width: 100%;
}

#prospecting-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

#prospecting-view.hidden {
  display: none;
}

.home-inner {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  flex: 1;
  min-height: 0;
}

/* Steps */
.home-step {
  display: none;
  flex-direction: column;
  gap: 20px;
  animation: home-fade-in 0.28s ease;
}

.home-step--active {
  display: flex;
}

#home-step-hub.home-step--active {
  flex: 1;
  padding-bottom: 4px;
}

.home-hub-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.home-hub-bottom-extra {
  margin-top: 16px;
  padding-bottom: 12px;
}

.home-last-session {
  margin-top: 0;
  padding-top: 0;
}

.home-last-session[hidden] {
  display: none !important;
}

.home-last-session-link {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.home-last-session-link:hover {
  color: var(--orange);
  border-color: rgba(233, 83, 13, 0.35);
}

.home-step--centered {
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 360px;
  padding: 40px 0;
}

@keyframes home-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 6px 10px 6px 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-bottom: 4px;
}

.home-back:hover {
  color: var(--orange);
  background: var(--bg-card);
}

.home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.home-section-head h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0;
}

.home-section-hint {
  font-size: 11px;
  color: var(--text-muted);
}

.home-resume-banner[hidden],
.home-session-card[hidden] {
  display: none !important;
}

.home-resume-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  text-align: left;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-hover) 100%);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(233, 83, 13, 0.35);
  color: #fff;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.home-resume-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(233, 83, 13, 0.45);
}

.home-resume-banner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.home-resume-banner-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-resume-banner-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.home-resume-banner-sub {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
  line-height: 1.3;
}

.home-resume-banner-arrow {
  font-size: 20px;
  font-weight: 600;
  opacity: 0.85;
  flex-shrink: 0;
}

.home-session-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.home-session-card-head h4 {
  margin-bottom: 0;
}

.home-session-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: var(--orange-dim);
  color: var(--orange);
}

.home-shortcuts-section {
  margin: 0;
  padding: 0;
}

.home-dept-block {
  margin-top: 20px;
  padding-top: 18px;
  padding-bottom: 8px;
  border-top: 1px solid var(--border);
}

.home-dept-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-shortcut-arrow {
  font-size: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform var(--transition), color var(--transition);
}

.home-shortcut:hover .home-shortcut-arrow {
  color: var(--orange);
  transform: translateX(2px);
}

.home-shortcuts--compact .home-shortcut {
  padding: 12px;
}

/* Launch briefing */
.home-launch-hero {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0 4px;
}

.home-launch-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: var(--orange-dim);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.home-launch-kicker {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--orange);
  margin-bottom: 4px;
}

.home-launch-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 6px;
}

.home-launch-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.home-launch-coaching {
  background: var(--bg-surface);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 12px 14px;
}

.home-coaching-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.home-coaching-list li + li {
  margin-top: 6px;
}

.home-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
}

.home-card-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.home-card-foot {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
}

.home-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-filter-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
}

.home-filter-pill-k,
.home-filter-pill-v {
  display: block;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.home-filter-pill-k {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.home-filter-pill--muted {
  color: var(--text-muted);
  font-style: italic;
}

.home-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-pill {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
}

.home-pill:hover {
  border-color: var(--orange);
  color: var(--text-primary);
}

.home-pill.active {
  background: var(--orange-dim);
  border-color: var(--orange);
  color: var(--orange);
}

.home-pill:disabled,
.home-pill.is-disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}

.home-pill:disabled:hover,
.home-pill.is-disabled:hover {
  border-color: var(--border);
  color: var(--text-secondary);
}

.home-pill-row--sm {
  gap: 6px;
}

.home-pill--sm {
  padding: 6px 11px;
  font-size: 12px;
}

.home-queue-session-wrap {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-queue-session-wrap[hidden] {
  display: none !important;
}

.home-queue-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.home-queue-select {
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.home-queue-preview {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.home-queue-preview strong {
  color: var(--text-primary);
  font-weight: 600;
}

.home-queue-affiner {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.home-queue-affiner summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--orange);
  user-select: none;
  list-style: none;
}

.home-queue-affiner summary::-webkit-details-marker {
  display: none;
}

.home-queue-affiner[open] summary {
  margin-bottom: 10px;
}

.home-session-title-input,
.home-preset-name-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.home-session-title-input:focus,
.home-preset-name-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 2px var(--orange-dim);
}

.home-preset-save-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.home-preset-save-row .home-preset-name-input {
  flex: 1;
}

.home-btn-ghost--sm {
  font-size: 12px;
  padding: 8px 12px;
  white-space: nowrap;
}

.home-smart-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--orange-dim), transparent 70%);
  border: 1px solid color-mix(in srgb, var(--orange) 25%, var(--border));
  border-radius: var(--radius-lg);
  margin-bottom: 4px;
}

.home-smart-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
}

.home-smart-chip:hover {
  border-color: var(--orange);
  background: var(--bg-card);
  transform: translateY(-1px);
}

.home-smart-chip-icon {
  font-size: 14px;
}

.home-pill-row--queue {
  gap: 10px;
}

.home-pill--rich {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 8px 10px;
  text-align: left;
}

.home-queue-pill-icon {
  font-size: 15px;
  line-height: 1;
}

.home-pill-label {
  font-size: 13px;
}

.home-queue-tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: var(--orange-dim);
  color: var(--orange);
}

.home-queue-spark {
  margin: 10px 0 0;
  font-size: 13px;
  font-style: italic;
  color: var(--orange);
  line-height: 1.45;
}

.home-saved-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-saved-presets--inline {
  margin-top: 4px;
}

.home-saved-preset-wrap {
  display: inline-flex;
  align-items: center;
}

.home-saved-preset {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 7px 6px 7px 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: border-color var(--transition), background var(--transition);
}

.home-saved-preset:hover {
  border-color: var(--orange);
  background: var(--bg-surface);
}

.home-saved-preset-apply {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 0;
  margin: 0;
  font: inherit;
  line-height: inherit;
  color: var(--text-primary);
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  min-width: 0;
  appearance: none;
}

.home-saved-preset-apply:hover {
  color: var(--orange);
}

.home-saved-preset-mode,
.home-saved-preset-name {
  display: block;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.home-saved-preset-mode {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.home-saved-preset-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-saved-preset-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  font-size: 16px;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  appearance: none;
}

.home-saved-preset-del:hover {
  color: var(--red, #e55);
  background: color-mix(in srgb, var(--red, #e55) 12%, transparent);
}

.home-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 0;
  cursor: pointer;
}

.home-check input {
  accent-color: var(--orange);
  width: 16px;
  height: 16px;
}

.home-launch-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}

/* New session wizard */
.home-wizard-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.home-wizard-dots {
  display: flex;
  gap: 6px;
}

.home-wizard-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.home-wizard-dot.active {
  background: var(--orange);
}

.home-wizard-pane {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.home-wizard-pane--targeting {
  gap: 8px;
}

.home-wizard-pane--targeting.active {
  justify-content: flex-start;
}

.home-targeting-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.home-targeting-intro {
  flex: 1 1 auto;
  min-width: 0;
  flex-shrink: 0;
}

.home-targeting-save-preset {
  flex: 0 0 auto;
  min-width: 0;
  width: min(300px, 42vw);
  margin-top: 2px;
}

.home-targeting-save-preset .home-preset-save-row--inline {
  width: 100%;
  min-width: 0;
}

.home-targeting-panel {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

.home-targeting-panel-title {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.home-wizard-pane--targeting .home-wizard-hint {
  margin: 4px 0 0;
}

.home-wizard-sub--compact {
  margin-bottom: 2px;
}

.home-targeting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
}

.home-targeting-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.home-targeting-field--full {
  grid-column: 1 / -1;
}

.home-targeting-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 0;
}

.home-check--compact {
  padding: 0;
  font-size: 12px;
  gap: 8px;
}

.home-targeting-order {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.home-targeting-volume {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.home-targeting-volume.is-loading {
  color: var(--text-muted);
  font-size: 13px;
}

.home-targeting-volume-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.home-targeting-volume-count strong {
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.home-targeting-volume.is-low {
  border-color: color-mix(in srgb, var(--orange) 45%, var(--border));
  background: color-mix(in srgb, var(--orange) 6%, var(--bg-card));
}

.home-targeting-volume-alert {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.home-targeting-volume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-targeting-volume-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  cursor: pointer;
  text-decoration: underline;
}

.home-job-suggestions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.home-job-suggestions-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.home-job-suggestions-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.home-job-suggestion-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-base);
  font-size: 12px;
  color: var(--text-primary);
  cursor: pointer;
}

.home-job-suggestion-chip:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.home-job-suggestion-chip.is-active {
  border-color: var(--orange);
  background: color-mix(in srgb, var(--orange) 12%, var(--bg-base));
  color: var(--orange);
  font-weight: 600;
}

.home-job-suggestion-chip small {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

.home-queue-select--icons {
  font-size: 14px;
}

.home-wizard-pane--launch {
  gap: 6px;
}

/* Étapes 2–3 — nav fixe ; étape 3 scrollable si le récap dépasse */
#home-step-launch:has(.home-wizard-pane--targeting.active),
#home-step-launch:has(.home-wizard-pane--launch.active) {
  min-height: 0;
  overflow: hidden;
}

#home-step-launch:has(.home-wizard-pane--targeting.active) {
  gap: 8px;
}

#home-step-launch:has(.home-wizard-pane--targeting.active) .home-wizard-progress {
  margin-bottom: 2px;
}

#home-step-launch:has(.home-wizard-pane--targeting.active) .home-back {
  margin-bottom: 0;
}

#home-step-launch:has(.home-wizard-pane--targeting.active) .home-wizard-body {
  flex: 0 1 auto;
  overflow: visible;
}

.home-wizard-pane.home-wizard-pane--targeting.active {
  flex: 0 1 auto;
  overflow: visible;
  min-height: 0;
}

#home-step-launch:has(.home-wizard-pane--targeting.active) .home-wizard-nav--dock {
  padding-top: 10px;
  margin-top: auto;
}

#home-screen:has(#home-step-launch .home-wizard-pane--launch.active) {
  padding-top: 12px;
}

#home-step-launch:has(.home-wizard-pane--launch.active) {
  gap: 4px;
}

#home-step-launch:has(.home-wizard-pane--launch.active) .home-wizard-progress {
  margin-bottom: 0;
}

#home-step-launch:has(.home-wizard-pane--launch.active) .home-back {
  padding-top: 4px;
  padding-bottom: 4px;
  margin-bottom: 0;
}

#home-step-launch:has(.home-wizard-pane--launch.active) .home-wizard-body {
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.home-wizard-pane.home-wizard-pane--launch.active {
  flex: 0 0 auto;
  overflow: visible;
  min-height: auto;
}

.home-wizard-pane-body--launch {
  flex: 0 0 auto;
  overflow: visible;
  gap: 4px;
  padding-bottom: 2px;
}

.home-wizard-pane--launch .home-launch-fields--compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 16px;
  align-items: start;
}

.home-wizard-pane--launch .home-launch-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-height: 16px;
  margin-bottom: 6px;
}

.home-launch-field-meta,
.home-launch-volume-hint {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.home-wizard-pane--launch .home-launch-field {
  gap: 0;
  min-width: 0;
}

.home-wizard-pane--launch .home-launch-field .home-queue-label {
  font-size: 10px;
  margin: 0;
}

.home-wizard-pane--launch .home-session-title-input {
  width: 100%;
  padding: 6px 10px;
  font-size: 13px;
  min-height: 32px;
  box-sizing: border-box;
}

.home-wizard-pane--launch .home-pill-row--compact .home-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-launch-block-hint {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--red, #e5484d);
}

.home-wizard-nav--dock .home-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#home-step-launch:has(.home-wizard-pane--launch.active) .home-wizard-nav--dock {
  flex-shrink: 0;
  padding-top: 8px;
  padding-bottom: 0;
  margin-top: auto;
}

.home-wizard-pane--launch .home-launch-recap-heading {
  padding: 7px 0;
}

.home-wizard-pane--launch .home-recap-section {
  padding: 8px 14px 9px;
}

.home-wizard-pane--launch .home-recap-section:last-child {
  padding-bottom: 10px;
}

.home-wizard-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.home-wizard-nav--dock {
  flex-shrink: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--border);
  background: var(--bg-base);
}

#home-step-launch.home-step--active {
  flex: 1;
  min-height: 0;
  gap: 10px;
}

#home-screen:has(#home-step-launch.home-step--active) {
  padding-top: 20px;
  padding-bottom: 16px;
  overflow: hidden;
}

#home-screen:has(#home-step-launch.home-step--active) .home-inner {
  flex: 1;
  min-height: 0;
  max-height: 100%;
}

.home-wizard-pane.active {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.home-launch-fields--compact {
  gap: 8px;
}

.home-launch-goals-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.home-launch-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.home-launch-field-head .home-queue-label {
  flex: 1;
  min-width: 0;
}

.home-launch-preview {
  font-size: 11px;
  color: var(--orange);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.home-launch-preview.is-muted {
  color: var(--text-muted);
  font-weight: 500;
}

.home-launch-preview.is-loading {
  color: var(--text-muted);
  font-weight: 400;
}

.home-pill-row--compact {
  gap: 6px;
}

.home-pill-row--compact .home-pill {
  min-width: 0;
  padding: 5px 8px;
  font-size: 12px;
}

.home-launch-recap-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.home-launch-recap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--bg-surface);
}

.home-launch-recap-heading {
  margin: 0;
  padding: 10px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 0;
  background: transparent;
}

.home-wizard-favorites--step1 {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.home-targeting-volume.is-error .home-targeting-volume-count {
  color: var(--text-muted);
}

.home-wizard-favorites {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0 0;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

.home-wizard-favorites-cols {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px 12px;
  align-items: stretch;
}

.home-wizard-favorites-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.home-wizard-favorites-sep {
  width: 1px;
  background: var(--border);
  margin: 2px 0;
}

.home-wizard-favorites-action {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.home-wizard-favorites-empty {
  margin: 0;
  padding: 4px 0 2px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted);
}

.home-wizard-favorites-save-hint {
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-muted);
}

.home-wizard-favorites-col--save .home-preset-save-row--inline {
  flex: 1 1 auto;
  min-width: 0;
}

.home-preset-save-row--inline {
  display: flex;
  flex: 1 1 220px;
  gap: 6px;
  align-items: stretch;
  margin-bottom: 0;
  min-width: min(100%, 220px);
}

.home-preset-save-row--inline .home-preset-name-input--sm,
.home-preset-save-row--inline .home-btn-secondary.home-btn-secondary--sm {
  height: 32px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 13px;
  line-height: 1;
  box-sizing: border-box;
}

.home-preset-save-row--inline .home-btn-secondary.home-btn-secondary--sm {
  flex: 0 0 auto;
  min-width: 0;
  width: auto;
  padding: 0 12px;
  font-weight: 500;
}

.home-preset-name-input--sm {
  padding: 6px 10px;
  font-size: 13px;
}

.home-btn-secondary--sm {
  font-size: 12px;
  padding: 8px 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.home-saved-presets--wizard {
  gap: 6px;
}

.home-launch-recap-details {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

.home-launch-recap-details > summary {
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  list-style: none;
}

.home-launch-recap-details > summary::-webkit-details-marker {
  display: none;
}

.home-launch-recap-details[open] > summary {
  border-bottom: 1px solid var(--border);
}

.home-launch-recap-details .home-launch-recap {
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 8px;
}

.home-wizard-pane-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-launch-ready {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 16px 14px;
  background: linear-gradient(135deg, var(--orange-dim), transparent 70%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.home-launch-ready-icon {
  font-size: 32px;
  line-height: 1;
}

.home-launch-ready-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.home-launch-ready-sub {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.home-launch-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-launch-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-wizard-nav--sticky {
  display: none;
}

.home-wizard-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.home-wizard-hint {
  margin: -4px 0 12px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.home-wizard-sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.home-objective-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.home-objective-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px;
  text-align: left;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}

.home-objective-card:hover {
  border-color: var(--orange);
  transform: translateY(-1px);
}

.home-objective-icon {
  font-size: 22px;
}

.home-objective-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.home-objective-hint {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

.home-launch-hero--compact {
  margin-bottom: 4px;
}

.home-launch-hero--compact .home-launch-desc {
  display: none;
}

.home-queue-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.home-queue-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px;
  text-align: left;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.home-queue-card:hover {
  border-color: var(--orange);
  transform: translateY(-1px);
}

.home-queue-card.active {
  border-color: var(--orange);
  background: var(--orange-dim);
}

.home-queue-card-icon {
  font-size: 20px;
}

.home-queue-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
}

.home-queue-card-hint {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

.home-queue-card-tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--orange);
  margin-top: 2px;
}

.home-launch-optional {
  margin-top: 16px;
  padding: 14px;
  background: var(--bg-surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}

.home-check--optional {
  font-weight: 500;
}

.home-optional-tag {
  font-size: 11px;
  font-weight: 500;
  font-style: normal;
  color: var(--text-muted);
}

.home-wizard-nav {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.home-wizard-nav.home-wizard-nav--dock {
  margin-top: auto;
}

.home-wizard-nav .home-btn-primary {
  flex: 1;
}

.home-wizard-nav--solo .home-btn-primary {
  width: 100%;
}

.home-wizard-nav--stack {
  flex-direction: column;
}

.home-wizard-nav--stack .home-btn-primary,
.home-wizard-nav--stack .home-btn-secondary {
  width: 100%;
}

.home-wizard-alt {
  align-self: center;
  font-size: 13px;
  margin-top: 4px;
}

.home-launch-recap {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.home-recap-section {
  padding: 10px 14px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.home-recap-section:last-child {
  border-bottom: 0;
  padding-bottom: 14px;
}

.home-recap-section-title {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-muted);
}

.home-recap-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-recap-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 4px 0;
  font-size: 13px;
}

.home-recap-row--highlight {
  margin-top: 2px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  background: var(--orange-dim);
}

.home-recap-row--highlight .home-recap-label {
  color: var(--orange);
  font-weight: 600;
}

.home-recap-row--highlight .home-recap-value {
  color: var(--orange);
  font-weight: 700;
}

.home-recap-row .home-recap-label {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-secondary);
}

.home-recap-row .home-recap-value {
  text-align: right;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  word-break: break-word;
  flex: 1;
  min-width: 0;
}

.home-recap-row--muted .home-recap-value {
  color: var(--text-muted);
  font-weight: 500;
}

.home-recap-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-width: 0;
}

.home-recap-icon {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1.3;
}

.home-recap-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.home-recap-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.home-recap-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  word-break: break-word;
}

.home-recap-row .home-recap-value {
  text-align: right;
}

.home-card--flat {
  padding: 14px 16px;
}

.home-btn-secondary--block {
  width: 100%;
}

@media (max-width: 520px) {
  .home-queue-grid {
    grid-template-columns: 1fr;
  }
}

/* Resume bridge */
.home-resume-progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.home-resume-contact {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.home-resume-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--avatar-placeholder-bg);
}

.home-resume-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.home-resume-company {
  font-size: 13px;
  color: var(--text-secondary);
}

.home-resume-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.home-resume-empty {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* Ready countdown */
.home-ready-kicker {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 16px;
}

.home-ready-count {
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--orange), #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.home-ready-mission {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 400px;
}

.home-ready-objective {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
  max-width: 400px;
}

/* Session panel goal bar */
.session-goal-bar {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.session-goal-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.session-goal-bar-track {
  height: 6px;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.session-goal-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), #f59e0b);
  border-radius: var(--radius-full);
  transition: width 0.35s ease;
}

.home-hero {
  text-align: center;
  padding: 8px 0 4px;
}

.home-hero--compact {
  padding: 4px 0 0;
}

.home-hero--compact .home-title {
  margin-bottom: 0;
}

/* Global KPIs */
.home-kpis {
  margin-top: 4px;
}

.home-kpis-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.home-kpis-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0;
}

.home-kpis-meta {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
}

.home-kpis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.home-kpi-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  padding: 12px 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-height: 78px;
}

.home-kpi-card--accent .home-kpi-value {
  color: var(--orange);
}

.home-kpi-card--green .home-kpi-value {
  color: var(--green);
}

.home-kpi-value {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  min-width: 2.5ch;
}

.home-kpi-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.home-kpi-hint {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.25;
  max-width: 100%;
}

.home-kpis-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.home-greeting {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.home-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.home-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--orange) 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-subtitle {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

.home-tip {
  margin-top: 16px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-tip-icon {
  flex-shrink: 0;
  font-size: 16px;
}

/* Session snapshot */
.home-session-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.home-session-card--clickable {
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.home-session-card--clickable:hover {
  border-color: var(--orange);
  box-shadow: 0 4px 24px rgba(233, 83, 13, 0.15);
  transform: translateY(-1px);
}

.home-session-card-action {
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  text-align: center;
}

.home-session-card h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.home-stat {
  text-align: center;
  padding: 10px 6px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.home-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.home-stat-value.accent { color: var(--orange); }
.home-stat-value.green { color: var(--green); }

.home-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.2;
}

/* CTAs */
.home-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.home-util-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.home-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}

.home-link-icon {
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
}

.home-link-btn:hover {
  color: var(--orange);
}

.home-quick-section {
  margin-top: 8px;
}

.home-quick-section[hidden] {
  display: none !important;
}

.home-quick-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin: 0 0 10px;
  text-align: center;
}

.home-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.home-quick-grid--more {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 10px;
}

.home-quick-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  min-height: 92px;
  padding: 12px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.home-quick-tile:disabled {
  cursor: not-allowed;
}

.home-quick-tile:hover {
  border-color: var(--orange);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.home-quick-icon {
  font-size: 22px;
  line-height: 1;
}

.home-quick-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.25;
}

.home-quick-hint {
  font-size: 10px;
  font-weight: 400;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.35;
}

.home-more-modes,
.home-dept-details {
  margin-top: 14px;
}

.home-more-modes summary,
.home-dept-details summary {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  list-style: none;
  text-align: center;
  padding: 6px 0;
  transition: color var(--transition);
}

.home-more-modes summary::-webkit-details-marker,
.home-dept-details summary::-webkit-details-marker {
  display: none;
}

.home-more-modes summary:hover,
.home-dept-details summary:hover {
  color: var(--orange);
}

.home-dept-details .home-shortcuts-dynamic {
  margin-top: 12px;
  justify-content: center;
}

.home-step--session-open .home-actions {
  margin-top: 4px;
}

.home-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-hover) 100%);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(233, 83, 13, 0.35);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.home-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(233, 83, 13, 0.45);
}

.home-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.home-btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.home-btn-secondary {
  flex: 1;
  min-width: 140px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), background var(--transition);
}

.home-btn-secondary:hover {
  border-color: var(--orange);
  background: var(--bg-card-hover);
}

.home-btn-ghost {
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}

.home-btn-ghost:hover {
  color: var(--text-primary);
}

.home-user-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 12px;
  background: var(--orange-dim);
  border-radius: var(--radius-md);
  border: 1px dashed var(--orange);
}

.home-user-hint strong {
  color: var(--orange);
  font-weight: 600;
}

/* Shortcuts grid */
.home-shortcuts-section h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.home-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 640px) {
  .home-shortcuts {
    grid-template-columns: repeat(3, 1fr);
  }
}

.home-shortcut {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  text-align: left;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.home-shortcut:hover {
  border-color: var(--orange);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.home-shortcut-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.home-shortcut-body {
  flex: 1;
  min-width: 0;
}

.home-shortcut-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.home-shortcut-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}

.home-shortcuts-dynamic {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
  margin-bottom: 4px;
}

.home-chip {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.home-chip:hover {
  color: var(--orange);
  border-color: var(--orange);
  background: var(--orange-dim);
}

/* Session panel home link */
.session-home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 0;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  transition: color var(--transition), border-color var(--transition);
}

.session-home-btn:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.home-brand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.home-brand-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  text-align: left;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.home-brand-card:hover {
  border-color: var(--orange);
  transform: translateY(-1px);
}

.home-brand-card.active {
  border-color: var(--orange);
  background: var(--bg-card-hover);
  box-shadow: 0 0 0 1px var(--orange);
}

.home-brand-card-mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  border-radius: var(--radius-md);
}

.home-brand-card--deepidoo .home-brand-card-mark {
  background: rgba(233, 83, 13, 0.15);
  color: var(--orange);
}

.home-brand-card--kpitaine .home-brand-card-mark {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.home-brand-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.home-brand-card-body strong {
  font-size: 15px;
  color: var(--text-primary);
}

.home-brand-card-body span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
}

.home-queue-grid--types {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
}

.home-queue-affiner--compact {
  margin-top: 0;
  font-size: 12px;
}

@media (max-width: 600px) {
  #home-screen { padding: 20px 16px 32px; }
  .home-stats { grid-template-columns: repeat(3, 1fr); }
  .home-shortcuts { grid-template-columns: 1fr; }
  .home-quick-grid { grid-template-columns: repeat(2, 1fr); }
  .home-quick-grid--more { grid-template-columns: repeat(2, 1fr); }
  .home-kpis-grid { grid-template-columns: repeat(2, 1fr); }
  .home-objective-grid { grid-template-columns: 1fr; }
  .home-launch-hero { flex-direction: column; }
  .home-brand-grid { grid-template-columns: 1fr; }
  .home-queue-grid--types { grid-template-columns: 1fr; }
  .home-targeting-grid { grid-template-columns: 1fr; }
  .home-targeting-header {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .home-targeting-save-preset { width: 100%; margin-top: 0; }
  .home-wizard-favorites-cols { grid-template-columns: 1fr; }
  .home-wizard-favorites-sep { width: auto; height: 1px; margin: 2px 0; }
  .home-wizard-pane--launch .home-launch-fields--compact {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ── Aperçu file (wizard étape 3) ── */

.home-launch-preview-action {
  flex-shrink: 0;
}

.home-launch-preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  cursor: pointer;
  white-space: nowrap;
}

.home-launch-preview-btn:hover:not(:disabled) {
  text-decoration: underline;
}

.home-launch-preview-btn:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.65;
}

#dialog-queue-preview[open] {
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  max-height: min(82vh, 680px);
}

.dialog-queue-preview {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.dialog-queue-preview::backdrop {
  background: rgb(0 0 0 / 45%);
}

.queue-preview-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 20px 20px;
  min-height: 0;
}

.queue-preview-meta {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.queue-preview-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: min(56vh, 460px);
  overflow-y: auto;
  margin: 0;
  padding: 0;
}

.queue-preview-list.is-loading {
  min-height: 360px;
  align-items: center;
  justify-content: center;
}

.queue-preview-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
  border-radius: var(--radius-md);
}

.queue-preview-rank {
  flex-shrink: 0;
  width: 1.6em;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  text-align: right;
}

.queue-preview-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
}

.queue-preview-contact:hover {
  background: var(--bg-card-hover);
  border-color: var(--border);
}

.queue-preview-contact:hover .queue-preview-external {
  opacity: 1;
}

.queue-preview-item .search-result-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.queue-preview-item-body {
  flex: 1;
  min-width: 0;
}

.queue-preview-item-body .search-result-name {
  font-size: 14px;
  font-weight: 600;
}

.queue-preview-item-body .search-result-sub {
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-preview-external {
  flex-shrink: 0;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity var(--transition), color var(--transition);
}

.queue-preview-contact:hover .queue-preview-external {
  color: var(--orange);
}

.queue-preview-outcome {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.queue-preview-loading,
.queue-preview-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
}

.queue-preview-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: queue-preview-spin 0.7s linear infinite;
}

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