:root {
  --bg:#050608;
  --surface:rgba(19,19,21,.82);
  --surface-strong:rgba(18,18,20,.96);
  --panel:rgba(255,255,255,.035);
  --panel-2:rgba(255,255,255,.055);
  --line:rgba(255,255,255,.13);
  --line-soft:rgba(255,255,255,.08);
  --line-strong:rgba(255,255,255,.18);
  --text:#f7f7f8;
  --muted:#a7a7ad;
  --soft:#77787d;
  --blue:#56aaff;
  --purple:#8b5cf6;
  --accent:#6366f1;
  --accent-2:#818cf8;
  --good:#5ee0ae;
  --warn:#f8cd63;
  --bad:#fb7185;
  --max:1760px;
}
*{box-sizing:border-box}
html{min-height:100%;scroll-behavior:smooth;background:var(--bg)}
body{
  margin:0;min-height:100vh;color:var(--text);
  background:
    radial-gradient(circle at 50% 20%,rgba(61,72,106,.13),transparent 35rem),
    radial-gradient(circle at 78% 76%,rgba(79,70,229,.085),transparent 32rem),
    #050608;
  font-family:"Product Sans","Google Sans","Inter","SF Pro Display",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
}
body::before{
  content:"";position:fixed;inset:0;pointer-events:none;opacity:.10;
  background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:64px 64px;mask-image:linear-gradient(to bottom,transparent 5%,#000 30%,transparent 92%);
}
a{color:inherit;text-decoration:none}
button,input,select{font:inherit}
button{color:inherit}
.page{width:min(calc(100% - 32px),var(--max));margin:0 auto;padding:20px 0 72px;position:relative;z-index:1}

/* Setup intro */
.setup-hero{text-align:center;padding:clamp(64px,8vw,118px) 0 46px}
.eyebrow{display:inline-flex;align-items:center;gap:8px;padding:7px 11px;border-radius:999px;color:#d6d5db;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.035);font-size:13px;font-weight:650;letter-spacing:.015em;margin-bottom:24px}
.eyebrow-dot{width:7px;height:7px;border-radius:99px;background:linear-gradient(135deg,var(--blue),#9d4edd);box-shadow:0 0 18px rgba(86,170,255,.45)}
.setup-hero h1{margin:0 auto;max-width:1050px;font-size:clamp(52px,5.4vw,94px);line-height:.96;letter-spacing:-.058em;font-weight:700}
.setup-hero>p{width:min(900px,92%);margin:26px auto 0;color:var(--muted);font-size:clamp(17px,1.35vw,24px);line-height:1.5;letter-spacing:-.015em}
.setup-meta{margin:24px auto 0;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;color:#797a80;font-size:13px}
.meta-dot{width:4px;height:4px;border-radius:50%;background:#62636a}

/* Main setup glass */
.setup-frame{width:min(1280px,100%);margin:12px auto 0;border:1px solid var(--line);border-radius:34px;background:linear-gradient(180deg,rgba(23,23,26,.86),rgba(13,13,16,.88));box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 35px 110px rgba(0,0,0,.34);overflow:hidden;backdrop-filter:blur(20px) saturate(1.14);-webkit-backdrop-filter:blur(20px) saturate(1.14)}
.setup-toolbar{min-height:78px;padding:16px 22px;border-bottom:1px solid var(--line-soft);display:flex;align-items:center;justify-content:space-between;gap:16px;background:rgba(255,255,255,.018)}
.setup-toolbar>div{display:grid;gap:4px}
.toolbar-label{font-size:10px;line-height:1;font-weight:800;letter-spacing:.13em;color:#818cf8}
.setup-toolbar strong{font-size:15px;letter-spacing:-.015em}
.shell{display:grid;grid-template-columns:350px minmax(0,1fr);min-height:720px}
.sidebar{border-right:1px solid var(--line-soft);padding:38px 28px 28px;display:flex;flex-direction:column;background:rgba(255,255,255,.012)}
.sidebar-copy{padding:0 4px}
.sidebar-kicker{display:inline-block;color:#818cf8;font-size:10px;font-weight:800;letter-spacing:.14em;margin-bottom:12px}
.sidebar h2{font-size:27px;line-height:1.06;letter-spacing:-.045em;margin:0 0 13px;max-width:280px}
.sidebar p{color:var(--muted);line-height:1.6;font-size:13px;margin:0;max-width:285px}
.steps{margin-top:32px;display:grid;gap:6px}
.step-link{display:grid;grid-template-columns:36px 1fr;align-items:center;gap:11px;padding:10px 11px;border-radius:15px;color:#77787d;transition:.18s ease}
.step-link .dot{width:32px;height:32px;border-radius:11px;border:1px solid var(--line-soft);display:grid;place-items:center;font-size:11px;font-weight:750;background:rgba(255,255,255,.018)}
.step-copy{display:grid;gap:2px}
.step-link b{font-size:13px;font-weight:650}
.step-link span:not(.dot){font-size:10px;line-height:1.35}
.step-link.active{color:#fff;background:linear-gradient(135deg,rgba(99,102,241,.12),rgba(139,92,246,.07))}
.step-link.active .dot{border-color:rgba(129,140,248,.4);background:rgba(99,102,241,.17);box-shadow:inset 0 1px 0 rgba(255,255,255,.04);color:#fff}
.step-link.done{color:#b3b3bb}
.step-link.done .dot{color:#9cf1d0;border-color:rgba(94,224,174,.22);background:rgba(94,224,174,.07)}
.security-note{margin-top:auto;padding:15px;border:1px solid var(--line-soft);border-radius:17px;background:rgba(255,255,255,.022);display:grid;grid-template-columns:30px 1fr;gap:10px;align-items:start}
.security-note svg{width:22px;height:22px;color:#818cf8;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;margin-top:1px}
.security-note div{display:grid;gap:5px}
.security-note strong{font-size:11px}
.security-note span{color:#77787d;font-size:10px;line-height:1.5}
.content{padding:42px 44px 62px;min-width:0}
.mobile-progress{display:none}

/* Dynamic setup content */
.panel{animation:rise .25s ease}
@keyframes rise{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
.panel-head{margin-bottom:26px}
.kicker{display:flex;align-items:center;gap:8px;color:#a5b4fc;font-size:11px;font-weight:750;letter-spacing:.04em;margin-bottom:11px}
.kicker i{width:7px;height:7px;border-radius:50%;background:linear-gradient(135deg,#56aaff,#8b5cf6);box-shadow:0 0 14px rgba(99,102,241,.65)}
.panel h2{font-size:clamp(34px,3.4vw,48px);line-height:1.02;letter-spacing:-.052em;margin:0 0 13px;max-width:760px}
.panel-head>p{color:var(--muted);font-size:15px;line-height:1.65;margin:0;max-width:720px}
.card{border:1px solid var(--line-soft);background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.022));border-radius:22px;padding:23px;box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 22px 60px rgba(0,0,0,.13)}
.card+.card{margin-top:14px}
.card-title{font-size:15px;font-weight:700;margin-bottom:6px}
.card-sub{color:var(--muted);font-size:12px;line-height:1.55;margin-bottom:18px}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.field{display:grid;gap:8px;margin-bottom:14px}.field:last-child{margin-bottom:0}
.field label{color:#dddde2;font-size:12px;font-weight:650}
.field input,.field select{width:100%;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(5,6,8,.72);color:#fff;padding:13px 14px;outline:none;transition:.18s ease;box-shadow:inset 0 1px 0 rgba(255,255,255,.015)}
.field input:focus,.field select:focus{border-color:rgba(129,140,248,.62);box-shadow:0 0 0 3px rgba(99,102,241,.11)}
.field small{color:#77787d;font-size:11px;line-height:1.5}
.actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:24px}.actions.right{justify-content:flex-end}
.btn,.ghost{border:0;border-radius:999px;min-height:46px;padding:0 19px;font-weight:700;font-size:13px;cursor:pointer;transition:.18s ease;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}
.btn{color:#111217;background:#f5f5f7;box-shadow:0 14px 38px rgba(255,255,255,.055)}
.btn:hover,.ghost:hover{transform:translateY(-1px)}
.btn:disabled{opacity:.45;cursor:not-allowed;transform:none}
.btn.secondary{color:#fff;background:rgba(255,255,255,.065);border:1px solid var(--line);box-shadow:none}
.btn.danger{color:#fecdd3;background:rgba(251,113,133,.11);border:1px solid rgba(251,113,133,.2);box-shadow:none}
.ghost{color:#d0d0d5;background:rgba(255,255,255,.035);border:1px solid var(--line-soft)}
.ghost:hover{background:rgba(255,255,255,.065)}
.small{min-height:36px;padding:0 14px;font-size:11px}
.choice-list{display:grid;gap:10px}.choice{display:flex;align-items:flex-start;gap:12px;padding:15px;border:1px solid var(--line-soft);border-radius:15px;background:rgba(255,255,255,.022);cursor:pointer}.choice:hover{border-color:rgba(129,140,248,.3)}
.choice input{margin-top:2px;accent-color:var(--accent)}.choice-main{flex:1;display:grid;gap:3px}.choice-main strong{font-size:13px}.choice-main span{color:var(--muted);font-size:11px;line-height:1.45}
.badge{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;background:rgba(255,255,255,.045);border:1px solid var(--line-soft);font-size:10px;color:#c7c7d3;white-space:nowrap}.badge.good{color:#baf3dc;border-color:rgba(94,224,174,.18);background:rgba(94,224,174,.065)}.badge.warn{color:#f8e6aa;border-color:rgba(248,205,99,.18);background:rgba(248,205,99,.06)}
.status-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line-soft)}.status-row:last-child{border-bottom:0}.status-row>div{display:grid;gap:3px}.status-row b{font-size:12px}.status-row span{color:var(--muted);font-size:11px}
.catalog-list{display:grid;gap:8px;max-height:370px;overflow:auto;padding-right:4px}.catalog-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:11px;align-items:center;padding:12px;border:1px solid var(--line-soft);border-radius:14px;background:rgba(255,255,255,.02)}.catalog-row input{accent-color:var(--accent)}.catalog-row div{min-width:0}.catalog-row b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.catalog-row small{display:block;color:#77787d;font-size:10px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.callout{border:1px solid rgba(129,140,248,.18);background:linear-gradient(135deg,rgba(99,102,241,.075),rgba(139,92,246,.04));border-radius:15px;padding:14px 15px;color:#d3d3e1;font-size:12px;line-height:1.6}.callout.warn{border-color:rgba(248,205,99,.18);background:rgba(248,205,99,.05);color:#ebe1bf}.callout.good{border-color:rgba(94,224,174,.16);background:rgba(94,224,174,.05);color:#c9eadf}
.alert{border:1px solid var(--line-soft);border-radius:15px;padding:12px 14px;margin-bottom:14px;font-size:12px;line-height:1.55;animation:rise .2s ease}.alert.error{border-color:rgba(251,113,133,.26);background:rgba(251,113,133,.07);color:#fecdd3}.alert.success{border-color:rgba(94,224,174,.2);background:rgba(94,224,174,.06);color:#c2f5df}.alert.info{border-color:rgba(129,140,248,.2);background:rgba(99,102,241,.06);color:#dedffa}
.loading{min-height:200px;display:grid;place-items:center;align-content:center;gap:12px;color:var(--muted);font-size:13px}.spinner{width:28px;height:28px;border-radius:50%;border:3px solid rgba(255,255,255,.08);border-top-color:#818cf8;animation:spin .75s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.hero-checks{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}.hero-check{border:1px solid var(--line-soft);background:rgba(255,255,255,.022);border-radius:15px;padding:14px;display:grid;gap:7px}.hero-check i{width:25px;height:25px;border-radius:9px;background:rgba(99,102,241,.12);display:grid;place-items:center;color:#a5b4fc;font-style:normal;font-weight:800;font-size:11px}.hero-check b{font-size:12px}.hero-check span{color:#77787d;font-size:10px;line-height:1.45}
.summary{display:grid;gap:9px}.summary-item{display:grid;grid-template-columns:36px 1fr;gap:11px;align-items:start;padding:13px;border:1px solid var(--line-soft);border-radius:14px;background:rgba(255,255,255,.02)}.summary-item .icon{width:32px;height:32px;border-radius:10px;background:rgba(99,102,241,.1);display:grid;place-items:center;color:#b9bcff;font-size:13px;font-weight:800}.summary-item b{font-size:12px;display:block;margin-bottom:3px}.summary-item span{color:var(--muted);font-size:11px;line-height:1.45}
.done-mark{width:62px;height:62px;border-radius:20px;background:linear-gradient(145deg,rgba(94,224,174,.20),rgba(94,224,174,.07));border:1px solid rgba(94,224,174,.2);display:grid;place-items:center;font-size:28px;margin-bottom:22px;color:#aff2d8}.codeish{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;color:#b7b7c7;word-break:break-all}.inline{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.hidden{display:none!important}hr.sep{border:0;border-top:1px solid var(--line-soft);margin:20px 0}


@media (max-width:900px){
  .setup-hero{padding-top:58px}.setup-frame{border-radius:26px}.shell{display:block;min-height:0}.sidebar{display:none}.content{padding:28px 22px 52px}.mobile-progress{display:grid;gap:9px;margin-bottom:25px;color:var(--muted);font-size:11px}.mobile-progress>div{height:3px;border-radius:999px;background:rgba(255,255,255,.06);overflow:hidden}.mobile-progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#6366f1,#8b5cf6);transition:.2s ease}.panel h2{font-size:36px}}
@media (max-width:700px){
  body::before{background-size:42px 42px;opacity:.07}.page{width:min(calc(100% - 20px),100%);padding-top:10px}
  .setup-hero{padding:54px 2px 34px}.eyebrow{margin-bottom:20px;font-size:12px}.setup-hero h1{font-size:clamp(46px,13vw,66px)}.setup-hero>p{width:96%;font-size:16px;line-height:1.52;margin-top:22px}.setup-meta{width:94%;font-size:11px;line-height:1.45}.meta-dot{display:none}
  .setup-frame{border-radius:22px}.setup-toolbar{min-height:72px;padding:14px 16px}.setup-toolbar strong{font-size:14px}.content{padding:24px 15px 42px}.grid-2,.hero-checks{grid-template-columns:1fr}.actions{align-items:stretch;flex-direction:column-reverse}.actions .btn,.actions .ghost{width:100%}.card{padding:18px;border-radius:18px}.panel h2{font-size:31px}.panel-head>p{font-size:14px}}
@media (prefers-reduced-motion:no-preference){.setup-hero>*{animation:heroRise .7s ease both}.setup-hero>p{animation-delay:.06s}.setup-meta{animation-delay:.12s}.setup-frame{animation:heroRise .7s .16s ease both}@keyframes heroRise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}}


/* -------------------- SHARED SITE THEME COMPLIANCE --------------------
   Navigation/theme state comes from shared.css + components.js. These rules
   only adapt setup-specific surfaces when the shared light theme is active.
*/
body.light .setup-hero,
body.light .setup-frame,
body.light .panel,
body.light .card,
body.light .sidebar,
body.light .content {
  color:#17181c;
}

body.light .setup-hero > p,
body.light .setup-meta,
body.light .sidebar p,
body.light .panel-head > p,
body.light .card-sub,
body.light .field small,
body.light .choice-main span,
body.light .status-row span,
body.light .catalog-row small,
body.light .summary-item span,
body.light .security-note span,
body.light .mobile-progress {
  color:#686b73;
}

body.light .setup-frame {
  border-color:rgba(0,0,0,.10);
  background:linear-gradient(180deg,rgba(255,255,255,.90),rgba(245,246,248,.88));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75),0 30px 90px rgba(17,24,39,.10);
}
body.light .setup-toolbar,
body.light .sidebar {
  border-color:rgba(0,0,0,.08);
  background:rgba(255,255,255,.38);
}
body.light .card,
body.light .choice,
body.light .catalog-row,
body.light .summary-item,
body.light .hero-check,
body.light .security-note {
  border-color:rgba(0,0,0,.085);
  background:rgba(255,255,255,.60);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.70),0 16px 42px rgba(17,24,39,.04);
}
body.light .field label,
body.light .card-title,
body.light .panel h2,
body.light .sidebar h2,
body.light .setup-toolbar strong,
body.light .choice-main strong,
body.light .status-row b,
body.light .catalog-row b,
body.light .summary-item b,
body.light .hero-check b,
body.light .security-note strong {
  color:#202126;
}
body.light .field input,
body.light .field select {
  color:#17181c;
  background:rgba(255,255,255,.82);
  border-color:rgba(0,0,0,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
}
body.light .field input::placeholder { color:#92949b; }
body.light .field input:focus,
body.light .field select:focus {
  border-color:rgba(79,70,229,.48);
  box-shadow:0 0 0 3px rgba(79,70,229,.10);
}
body.light .ghost,
body.light .btn.secondary {
  color:#202126;
  background:rgba(255,255,255,.70);
  border-color:rgba(0,0,0,.10);
}
body.light .ghost:hover,
body.light .btn.secondary:hover { background:rgba(255,255,255,.90); }
body.light .btn:not(.secondary):not(.danger) {
  color:#fff;
  background:#17181c;
  box-shadow:0 14px 34px rgba(17,24,39,.14);
}
body.light .step-link { color:#6d7078; }
body.light .step-link.active {
  color:#17181c;
  background:linear-gradient(135deg,rgba(99,102,241,.10),rgba(139,92,246,.065));
}
body.light .step-link.done { color:#565a62; }
body.light .step-link .dot { border-color:rgba(0,0,0,.09);background:rgba(255,255,255,.55); }
body.light .callout { color:#47445d;background:linear-gradient(135deg,rgba(99,102,241,.08),rgba(139,92,246,.045)); }
body.light .callout.warn { color:#705d22;background:rgba(248,205,99,.10); }
body.light .callout.good { color:#23654e;background:rgba(94,224,174,.10); }
body.light .alert.info { color:#46457a;background:rgba(99,102,241,.08); }
body.light .alert.success { color:#24644f;background:rgba(94,224,174,.10); }
body.light .alert.error { color:#8a3443;background:rgba(251,113,133,.10); }
body.light .badge { color:#575962;background:rgba(255,255,255,.60);border-color:rgba(0,0,0,.08); }
body.light .codeish { color:#565a65; }
body.light hr.sep,
body.light .status-row { border-color:rgba(0,0,0,.08); }
body.light .mobile-progress > div { background:rgba(0,0,0,.08); }

/* ==================== SET UP COLLECTION UI REFINEMENT ====================
   Larger FAQ-like type, Common-style primary pills, consistent selects,
   Step 2 account banner/profile tools, and setup method controls.
*/

/* Readability */
.toolbar-label{font-size:12px;letter-spacing:.12em}
.setup-toolbar strong{font-size:17px;line-height:1.2}
.mobile-progress{font-size:13px}
.kicker{font-size:12.5px;letter-spacing:.045em;margin-bottom:13px}
.panel h2{font-size:clamp(42px,3.8vw,56px);line-height:1.03;letter-spacing:-.047em;margin-bottom:16px}
.panel-head>p{font-size:18px;line-height:1.58;max-width:800px}
.card-title{font-size:18px;line-height:1.3}
.card-sub{font-size:15.5px;line-height:1.58}
.field{gap:9px;margin-bottom:18px}
.field label{font-size:15px;line-height:1.35;font-weight:700}
.field input,.field select{min-height:58px;border-radius:16px;padding:0 17px;font-size:17px;line-height:1.2}
.field small{font-size:13.5px;line-height:1.55}
.choice{padding:18px;border-radius:17px}
.choice-main strong{font-size:16px}
.choice-main span{font-size:14px;line-height:1.5}
.status-row{padding:15px 0}
.status-row b{font-size:15px}.status-row span{font-size:13.5px;line-height:1.5}
.catalog-row{padding:14px}.catalog-row b{font-size:14.5px}.catalog-row small{font-size:12.5px}
.callout{padding:16px 17px;border-radius:17px;font-size:14.5px;line-height:1.62}
.alert{padding:14px 16px;font-size:14.5px;line-height:1.55}
.hero-checks{gap:12px;margin-top:20px}
.hero-check{padding:18px;border-radius:17px;gap:9px}
.hero-check i{width:30px;height:30px;border-radius:10px;font-size:13px}
.hero-check b{font-size:16px;line-height:1.3}
.hero-check span{font-size:13.5px;line-height:1.5}
.summary{gap:11px}
.summary-item{grid-template-columns:40px 1fr;gap:13px;padding:16px;border-radius:16px}
.summary-item .icon{width:36px;height:36px;border-radius:11px;font-size:14px}
.summary-item b{font-size:16px;line-height:1.3;margin-bottom:4px}
.summary-item span{font-size:13.5px;line-height:1.52}
.loading{font-size:15px}
.optional{color:var(--soft);font-size:.88em;font-weight:550}

/* Compact FAQ-like action pills, modeled after Nuvio's "Common" control. */
.btn{
  min-height:44px;
  padding:0 20px;
  border-radius:999px;
  font-size:14px;
  font-weight:780;
  line-height:1;
  text-align:center;
  white-space:nowrap;
  gap:0;
}
.btn.secondary{gap:0}
.ghost{
  min-height:42px;
  padding:0 18px;
  font-size:13.5px;
  font-weight:700;
  line-height:1;
  text-align:center;
}
.small{min-height:34px;padding:0 14px;font-size:11.5px}
.actions{gap:12px;margin-top:26px}
.actions.compact{margin-top:18px}
.action-group{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}

/* Consistent, non-native-looking select control. */
.field select{
  -webkit-appearance:none;
  appearance:none;
  padding:0 54px 0 17px;
  background-color:rgba(5,6,8,.72);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a7a7ad' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 9 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 18px center;
  background-size:18px 18px;
  color-scheme:dark;
  cursor:pointer;
}
.field select::-ms-expand{display:none}
.field select option{background:#111216;color:#f7f7f8;font-size:16px}

/* FAQ-like segmented choices: selected = white pill, unselected = muted text. */
.setup-tabs{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 24px;
  padding:0;
  overflow-x:auto;
  scrollbar-width:none;
}
.setup-tabs::-webkit-scrollbar{display:none}
.setup-tab{
  min-height:50px;
  padding:0 24px;
  border:0;
  border-radius:999px;
  background:transparent;
  color:#85868d;
  font-size:16px;
  font-weight:800;
  line-height:1;
  white-space:nowrap;
  cursor:pointer;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}
.setup-tab:hover{color:#d8d8dd;background:rgba(255,255,255,.035)}
.setup-tab.active{background:#f5f5f7;color:#111217;box-shadow:0 10px 28px rgba(255,255,255,.045)}

/* Step 2 — Nuvio account banner */
.nuvio-account-banner{
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  align-items:center;
  gap:16px;
  margin:0 0 18px;
  padding:16px 18px;
  border:1px solid var(--line-soft);
  border-radius:22px;
  background:linear-gradient(135deg,rgba(36,173,232,.075),rgba(125,82,247,.065) 55%,rgba(216,70,240,.035));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
  overflow:hidden;
}
.nuvio-account-art{
  width:64px;
  height:64px;
  display:grid;
  place-items:center;
  overflow:visible;
  background:transparent;
}
.nuvio-account-art img{
  display:block;
  width:64px;
  height:auto;
  max-height:64px;
  object-fit:contain;
  object-position:center;
  background:transparent;
}
.nuvio-account-copy{min-width:0}
.nuvio-account-copy>span{display:block;color:#8fa0ff;font-size:11px;font-weight:850;letter-spacing:.14em;margin-bottom:6px}
.nuvio-account-copy h3{margin:0;color:#f7f7f8;font-size:clamp(24px,2.3vw,34px);line-height:1.08;letter-spacing:-.035em}
.nuvio-account-copy p{margin:9px 0 0;color:var(--muted);font-size:15px;line-height:1.55;max-width:650px}

.profile-field{margin-bottom:0}
.profile-control-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.profile-control-row select{margin:0}
.new-profile-btn{min-height:56px;height:56px;padding-inline:20px;white-space:nowrap}
.profile-create-card{
  margin-top:16px;
  padding:20px;
  border:1px solid var(--line-soft);
  border-radius:18px;
  background:rgba(255,255,255,.022);
}
.toggle-row{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:14px 0 2px;
  cursor:pointer;
}
.toggle-row input{width:20px;height:20px;margin:1px 0 0;accent-color:var(--accent);flex:0 0 20px}
.toggle-row>span{display:grid;gap:4px}
.toggle-row b{font-size:15px;line-height:1.35}
.toggle-row small{color:var(--muted);font-size:13.5px;line-height:1.5}

/* Step 3 — API key controls */
.field-label-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.field-label-row label{margin:0;min-width:0}
.get-key-link{
  flex:0 0 auto;
  min-height:34px;
  padding:0 13px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line-soft);
  background:rgba(255,255,255,.035);
  color:#b9bcff;
  font-size:12px;
  font-weight:760;
  text-decoration:none;
  transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease;
}
.get-key-link:hover{background:rgba(99,102,241,.10);border-color:rgba(129,140,248,.26);color:#d7d9ff;transform:translateY(-1px)}
.secret-input-wrap{position:relative;display:flex;align-items:center}
.secret-input-wrap input{padding-right:50px}
.key-visibility-toggle{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  width:38px;
  height:38px;
  border:0;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:transparent;
  color:#8f9097;
  cursor:pointer;
  transition:background .18s ease,color .18s ease;
}
.key-visibility-toggle:hover{background:rgba(255,255,255,.055);color:#f0f0f3}
.key-visibility-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.key-visibility-toggle .eye-closed{display:none}
.key-visibility-toggle.revealed .eye-open{display:none}
.key-visibility-toggle.revealed .eye-closed{display:block}

/* Step 3 — local JSON selection */
.file-picker-wrap{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:14px;
  margin:0 0 22px;
  padding:16px;
  border:1px solid var(--line-soft);
  border-radius:18px;
  background:rgba(255,255,255,.018);
}
.file-picker{
  min-height:50px;
  padding:0 22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.055);
  color:#f2f2f4;
  font-size:15px;
  font-weight:750;
  cursor:pointer;
  white-space:nowrap;
}
.file-picker:hover{background:rgba(255,255,255,.085)}
.file-status{min-width:0;display:grid;gap:4px}
.file-status b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.file-status span{color:var(--muted);font-size:13px;line-height:1.4}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

@media (max-width:900px){
  .mobile-progress{font-size:13px}
  .panel h2{font-size:42px}
  .panel-head>p{font-size:17px}
  .card{padding:22px}
}

@media (max-width:700px){
  .setup-toolbar strong{font-size:16px}
  .content{padding:26px 16px 44px}
  .panel h2{font-size:clamp(36px,9vw,43px);line-height:1.05}
  .panel-head>p{font-size:16.5px;line-height:1.58}
  .card{padding:19px;border-radius:19px}
  .field label{font-size:14.5px}
  .field input,.field select{min-height:56px;font-size:16px}
  .field small{font-size:13px}
  .btn{min-height:44px;padding-inline:19px;font-size:14px}
  .ghost{min-height:40px;padding-inline:16px;font-size:13px}
  .actions{align-items:center;flex-direction:row;flex-wrap:wrap;justify-content:space-between}
  .actions .btn,.actions>.ghost{width:auto}
  .actions .action-group{width:auto;display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-left:auto}
  .actions .action-group .btn,.actions .action-group .ghost{width:auto}
  .setup-tabs{gap:4px;margin-bottom:20px}
  .setup-tab{min-height:46px;padding-inline:18px;font-size:14.5px}
  .nuvio-account-banner{grid-template-columns:52px minmax(0,1fr);gap:12px;padding:14px;border-radius:19px}
  .nuvio-account-art{width:52px;height:52px}
  .nuvio-account-art img{width:52px;max-height:52px}
  .nuvio-account-copy>span{font-size:10px}
  .nuvio-account-copy h3{font-size:24px}
  .nuvio-account-copy p{font-size:13.5px;line-height:1.45}
  .profile-control-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}
  .new-profile-btn{width:auto;min-height:56px;height:56px;padding-inline:15px}
  .field-label-row{gap:8px}
  .get-key-link{min-height:32px;padding-inline:11px;font-size:11.5px}
  .profile-create-card{padding:17px}
  .file-picker-wrap{grid-template-columns:1fr;align-items:stretch}
  .file-picker{width:100%}
  .hero-check b{font-size:16px}.hero-check span{font-size:14px}
  .summary-item b{font-size:15.5px}.summary-item span{font-size:13.5px}
}

@media (max-width:520px){
  .profile-control-row{grid-template-columns:1fr}
  .new-profile-btn{justify-self:start;height:42px;min-height:42px}
}

/* Light-theme variants for the new setup controls. */
body.light .setup-tab{color:#747780}
body.light .setup-tab:hover{color:#25262a;background:rgba(0,0,0,.035)}
body.light .setup-tab.active{background:#17181c;color:#fff;box-shadow:0 10px 25px rgba(17,24,39,.10)}
body.light .nuvio-account-banner{border-color:rgba(0,0,0,.08);background:linear-gradient(135deg,rgba(36,173,232,.08),rgba(125,82,247,.07) 55%,rgba(216,70,240,.04))}
body.light .nuvio-account-art{background:transparent}
body.light .nuvio-account-copy h3{color:#202126}
body.light .nuvio-account-copy p{color:#686b73}
body.light .profile-create-card,body.light .file-picker-wrap{border-color:rgba(0,0,0,.08);background:rgba(255,255,255,.55)}
body.light .toggle-row b{color:#202126}body.light .toggle-row small{color:#686b73}
body.light .get-key-link{color:#4f46e5;background:rgba(79,70,229,.05);border-color:rgba(79,70,229,.12)}
body.light .get-key-link:hover{color:#3730a3;background:rgba(79,70,229,.09);border-color:rgba(79,70,229,.20)}
body.light .key-visibility-toggle{color:#777b84}
body.light .key-visibility-toggle:hover{background:rgba(0,0,0,.045);color:#202126}
body.light .file-picker{color:#202126;background:rgba(255,255,255,.7);border-color:rgba(0,0,0,.10)}
body.light .file-picker:hover{background:#fff}
body.light .file-status b{color:#202126}body.light .file-status span{color:#686b73}
body.light .field select{
  color-scheme:light;
  background-color:rgba(255,255,255,.82);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23686b73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 9 5 5 5-5'/%3E%3C/svg%3E");
}
body.light .field select option{background:#fff;color:#17181c}

/* Step 5 — choose which top-level The Kollection sections are installed. */
.collection-select-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:0 0 18px;
  padding-bottom:17px;
  border-bottom:1px solid var(--line-soft);
}
.collection-select-toolbar>div:first-child{min-width:0;display:grid;gap:5px}
.collection-select-toolbar b{font-size:17px;line-height:1.3;color:#f4f4f6}
.collection-select-toolbar span{color:var(--muted);font-size:13.5px;line-height:1.45}
.collection-section-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:11px;
}
.collection-section-choice{
  position:relative;
  display:grid;
  grid-template-columns:25px minmax(0,1fr);
  align-items:center;
  gap:13px;
  min-height:82px;
  padding:16px 17px;
  border:1px solid var(--line-soft);
  border-radius:17px;
  background:rgba(255,255,255,.018);
  cursor:pointer;
  transition:border-color .18s ease,background .18s ease,transform .18s ease,box-shadow .18s ease;
}
.collection-section-choice:hover{
  transform:translateY(-1px);
  border-color:rgba(255,255,255,.16);
  background:rgba(255,255,255,.035);
}
.collection-section-choice.selected{
  border-color:rgba(129,140,248,.40);
  background:linear-gradient(135deg,rgba(99,102,241,.095),rgba(139,92,246,.05));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
.collection-section-choice input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.collection-section-check{
  width:23px;
  height:23px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,.20);
  background:rgba(255,255,255,.035);
  display:grid;
  place-items:center;
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
}
.collection-section-check::after{
  content:"";
  width:9px;
  height:5px;
  border-left:2px solid #111217;
  border-bottom:2px solid #111217;
  transform:rotate(-45deg) translateY(-1px) scale(.7);
  opacity:0;
  transition:opacity .15s ease,transform .15s ease;
}
.collection-section-choice.selected .collection-section-check{
  background:#f5f5f7;
  border-color:#f5f5f7;
}
.collection-section-choice.selected .collection-section-check::after{
  opacity:1;
  transform:rotate(-45deg) translateY(-1px) scale(1);
}
.collection-section-copy{min-width:0;display:grid;gap:5px}
.collection-section-copy b{font-size:16px;line-height:1.3;color:#f2f2f4}
.collection-section-copy small{font-size:13px;line-height:1.45;color:var(--muted)}

body.light .collection-select-toolbar b,
body.light .collection-section-copy b{color:#202126}
body.light .collection-select-toolbar span,
body.light .collection-section-copy small{color:#686b73}
body.light .collection-section-choice{
  border-color:rgba(0,0,0,.08);
  background:rgba(255,255,255,.50);
}
body.light .collection-section-choice:hover{border-color:rgba(0,0,0,.13);background:#fff}
body.light .collection-section-choice.selected{
  border-color:rgba(79,70,229,.28);
  background:linear-gradient(135deg,rgba(99,102,241,.08),rgba(139,92,246,.045));
}
body.light .collection-section-check{border-color:rgba(0,0,0,.15);background:rgba(0,0,0,.02)}
body.light .collection-section-choice.selected .collection-section-check{background:#17181c;border-color:#17181c}
body.light .collection-section-choice.selected .collection-section-check::after{border-color:#fff}

@media(max-width:700px){
  .collection-select-toolbar{align-items:flex-start;flex-direction:column}
  .collection-select-toolbar .action-group{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .collection-select-toolbar .action-group .ghost{width:100%}
  .collection-section-grid{grid-template-columns:1fr}
  .collection-section-choice{min-height:78px;padding:15px}
}

/* Step 2 — simplified Nuvio authentication form */
.nuvio-auth-shell{
  width:min(100%,680px);
  margin:0 auto;
  padding:2px 0 0;
}
.nuvio-auth-tabs{
  justify-content:center;
  margin-bottom:26px;
}
.nuvio-auth-fields{
  width:min(100%,560px);
  margin:0 auto;
}
.nuvio-auth-fields .field{
  margin-bottom:18px;
}
.nuvio-auth-fields .field:last-of-type{
  margin-bottom:0;
}
.nuvio-auth-note{
  display:block;
  width:min(100%,560px);
  margin:12px auto 0;
  color:var(--muted);
  font-size:13.5px;
  line-height:1.5;
}
.nuvio-auth-actions{
  width:min(100%,560px);
  margin:26px auto 0;
}
.nuvio-auth-actions .btn,
.nuvio-auth-actions .ghost{
  flex:0 0 auto;
}

@media (max-width:700px){
  .nuvio-auth-shell{width:100%}
  .nuvio-auth-tabs{justify-content:flex-start;margin-bottom:22px}
  .nuvio-auth-fields,.nuvio-auth-actions{width:100%}
  .nuvio-auth-note{width:100%;font-size:13px}
}
