body .flow-nav { position:sticky; top:0; z-index:150; padding:0 24px; background:var(--bw-subtle); border-bottom:1px solid var(--bw-line); font-family:var(--font); }
body .flow-nav-inner { max-width:1400px; margin:auto; min-height:70px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
body .flow-logo { display:inline-flex; align-items:center; gap:9px; background:var(--grad-btn); -webkit-background-clip:text; background-clip:text; color:transparent; font-family:var(--font-display); font-weight:700; font-size:24px; text-decoration:none; white-space:nowrap; }
body .flow-logo img { width:32px; height:32px; object-fit:contain; display:block; flex:0 0 32px; }
body .flow-links { display:flex; align-items:center; justify-content:flex-end; flex-wrap:nowrap; gap:2px; padding:8px 0; }
body .flow-links > a { min-height:var(--bw-target-min,44px); display:flex; align-items:center; font-size:15px; font-weight:600; padding:10px 12px; text-decoration:none; color:var(--bw-muted); border-radius:999px; white-space:nowrap; }
body .flow-links > a:hover, body .flow-links > a.active { color:var(--bw-brand); background:var(--bw-tint); }
body .flow-more { position:relative; }
body .flow-more-button { min-height:var(--bw-target-min,44px); padding:10px 12px; border:0; border-radius:999px; background:transparent; color:var(--bw-muted); font:600 15px/1.3 var(--font); cursor:pointer; white-space:nowrap; }
body .flow-more-button:hover, body .flow-more.open .flow-more-button, body .flow-more-button.active { color:var(--bw-brand); background:var(--bw-tint); }
body .flow-more-menu { display:none; position:absolute; z-index:20; top:calc(100% + 9px); right:0; width:260px; padding:9px; border:1px solid var(--bw-line); border-radius:18px; background:var(--bw-paper); box-shadow:var(--bw-shadow-overlay,0 12px 32px rgba(45,40,105,.16)); }
body .flow-more.open .flow-more-menu { display:grid; }
body .flow-more-menu a { min-height:var(--bw-target-min,44px); display:flex; align-items:center; padding:9px 12px; border-radius:12px; color:var(--bw-muted); font-size:13px; font-weight:600; text-decoration:none; }
body .flow-more-menu a:hover, body .flow-more-menu a.active { color:var(--bw-brand); background:var(--bw-tint); }
body .flow-menu { min-height:var(--bw-target-min,44px); display:none; padding:9px 14px; border:1px solid var(--bw-line); border-radius:999px; color:#513fa8; background:var(--bw-paper); font:inherit; cursor:pointer; }
body .flow-theme { position:static !important; width:34px; height:34px; margin:0 6px; }
body .flow-toolbar { max-width:1200px; padding:12px 20px; margin:auto; display:flex; align-items:center; justify-content:space-between; gap:16px; }
body .flow-toolbar .p2-search-bar { width:min(100%,480px); flex:1; }
body .flow-toolbar a, body .flow-chat-links a { color:#513fa8; text-decoration:none; font-weight:600; }
body .flow-next { padding:22px; margin:20px 0; background:var(--bw-subtle); border:1px solid var(--bw-line); border-radius:12px; display:flex; align-items:center; justify-content:space-between; gap:20px; text-align:left; }
body .flow-next h2 { font-size:20px; line-height:1.35; margin:6px 0; color:var(--bw-ink); }
body .flow-next p { color:var(--bw-muted); font-size:14px; line-height:1.6; margin:0; }
body .flow-kicker { font-size:12px; font-weight:700; color:var(--bw-brand); }
body .flow-actions { display:flex; gap:8px; flex-wrap:wrap; }
body .flow-actions a { display:inline-block; border:1px solid var(--bw-line); border-radius:var(--bw-radius-pill); padding:10px 14px; background:var(--bw-paper); color:var(--bw-brand-text); text-decoration:none; font-size:14px; font-weight:650; }
body .flow-actions a:first-child { background:var(--bw-brand); color:var(--bw-on-brand); border-color:var(--bw-brand); }
body .flow-resume { max-width:1200px; margin:auto; padding:0 20px; }
body .flow-waybi-link { border:1px solid var(--bw-line); }
body .flow-journey { margin:24px 0; padding:24px; background:var(--bw-paper); border:1px solid var(--bw-line); border-radius:18px; box-shadow:0 14px 36px rgba(43,38,100,.08); text-align:left; }
body .flow-journey-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:18px; }
body .flow-journey-heading h2 { margin:4px 0; color:var(--bw-ink); font-size:24px; }
body .flow-journey-heading p { margin:0; color:var(--bw-muted); font-size:14px; }
body .flow-continue { padding:11px 15px; border-radius:10px; background:var(--bw-brand); color:var(--bw-on-brand); text-decoration:none; font-weight:700; white-space:nowrap; }
body .flow-journey-steps { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; padding:0; margin:0; list-style:none; }
body .flow-journey-steps a { min-height:126px; display:flex; flex-direction:column; gap:8px; padding:15px; border:1px solid var(--bw-line); border-radius:13px; color:var(--bw-ink); text-decoration:none; background:var(--bw-subtle); }
body .flow-journey-steps li.is-complete a { border-color:rgba(16,185,129,.35); background:rgba(236,253,245,.8); }
body .flow-journey-steps span { width:28px; height:28px; display:grid; place-items:center; border-radius:50%; background:var(--bw-brand); color:#fff; font-size:13px; font-weight:800; }
body .flow-journey-steps li.is-complete span { background:#059669; }
body .flow-journey-steps strong { font-size:14px; }
body .flow-journey-steps small { color:var(--bw-muted); line-height:1.45; }
body .flow-reset { margin-top:16px; border:0; padding:8px 0; background:none; color:var(--bw-muted); text-decoration:underline; cursor:pointer; font:inherit; font-size:13px; }
body .flow-chat-links { display:flex; flex-wrap:wrap; gap:6px; padding:10px 14px; border-top:1px solid var(--bw-line); }
body .flow-chat-links a { border:1px solid var(--bw-line); padding:6px 8px; border-radius:6px; font-size:12px; background:var(--bw-paper); }
body .flow-status { padding:12px 0; font-size:14px; line-height:1.5; color:var(--bw-muted); }
body .flow-status button { background:var(--bw-paper); border:1px solid var(--bw-line); color:var(--bw-brand); padding:7px 12px; border-radius:6px; margin-left:8px; cursor:pointer; }
body .flow-nav a:focus-visible, body .flow-nav button:focus-visible, body .flow-actions a:focus-visible { outline:2px solid var(--bw-brand); outline-offset:3px; }
body .flow-footer { width:100%; box-sizing:border-box; margin-top:48px; padding:36px 24px 22px; border-top:1px solid rgba(107,96,255,.14); background:linear-gradient(145deg,rgba(255,255,255,.78),rgba(239,241,255,.7)); color:var(--bw-muted); font-family:var(--font); }
body .flow-footer-inner { width:min(100%,var(--bw-container-wide,1400px)); margin:auto; display:grid; grid-template-columns:minmax(250px,1.2fr) minmax(300px,1fr) minmax(180px,.7fr); gap:28px; align-items:start; }
body .flow-footer-brand a { display:inline-flex; align-items:center; gap:10px; color:var(--bw-ink); text-decoration:none; font-family:var(--font-display); font-size:18px; }
body .flow-footer-brand img { width:34px; height:34px; object-fit:contain; }
body .flow-footer-brand p, body .flow-footer-meta p { margin:8px 0 0; font-size:12px; line-height:1.65; }
body .flow-footer nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 12px; }
body .flow-footer nav a, body .flow-footer-meta a { min-height:var(--bw-target-min,44px); display:flex; align-items:center; color:#4f3aa3; text-decoration:none; font-size:12px; font-weight:650; overflow-wrap:anywhere; }
body .flow-footer nav a:hover, body .flow-footer-meta a:hover { color:var(--bw-brand); text-decoration:underline; }
body .flow-footer-meta { display:grid; }
body .flow-footer-note { width:min(100%,var(--bw-container-wide,1400px)); margin:22px auto 0; padding-top:16px; border-top:1px solid rgba(107,96,255,.1); font-size:11px; line-height:1.6; }
body .profile-view-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 20px; padding:6px; border:1px solid rgba(107,96,255,.13); border-radius:var(--bw-radius-pill,999px); background:rgba(255,255,255,.58); box-shadow:var(--bw-shadow-surface); }
body .profile-view-tabs a { min-height:var(--bw-target-min,44px); display:inline-flex; align-items:center; justify-content:center; flex:1 1 210px; padding:9px 16px; border-radius:var(--bw-radius-pill,999px); color:var(--bw-muted); font-size:14px; font-weight:700; text-decoration:none; }
body .profile-view-tabs a.active { color:var(--bw-brand-text); background:var(--bw-paper); box-shadow:0 6px 18px rgba(54,48,130,.1); }
body [data-profile-view][hidden] { display:none !important; }
:root[data-theme="dark"] body .flow-footer { background:linear-gradient(145deg,rgba(34,32,68,.94),rgba(27,24,52,.92)); }
:root[data-theme="dark"] body .flow-footer :is(nav a,.flow-footer-meta a) { color:#c9bcff; }
@media(max-width:1180px) {
  body .flow-menu { display:block; }
  body .flow-nav-inner { position:relative; }
  body .flow-links { display:none; position:absolute; left:-24px; right:-24px; top:100%; padding:12px 24px; background:var(--bw-paper); border-bottom:1px solid var(--bw-line); max-height:75vh; overflow:auto; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:4px; box-shadow:0 12px 28px rgba(99,102,241,.14); }
  body .flow-links.open { display:flex; }
  body .flow-links > a { width:100%; }
  body .flow-more { width:100%; }
  body .flow-more-button { width:100%; display:flex; justify-content:space-between; }
  body .flow-more-menu { position:static; width:auto; margin:4px 0 8px; box-shadow:none; background:var(--bw-subtle); }
}
@media(max-width:900px) { body .flow-journey-steps { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:800px) { body .flow-footer-inner { grid-template-columns:minmax(0,1fr); gap:20px; } body .flow-footer nav { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) {
  body .flow-next { flex-direction:column; align-items:flex-start; padding:18px; }
  body .flow-logo { font-size:18px; gap:6px; }
  body .flow-logo img { width:26px; height:26px; flex-basis:26px; }
  body .flow-toolbar { flex-direction:column; align-items:stretch; }
  body .flow-toolbar .p2-search-bar { width:100%; }
  body .flow-toolbar a { font-size:14px; }
  body .flow-journey-heading { align-items:flex-start; flex-direction:column; }
  body .flow-continue { white-space:normal; }
  body .flow-journey-steps { grid-template-columns:1fr; }
  body .flow-journey-steps a { min-height:0; }
  body .flow-footer { padding:28px 18px 18px; }
  body .flow-footer nav { grid-template-columns:minmax(0,1fr); }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto !important; } }

/* Premium navigation and journey surfaces. */
body .flow-nav { background:rgba(250,250,255,.68); border-bottom-color:rgba(107,96,255,.12); box-shadow:0 1px 0 rgba(255,255,255,.85),0 8px 30px rgba(45,40,105,.06); backdrop-filter:blur(22px) saturate(155%); -webkit-backdrop-filter:blur(22px) saturate(155%); }
body .flow-logo { letter-spacing:-.025em; }
body .flow-logo img { filter:drop-shadow(0 5px 9px rgba(107,96,255,.2)); }
body .flow-links > a { transition:color .18s ease,background .18s ease,transform .18s ease; }
body .flow-links > a:hover { transform:translateY(-1px); }
body .flow-links > a.active { box-shadow:inset 0 0 0 1px rgba(107,96,255,.08); }
body .flow-waybi-link { background:rgba(255,255,255,.46); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
body .flow-journey { border-color:rgba(107,96,255,.12); background:linear-gradient(145deg,rgba(255,255,255,.76),rgba(241,241,255,.62)); box-shadow:0 2px 4px rgba(39,35,92,.04),0 22px 55px rgba(54,48,130,.10); backdrop-filter:blur(22px) saturate(145%); -webkit-backdrop-filter:blur(22px) saturate(145%); }
body .flow-journey-steps a { position:relative; overflow:hidden; border-color:rgba(107,96,255,.11); background:linear-gradient(145deg,rgba(250,250,255,.68),rgba(239,239,255,.56)); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
body .flow-journey-steps a::after { content:""; position:absolute; width:80px; height:80px; right:-35px; bottom:-42px; border-radius:50%; background:rgba(107,96,255,.055); }
body .flow-journey-steps a:hover { transform:translateY(-3px); border-color:rgba(107,96,255,.28); box-shadow:0 15px 32px rgba(54,48,130,.10); }
body .flow-journey-steps span { box-shadow:0 7px 16px rgba(107,96,255,.24),inset 0 1px rgba(255,255,255,.3); }
body .flow-next { border-color:rgba(107,96,255,.13); box-shadow:0 14px 38px rgba(54,48,130,.08); }
@media(max-width:1180px) { body .flow-links { background:rgba(255,255,255,.84); backdrop-filter:blur(22px); border-bottom-color:rgba(107,96,255,.12); } }
/* Shared journey controls: compact on phones and usable without animation. */
.flow-hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin:24px 0; align-items:center; }
.flow-hero-actions a, .flow-stepbar a, .flow-profile-details button { min-height:44px; display:inline-flex; align-items:center; padding:10px 16px; border-radius:14px; }
.flow-primary { background:#5840cb; color:#fff!important; text-decoration:none; font-weight:800; box-shadow:0 8px 22px #5840cb28; }
.flow-stepbar { max-width:1280px; margin:16px auto; padding:12px 20px; display:flex; flex-wrap:wrap; align-items:center; gap:12px; background:rgba(255,255,255,.78); border:1px solid #d9d5f2; border-radius:20px; color:#30265b; }
.flow-stepbar span { font-weight:700; flex:1 1 220px; }
.flow-stepbar progress { width:110px; height:8px; accent-color:#5840cb; }
.flow-stepbar a { color:#4b359f; font-weight:700; }
.flow-profile-details { padding:24px; background:rgba(255,255,255,.8); border:1px solid #d9d5f2; border-radius:24px; margin:20px 0; color:#30265b; }
.flow-profile-details h1 { font-size:clamp(1.5rem,3vw,2.2rem); }
.flow-profile-details h2 { font-size:1.15rem; margin-bottom:10px; }
.flow-profile-details p { line-height:1.65; }
.flow-profile-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr)); gap:16px; margin:24px 0; }
.flow-profile-grid article { padding:20px; background:#ffffffa6; border:1px solid #ded9ee; border-radius:18px; min-width:0; overflow-wrap:anywhere; }
.flow-profile-details ul { padding-left:20px; }
.flow-profile-details li { margin:10px 0; }
.flow-profile-details button { background:#eee9ff; border:1px solid #c8bdf0; color:#35206f; cursor:pointer; font:inherit; }
.flow-profile-details input:not([type="checkbox"]) { min-width:0; flex:1; padding:12px; border:1px solid #b8afd2; border-radius:12px; font:inherit; }
#journeyTasks label { display:inline-flex; align-items:center; min-height:44px; gap:10px; overflow-wrap:anywhere; }
#journeyTasks input { width:20px; height:20px; accent-color:#5840cb; }
.flow-storage-notice { position:relative; z-index:1001; margin:0; padding:12px 20px; color:#6b3400; background:#fff0cd; }
.flow-benefits { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; max-width:1200px; margin:30px auto; padding:0 20px; }
.flow-benefits article { padding:20px; border:1px solid #d9d5f2; border-radius:20px; background:#ffffffb3; }
.flow-benefits h2 { font-size:1.1rem; color:#30265b; }
.flow-benefits p { color:#514766; line-height:1.6; }
:where(a,button,input,select,textarea,summary):focus-visible { outline:3px solid #6144d8; outline-offset:4px; }
@media(max-width:600px) {
  .flow-stepbar { margin:12px; padding:10px; gap:4px; font-size:.85rem; }
  .flow-stepbar span { flex-basis:65%; }
  .flow-stepbar progress { width:60px; }
  .flow-stepbar a { padding:8px; }
  .flow-profile-details { padding:16px; }
  .flow-benefits { grid-template-columns:1fr; }
  .flow-journey-steps { grid-template-columns:1fr!important; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto!important; }
  *, *::before, *::after { animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; scroll-behavior:auto!important; }
}
