/* ===== Wizard drawer (from Claude Design connections.html) ===== */
.wizard-overlay { display: none; position: fixed; inset: 0; z-index: 100; background: rgba(11,13,16,0.5); backdrop-filter: blur(6px); }
.wizard-overlay.open { display: block; animation: fadeIn 0.2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.wizard-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 560px; max-width: 100vw; background: var(--panel); border-left: 1.5px solid var(--brand-late); z-index: 101; transform: translateX(100%); transition: transform 0.3s ease; overflow-y: auto; display: flex; flex-direction: column; }
.wizard-overlay.open + .wizard-drawer, .wizard-drawer.open { transform: none; }

.wizard-head { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.wizard-head-left { display: flex; align-items: center; gap: 12px; }
.wizard-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: -0.2px; }
.wizard-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.wizard-close { background: transparent; border: none; color: var(--text-quiet); font-size: 24px; cursor: pointer; padding: 4px 8px; line-height: 1; }
.wizard-close:hover { color: var(--text); }

.wizard-stepper { display: flex; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--border); background: var(--panel-2); gap: 4px; }
.step { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; }
.step-num { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--panel); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; color: var(--text-quiet); z-index: 2; transition: all 0.15s; }
.step.active .step-num { border-color: var(--brand-late); background: rgba(247,148,30,0.15); color: var(--brand-late); }
.step.done .step-num { border-color: var(--brand-mate); background: var(--brand-mate); color: #000; }
.step-label { font-size: 10px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-quiet); margin-top: 6px; font-weight: 600; }
.step.active .step-label, .step.done .step-label { color: var(--text); }
.step-line { position: absolute; top: 13px; left: 50%; width: 100%; height: 1.5px; background: var(--border); z-index: 1; }
.step.done .step-line { background: var(--brand-mate); }
.step:last-child .step-line { display: none; }

.wizard-body { padding: 24px; flex: 1; }
.wizard-body h3 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: -0.3px; margin-bottom: 4px; }
.wizard-body p.desc { color: var(--text-dim); font-size: 12px; margin-bottom: 20px; }
.wizard-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: var(--panel-2); }
.wizard-footer .back { color: var(--text-dim); background: transparent; border: none; font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 500; cursor: pointer; padding: 8px 14px; }
.wizard-footer .back:hover { color: var(--text); }
.wizard-footer .next { padding: 10px 22px; border-radius: 8px; border: 1.5px solid var(--brand-late); background: rgba(247,148,30,0.08); color: var(--brand-late); font-weight: 700; font-size: 13px; cursor: pointer; font-family: 'Space Grotesk', sans-serif; transition: all 0.15s; }
.wizard-footer .next:hover { background: rgba(247,148,30,0.16); }

.wizard-chooser { display: grid; gap: 14px; }
.wizard-chooser__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.wizard-chooser__head h1 { margin: 4px 0 6px; font-size: clamp(30px, 4vw, 48px); line-height: 1; letter-spacing: 0; }
.wizard-chooser__head p:not(.eyebrow) { max-width: 620px; color: var(--text-dim); }
.wizard-chooser-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wizard-card, .wizard-choice-card { min-height: 118px; padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); color: var(--text); text-align: left; cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.15s; }
.wizard-card:hover, .wizard-choice-card:hover { border-color: var(--brand-mate); background: rgba(52,211,153,0.05); transform: translateY(-1px); }
.wizard-card-icon, .wizard-choice-card__icon { display: block; width: 28px; height: 28px; margin-bottom: 12px; font-size: 18px; line-height: 28px; }
.wizard-card-title, .wizard-choice-card strong { display: block; font-weight: 800; font-size: 15px; }
.wizard-card-sub, .wizard-choice-card small { display: block; margin-top: 4px; color: var(--text-dim); font-size: 12px; line-height: 1.35; }
.wizard-card em, .wizard-choice-card em { display: block; margin-top: 10px; color: var(--text-quiet); font-size: 11px; font-style: normal; text-transform: uppercase; letter-spacing: 0.06em; }
.recent-activity-strip { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }
.recent-activity-list { display: flex; flex-wrap: wrap; gap: 8px; }
.recent-activity-item { display: grid; gap: 3px; min-width: 220px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); color: var(--text); }
.recent-activity-item:hover { border-color: var(--brand-mate); background: rgba(52,211,153,0.05); }
.recent-activity-item strong { font-size: 12px; }
.recent-activity-item span { color: var(--text-dim); font-size: 11px; }
.wizard-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; }
.wizard-facts div { padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); }
.wizard-facts dt { color: var(--text-quiet); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.wizard-facts dd { margin: 4px 0 0; color: var(--text); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.wizard-candidate-list, .wizard-carrier-grid { display: grid; gap: 8px; margin-top: 14px; }
.wizard-candidate-list label, .wizard-carrier-grid .carrier-setup-card { display: flex; gap: 10px; align-items: start; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); color: var(--text); text-align: left; }
.wizard-candidate-list span, .wizard-carrier-grid span { display: grid; gap: 3px; }
.wizard-candidate-list em { color: var(--text-dim); font-size: 11px; font-style: normal; }
.wizard-drop-zone { display: grid; gap: 6px; padding: 18px; border: 1.5px dashed var(--brand-mate); border-radius: 8px; background: rgba(52,211,153,0.06); }
.wizard-step-copy, .wizard-step-status, .muted-copy { color: var(--text-dim); }
.wizard-packet-preview { max-height: 220px; overflow: auto; margin-top: 14px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text-dim); font-size: 11px; }

html[data-theme="light"] .wizard-card,
html[data-theme="light"] .wizard-choice-card,
html[data-theme="light"] .recent-activity-strip,
html[data-theme="light"] .wizard-drawer { box-shadow: 0 1px 3px rgba(16,24,40,0.06); }

@media (max-width: 980px) {
  .wizard-chooser-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .wizard-chooser-grid, .wizard-facts { grid-template-columns: 1fr; }
  .wizard-drawer { width: 100vw; }
}
