/* 2Work unified wizard + AI field-assist — mobile-first, works at every size.
   Reuses the app's :root tokens (--blue, --navy, --ink, --muted, --line, --surface). */

.wiz-dialog {
  width: min(680px, 96vw);
  max-height: 92vh;
  padding: 0;
  border: 1px solid var(--line, #dde5f1);
  border-radius: 18px;
  background: var(--surface, #fff);
  color: var(--ink, #10182d);
  box-shadow: 0 40px 90px -30px rgba(12, 18, 41, .55);
  overflow: hidden;
}
.wiz-dialog::backdrop { background: rgba(8, 12, 28, .55); backdrop-filter: blur(3px); }

.wiz-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 20px 22px 14px;
}
.wiz-eyebrow { margin: 0 0 4px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue, #365bff); }
.wiz-head h2 { margin: 0; font-size: 20px; line-height: 1.2; letter-spacing: -.01em; }
.wiz-close { border: 0; background: transparent; font-size: 26px; line-height: 1; color: var(--muted, #66728b); cursor: pointer; padding: 0 4px; }

.wiz-progress { height: 4px; background: var(--line, #eef1f8); margin: 0 22px; border-radius: 999px; overflow: hidden; }
.wiz-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--blue, #365bff), var(--cyan, #12bad1)); transition: width .3s ease; }

.wiz-steps { display: flex; gap: 4px; list-style: none; margin: 14px 0 0; padding: 0 22px; overflow-x: auto; }
.wiz-steps li { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; color: var(--muted, #66728b); font-size: 12.5px; }
.wiz-steps li:not(:last-child)::after { content: ""; flex: 1; height: 1px; background: var(--line, #dde5f1); }
.wiz-dot { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: var(--line, #eef1f8); color: var(--muted, #66728b); }
.wiz-steps li.active .wiz-dot { background: var(--blue, #365bff); color: #fff; }
.wiz-steps li.done .wiz-dot { background: var(--green, #087d64); color: #fff; }
.wiz-steps li.active .wiz-label { color: var(--ink, #10182d); font-weight: 700; }
.wiz-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wiz-body { padding: 18px 22px 8px; overflow-y: auto; }
.wiz-help { margin: 0 0 14px; color: var(--muted, #66728b); font-size: 14px; }
.wiz-fields { display: grid; gap: 14px; }

.wiz-field { display: grid; gap: 6px; }
.wiz-fl { font-size: 13px; font-weight: 650; color: var(--ink-soft, #293550); }
.wiz-fl em { color: var(--blue, #365bff); font-style: normal; }
.wiz-field input, .wiz-field textarea, .wiz-field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong, #c9d4e7); border-radius: 11px;
  background: var(--surface, #fff); color: var(--ink, #10182d); font: inherit; transition: border-color .15s ease, box-shadow .15s ease;
}
.wiz-field input:focus, .wiz-field textarea:focus, .wiz-field select:focus {
  outline: none; border-color: var(--blue, #365bff); box-shadow: 0 0 0 3px rgba(54, 91, 255, .14);
}
.wiz-field textarea { resize: vertical; min-height: 88px; }
.wiz-fhelp { font-size: 12px; color: var(--muted, #66728b); }

.wiz-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft, #293550); line-height: 1.45; }
.wiz-check input { margin-top: 2px; flex: none; width: 16px; height: 16px; accent-color: var(--blue, #365bff); }

.wiz-choices { display: grid; gap: 12px; }
.wiz-choice { display: grid; grid-template-columns: 20px 1fr; column-gap: 12px; row-gap: 2px; align-items: start;
  border: 1.5px solid var(--line, #dde5f1); border-radius: 14px; padding: 14px 16px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.wiz-choice:hover { border-color: var(--line-strong, #c9d4e7); }
.wiz-choice input { grid-row: 1 / span 2; margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue, #365bff); }
.wiz-choice:has(input:checked) { border-color: var(--blue, #365bff); background: rgba(54, 91, 255, .05); }
.wiz-choice b { font-size: 15px; }
.wiz-choice span { color: var(--muted, #66728b); font-size: 13px; }

.wiz-note { background: var(--surface-soft, #f8faff); border: 1px solid var(--line, #dde5f1); border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.55; }
.wiz-note p { margin: 0 0 8px; } .wiz-note p:last-child { margin: 0; }

/* AI field-assist */
.ai-field { position: relative; }
.ai-field textarea { padding-bottom: 34px; }
.ai-suggest-btn {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 650;
  color: var(--blue-dark, #2344d1); background: linear-gradient(120deg, rgba(54,91,255,.12), rgba(18,186,209,.12));
  border: 1px solid rgba(54, 91, 255, .25); border-radius: 999px; padding: 5px 11px; cursor: pointer;
}
.ai-field:not(:has(textarea)) .ai-suggest-btn { top: 50%; bottom: auto; transform: translateY(-50%); }
.ai-field input { padding-right: 92px; }
.ai-suggest-btn:hover { filter: brightness(1.05); }
.ai-suggest-btn:disabled { opacity: .6; cursor: default; }

/* Sticky footer nav */
.wiz-nav { display: flex; align-items: center; gap: 12px; padding: 14px 22px 18px; border-top: 1px solid var(--line, #eef1f8);
  position: sticky; bottom: 0; background: var(--surface, #fff); }
.wiz-count { flex: 1; text-align: center; font-size: 12.5px; color: var(--muted, #66728b); font-variant-numeric: tabular-nums; }
.wiz-btn { border: 0; border-radius: 11px; padding: 11px 20px; font: inherit; font-weight: 700; cursor: pointer; transition: filter .15s ease, transform .1s ease; }
.wiz-btn.primary { background: var(--blue, #365bff); color: #fff; }
.wiz-btn.primary:hover { filter: brightness(1.05); } .wiz-btn.primary:active { transform: translateY(1px); }
.wiz-btn.primary:disabled { opacity: .6; cursor: default; }
.wiz-btn.ghost { background: transparent; color: var(--ink-soft, #293550); border: 1px solid var(--line-strong, #c9d4e7); }

/* Toast */
.wiz-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--navy, #0c1229); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 600;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 9999; max-width: 90vw; }
.wiz-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.wiz-toast.error { background: var(--red, #bd3f4f); }

/* ── Mobile ── */
@media (max-width: 600px) {
  .wiz-dialog { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; border: 0; margin: 0; }
  .wiz-head { padding: 16px 18px 12px; }
  .wiz-head h2 { font-size: 18px; }
  .wiz-progress, .wiz-steps, .wiz-body, .wiz-nav { padding-left: 16px; padding-right: 16px; }
  .wiz-steps li .wiz-label { display: none; }
  .wiz-steps li.active .wiz-label { display: inline; }
  .wiz-nav { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
  .wiz-btn { padding: 12px 18px; }
}
@media (prefers-color-scheme: dark) {
  .wiz-dialog { box-shadow: 0 40px 90px -30px rgba(0,0,0,.7); }
}

/* H5P interactive content inside a wizard step */
.wiz-h5p { width: 100%; min-height: 360px; border: 0; border-radius: 12px; background: #fff; }
.wiz-h5p-mount { display: grid; gap: 10px; }
.wiz-note code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12.5px; background: rgba(54,91,255,.1); color: var(--blue-dark, #2344d1); padding: 1px 6px; border-radius: 5px; }

/* Sign-in "create account" text link inside the wizard */
.wiz-textlink { background: none; border: 0; padding: 4px 0; color: var(--blue, #365bff); font: inherit; font-weight: 650; font-size: 13.5px; cursor: pointer; text-align: left; }
.wiz-textlink:hover { text-decoration: underline; }

/* Marketing mobile menu (hamburger) — the guest nav is otherwise hidden ≤720px */
.mk-menu-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line, #dde5f1);
  border-radius: 11px; background: var(--surface, #fff); color: var(--ink, #10182d); font-size: 20px; line-height: 1; cursor: pointer; }
@media (max-width: 720px) {
  .mk-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .mk-nav.open { flex-wrap: wrap; }
  .mk-nav.open .mk-links {
    display: flex; flex-direction: column; gap: 2px; width: 100%; order: 3; margin: 8px 0 4px; padding-top: 10px;
    border-top: 1px solid var(--line, #eef1f8);
  }
  .mk-nav.open .mk-links a { padding: 11px 4px; font-size: 15px; border-radius: 8px; }
  .mk-nav.open .mk-links a:hover { background: var(--surface-soft, #f8faff); }
  .mk-nav .mk-nav-cta { order: 2; }
}

/* Social login buttons */
.wiz-social { display: grid; gap: 10px; margin-top: 6px; }
.wiz-or { display: flex; align-items: center; gap: 12px; color: var(--muted, #66728b); font-size: 12.5px; }
.wiz-or::before, .wiz-or::after { content: ""; flex: 1; height: 1px; background: var(--line, #dde5f1); }
.wiz-social-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 16px; border: 1px solid var(--line-strong, #c9d4e7); border-radius: 11px;
  background: var(--surface, #fff); color: var(--ink, #10182d); font: inherit; font-weight: 650; font-size: 14.5px;
  cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
.wiz-social-btn:hover { background: var(--surface-soft, #f8faff); border-color: var(--blue, #365bff); }
.wiz-social-btn svg { flex: none; }
