/* ============================================================
   Session flow — shadcn/ui-flavored skin over the app's own components.
   Scoped to the session screens ONLY (#modePick, #jobStep, …) so the rest
   of the app's UI and all logic are untouched. One type + spacing system.
   ============================================================ */
#modePick, #jobStep {
  --su-fg: #0a0a0a;          /* foreground */
  --su-muted: #6b7280;       /* muted text */
  --su-border: #e4e4e7;      /* hairline border (zinc-200) */
  --su-brand: #163300;       /* Wrapit brand = shadcn "primary" */
  --su-brand-ink: #ffffff;
  --su-radius: 12px;
  font-family: Inter, -apple-system, system-ui, sans-serif;
}

/* container + headings */
#modePick .wpage, #jobStep .wpage { max-width: 980px; }
#modePick .wcrumb, #jobStep .wcrumb { color: var(--su-muted); font-size: 13px; }
#modePick .whl, #jobStep .whl { font-size: 26px; font-weight: 600; letter-spacing: -.02em; color: var(--su-fg); }
#modePick .wlead, #jobStep .wlead { color: var(--su-muted); font-size: 15px; line-height: 1.6; }

/* cards (shadcn: white, 1px zinc border, soft shadow, 14px radius) */
#jobStep .wcard { background: #fff; border: 1px solid var(--su-border); border-radius: 14px; box-shadow: 0 1px 2px rgba(16,24,40,.05); padding: 20px; }

/* inputs (shadcn: h-10, zinc border, focus ring) */
#jobStep .wlabel { font-size: 13px; font-weight: 500; color: var(--su-fg); margin-bottom: 7px; }
#jobStep input, #jobStep textarea { border: 1px solid var(--su-border); border-radius: 10px; font: 400 14px/1.5 Inter, system-ui, sans-serif; color: var(--su-fg); background: #fff; padding: 10px 12px; }
#jobStep input:focus, #jobStep textarea:focus { border-color: var(--su-brand); box-shadow: 0 0 0 3px rgba(22,51,0,.14); outline: none; }
#jobStep input::placeholder, #jobStep textarea::placeholder { color: #9aa0a6; }

/* dropzone */
#jobStep .wdrop { border: 1.5px dashed var(--su-border); border-radius: 12px; }
#jobStep .wdrop:hover { background: #fafafa; border-color: #d4d4d8; }

/* primary button (shadcn primary = solid; here the brand green) */
#jobStep .wbtn.lime { background: var(--su-brand); color: var(--su-brand-ink); border: 1px solid var(--su-brand); border-radius: 10px; font-weight: 500; }
#jobStep .wbtn.lime:hover { background: #0f2600; box-shadow: 0 1px 2px rgba(16,24,40,.08); }

/* subtle enter motion (Aceternity-style) — re-runs each time a screen is shown */
#modePick .mode-card, #jobStep .wcard { animation: suIn .42s cubic-bezier(.16,1,.3,1) both; }
#modePick .mode-card:nth-child(2) { animation-delay: .06s; }
#modePick .mode-card:nth-child(3) { animation-delay: .12s; }
#jobStep .wcard:nth-child(2) { animation-delay: .06s; }
@keyframes suIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #modePick .mode-card, #jobStep .wcard { animation: none; } }

/* ===== React session-flow island: isolate from the app's global element styles ===== */
#sessionFlow { color: hsl(240 10% 3.9%); line-height: normal; }
#sessionFlow h1, #sessionFlow h2, #sessionFlow h3, #sessionFlow h4, #sessionFlow p, #sessionFlow label { margin: 0; letter-spacing: normal; }
#sessionFlow button { font-family: inherit; }
#sessionFlow input, #sessionFlow textarea { font-family: inherit; }

/* ===== React test-agent markdown answer ===== */
#sessionFlow .md-answer p { margin: 0 0 8px; }
#sessionFlow .md-answer p:last-child { margin-bottom: 0; }
#sessionFlow .md-answer ul, #sessionFlow .md-answer ol { margin: 0 0 8px; padding-left: 20px; }
#sessionFlow .md-answer li { margin: 2px 0; }
#sessionFlow .md-answer strong { font-weight: 600; }
#sessionFlow .md-answer code { background: #e9ece6; border-radius: 4px; padding: 1px 5px; font: 13px/1.5 ui-monospace, Menlo, monospace; }
#sessionFlow .md-answer pre { background: #163300; color: #e7ffd6; border-radius: 10px; padding: 12px 14px; overflow: auto; margin: 0 0 8px; }
#sessionFlow .md-answer pre code { background: none; color: inherit; padding: 0; }
#sessionFlow .md-answer h1, #sessionFlow .md-answer h2, #sessionFlow .md-answer h3 { font-weight: 600; margin: 4px 0; font-size: 15px; }
#sessionFlow .md-answer img { max-width: 100%; border-radius: 8px; }
#sessionFlow .md-answer a { color: #1f5c0a; text-decoration: underline; }

/* ===== test answer — clear coloured divisions ===== */
#sessionFlow .md-answer { background: #fbfdf9; border-color: #e2e9d8 !important; padding: 6px 2px; }
#sessionFlow .md-answer > :first-child { margin-top: 0; }
#sessionFlow .md-answer h1, #sessionFlow .md-answer h2, #sessionFlow .md-answer h3 { color: #163300; font-weight: 600; font-size: 15px; margin: 14px 12px 8px; padding-bottom: 5px; border-bottom: 1px solid #e2e9d8; }
#sessionFlow .md-answer p { margin: 8px 12px; color: #2b3327; }
#sessionFlow .md-answer ul, #sessionFlow .md-answer ol { margin: 8px 12px; padding-left: 22px; }
#sessionFlow .md-answer li { margin: 4px 0; }
#sessionFlow .md-answer li::marker { color: #3b7d12; }
#sessionFlow .md-answer blockquote { margin: 8px 12px; border-left: 3px solid #9fe870; background: #f1f9e7; border-radius: 0 8px 8px 0; padding: 8px 12px; color: #2b3327; }
#sessionFlow .md-answer pre { margin: 8px 12px; background: #163300; color: #e7ffd6; border-radius: 10px; padding: 12px 14px; overflow: auto; }
#sessionFlow .md-answer :not(pre) > code { background: #eaf4df; color: #1f5c0a; border-radius: 5px; padding: 1px 6px; font: 13px/1.5 ui-monospace, Menlo, monospace; }
#sessionFlow .md-answer hr { border: none; border-top: 1px solid #e2e9d8; margin: 10px 12px; }
#sessionFlow .md-answer strong { color: #163300; font-weight: 600; }

/* ===== Screen 6 — Confidence Companion (Emotional Intelligence UX), 3D feel ===== */
#sessionFlow .confidence-hero { position: relative; border: 1px solid rgba(255,255,255,.6);
  background: linear-gradient(135deg, #ffe0ee 0%, #f3e6ff 46%, #e7f0ff 100%);
  box-shadow: none; }
#sessionFlow .confidence-hero::before { content:""; position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(420px 220px at 88% 8%, rgba(255,110,185,.28), transparent 60%),
              radial-gradient(380px 240px at 15% 112%, rgba(120,140,255,.22), transparent 60%); }
#sessionFlow .confidence-img { filter: drop-shadow(0 22px 34px rgba(90,40,90,.38)); animation: cfFloat 6s ease-in-out infinite; }
@keyframes cfFloat { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(-1deg); } }
#sessionFlow .toolkit-card { box-shadow: none; transition: box-shadow .16s ease, transform .16s ease; }
#sessionFlow .toolkit-card:hover { box-shadow: 0 14px 26px -12px rgba(16,24,40,.2); }
@media (prefers-reduced-motion: reduce) { #sessionFlow .confidence-img { animation: none; } }
@media (max-width: 680px) { #sessionFlow .confidence-img { opacity: .22; right: -36px !important; } }

/* ===== Screen 1 mode-card gradient backgrounds (reference look) ===== */
#sessionFlow .mode-card.mg-blue { background:
  radial-gradient(75% 65% at 12% 8%, #e0e7ff 0%, rgba(224,231,255,0) 60%),
  radial-gradient(72% 70% at 92% 96%, #a5b4fc 0%, rgba(165,180,252,0) 55%),
  linear-gradient(150deg, #eef2ff 0%, #c7d2fe 100%); }
#sessionFlow .mode-card.mg-green { background:
  radial-gradient(75% 65% at 12% 8%, #dcfce7 0%, rgba(220,252,231,0) 60%),
  radial-gradient(72% 70% at 92% 96%, #86efac 0%, rgba(134,239,172,0) 55%),
  linear-gradient(150deg, #ecfdf5 0%, #bbf7d0 100%); }
#sessionFlow .mode-card.mg-pink { background:
  radial-gradient(75% 65% at 12% 8%, #ffe4e6 0%, rgba(255,228,230,0) 60%),
  radial-gradient(72% 70% at 92% 96%, #fda4af 0%, rgba(253,164,175,0) 55%),
  linear-gradient(150deg, #fff1f2 0%, #fecdd3 100%); }
