/* Canonical ShayOS Studio wizard infrastructure. Product plugins style content only. */
[data-shayos-studio-wizard]{box-sizing:border-box;max-width:100%;min-width:0}
[data-shayos-studio-wizard] *,[data-shayos-studio-wizard] *::before,[data-shayos-studio-wizard] *::after{box-sizing:border-box}
.sww-engine-shell{display:grid;gap:16px;width:100%;color:#173f6f}
.sww-engine-head{display:grid;gap:6px}.sww-engine-head h2,.sww-engine-head p{margin:0}.sww-engine-content{min-width:0}
[data-sww-step-panel][hidden]{display:none!important}
[data-sww-step-indicator]{transition:opacity .15s ease}[data-sww-step-indicator].is-active{font-weight:900}[data-sww-step-indicator].is-done{opacity:.78}
[data-shayos-studio-wizard] [data-sww-actions]{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:flex-end}
[data-shayos-studio-wizard] [data-sww-status]{min-height:1.4em}
@media(max-width:520px){[data-shayos-studio-wizard] [data-sww-actions]>button,[data-shayos-studio-wizard] [data-sww-actions]>a{flex:1 1 auto;min-width:0}}

/* Migrated from ShayOS Core: canonical shared wizard presentation. */
/* 1.53.1: shared Studio-style wizard language for simulations and guided workflows. */
.shaysport-wizard {
  --shaysport-wizard-progress: 0%;
  --shaysport-wizard-accent: var(--shaysport-primary, #2f5fa7);
  width: 100%;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--shaysport-wizard-accent) 20%, #d8e3ef);
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff, #f4f9fd);
  box-shadow: 0 18px 44px rgba(15, 56, 91, .12);
  overflow: hidden;
}
.shaysport-wizard__header {
  display: grid;
  gap: 16px;
  padding: 22px clamp(16px, 4vw, 32px) 18px;
  border-bottom: 1px solid rgba(47, 95, 167, .14);
  background: linear-gradient(135deg, rgba(236, 247, 255, .98), rgba(255, 255, 255, .98));
}
.shaysport-wizard__heading { display: grid; gap: 5px; }
.shaysport-wizard__heading h1,
.shaysport-wizard__heading h2,
.shaysport-wizard__heading h3 { margin: 0; color: #102d49; }
.shaysport-wizard__heading p { margin: 0; color: #52677a; }
.shaysport-wizard__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--shaysport-wizard-step-count, 2), minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.shaysport-wizard__steps::before,
.shaysport-wizard__steps::after {
  content: "";
  position: absolute;
  top: 17px;
  inset-inline: 17px;
  height: 4px;
  border-radius: 999px;
  pointer-events: none;
}
.shaysport-wizard__steps::before { background: #dce7f1; }
.shaysport-wizard__steps::after {
  width: var(--shaysport-wizard-progress);
  max-width: calc(100% - 34px);
  background: var(--shaysport-wizard-accent);
  transition: width .28s ease;
}
.shaysport-wizard__step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #627487;
  font: inherit;
  text-align: center;
}
button.shaysport-wizard__step { cursor: pointer; }
.shaysport-wizard__step-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 3px solid #dce7f1;
  border-radius: 50%;
  background: #fff;
  color: #52677a;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(15, 56, 91, .08);
}
.shaysport-wizard__step.is-active,
.shaysport-wizard__step.is-complete { color: #173e62; }
.shaysport-wizard__step.is-active .shaysport-wizard__step-number,
.shaysport-wizard__step.is-complete .shaysport-wizard__step-number {
  border-color: var(--shaysport-wizard-accent);
  background: var(--shaysport-wizard-accent);
  color: #fff;
}
.shaysport-wizard__step.is-complete .shaysport-wizard__step-number::after { content: "OK"; }
.shaysport-wizard__step.is-complete .shaysport-wizard__step-number > span { display: none; }
.shaysport-wizard__step-label {
  max-width: 16ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .88rem;
  font-weight: 700;
}
.shaysport-wizard__body { padding: clamp(16px, 4vw, 32px); }
.shaysport-wizard__panel { min-width: 0; animation: shaysport-wizard-enter .24s ease both; }
.shaysport-wizard__panel[hidden] { display: none !important; }
.shaysport-wizard__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #dfe8f1;
}
.shaysport-wizard__actions-group { display: flex; flex-wrap: wrap; gap: 10px; }
.shaysport-wizard__counter { color: #607588; font-size: .9rem; font-weight: 700; }
@keyframes shaysport-wizard-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 680px) {
  .shaysport-wizard { border-radius: 18px; }
  .shaysport-wizard__header { padding: 17px 13px 14px; }
  .shaysport-wizard__body { padding: 14px 12px 16px; }
  .shaysport-wizard__step-label { font-size: .72rem; max-width: 10ch; }
  .shaysport-wizard__step-number { width: 32px; height: 32px; font-size: .86rem; }
  .shaysport-wizard__steps::before,
  .shaysport-wizard__steps::after { top: 15px; }
  .shaysport-wizard__actions { align-items: stretch; }
  .shaysport-wizard__actions .shaysport-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .shaysport-wizard__panel { animation: none; }
  .shaysport-wizard__steps::after { transition: none; }
}


/* 1.53.1 - resilient shared wizard layout for narrow mobile screens. */
.shaysport-wizard,
.shaysport-wizard * {
  box-sizing: border-box;
}
.shaysport-wizard__heading,
.shaysport-wizard__heading > * {
  min-width: 0;
  max-width: 100%;
}
.shaysport-wizard__heading :is(h1, h2, h3) {
  font-size: clamp(22px, 5.8vw, 34px);
  line-height: 1.16;
  overflow-wrap: break-word !important;
}
.shaysport-wizard__step-label {
  display: -webkit-box;
  max-width: 18ch;
  overflow: hidden;
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: break-word !important;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.shaysport-wizard__actions-group {
  min-width: 0;
}
@media (max-width: 680px) {
  .shaysport-wizard__header {
    gap: 13px;
  }
  .shaysport-wizard__steps {
    grid-template-columns: repeat(var(--shaysport-wizard-step-count, 2), minmax(64px, 1fr));
    gap: 4px;
  }
  .shaysport-wizard__step {
    gap: 5px;
    padding-inline: 2px;
  }
  .shaysport-wizard__step-label {
    max-width: 12ch;
    font-size: .72rem;
  }
  .shaysport-wizard__actions,
  .shaysport-wizard__actions-group {
    width: 100%;
  }
}
@media (max-width: 520px) {
  .shaysport-wizard__header {
    padding-inline: 10px;
  }
  .shaysport-wizard__body {
    padding-inline: 10px;
  }
  .shaysport-wizard__steps {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }
  .shaysport-wizard__steps::before,
  .shaysport-wizard__steps::after {
    inset-inline: 15px;
  }
  .shaysport-wizard__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }
  .shaysport-wizard__actions-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .shaysport-wizard__actions :is(.shaysport-btn, button, a) {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .shaysport-wizard__counter {
    text-align: center;
  }
}

/* Core 1.53.1 - final mobile wizard layout shared with Studio and Shell. */
.shaysport-wizard,
.shaysport-wizard * {
  min-width: 0;
  box-sizing: border-box;
}
.shaysport-wizard__heading :is(h1,h2,h3) {
  max-width: 100%;
  margin: 0;
  font-size: clamp(24px, 4.6vw, 34px);
  line-height: 1.15;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere !important;
}
.shaysport-wizard__heading p {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere !important;
}
.shaysport-wizard__step-label {
  display: block !important;
  width: 100% !important;
  max-width: 18ch !important;
  min-height: 2.5em;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  -webkit-box-orient: initial !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  line-height: 1.25 !important;
}
@media (max-width: 680px) {
  .shaysport-wizard__header {
    gap: 12px !important;
    padding: 16px 11px 13px !important;
  }
  .shaysport-wizard__heading :is(h1,h2,h3) {
    font-size: clamp(25px, 7.4vw, 31px) !important;
  }
  .shaysport-wizard__heading p {
    font-size: 15px !important;
    line-height: 1.45 !important;
  }
  .shaysport-wizard__steps {
    grid-template-columns: repeat(var(--shaysport-wizard-step-count, 2), minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
    overflow: visible !important;
  }
  .shaysport-wizard__steps:has(.shaysport-wizard__step:nth-child(5)) {
    grid-template-columns: repeat(var(--shaysport-wizard-step-count, 5), minmax(88px, 1fr)) !important;
    overflow-x: auto !important;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }
  .shaysport-wizard__step {
    padding-inline: 2px !important;
  }
  .shaysport-wizard__step-label {
    max-width: 100% !important;
    min-height: 2.5em !important;
    font-size: 12px !important;
  }
  .shaysport-wizard__body {
    padding: 14px 10px 16px !important;
  }
  .shaysport-wizard__actions,
  .shaysport-wizard__actions-group {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    gap: 8px !important;
  }
  .shaysport-wizard__actions :is(.shaysport-btn,button,a) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .shaysport-wizard__counter {
    text-align: center !important;
  }
}

.shayos-wizard{display:grid;gap:18px;min-height:100%;font-family:inherit}.shayos-wizard-stepbar{display:flex;gap:10px;overflow-x:auto;padding:8px 2px 14px;scrollbar-width:thin}.shayos-wizard-stepbar button{border:0;border-radius:18px;background:#eef2f7;color:#253041;display:flex;align-items:center;gap:9px;padding:10px 14px;white-space:nowrap;opacity:.72}.shayos-wizard-stepbar button span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#fff;font-weight:800}.shayos-wizard-stepbar button.is-active{background:#17233a;color:#fff;opacity:1}.shayos-wizard-stepbar button.is-complete{opacity:1}.shayos-wizard-step{animation:shayosWizardIn .18s ease}.shayos-wizard-actions{display:flex;justify-content:space-between;gap:12px;position:sticky;bottom:0;background:rgba(255,255,255,.96);padding:14px 0}.shayos-wizard-actions button{border:0;border-radius:14px;padding:12px 22px;font-weight:800;background:#e7ebf1}.shayos-wizard-actions .is-primary{margin-inline-start:auto;background:#17233a;color:#fff}.shayos-wizard-status{min-height:1.4em}@keyframes shayosWizardIn{from{opacity:.2;transform:translateY(5px)}to{opacity:1;transform:none}}@media(max-width:680px){.shayos-wizard-stepbar button strong{font-size:13px}.shayos-wizard-actions{padding-bottom:calc(12px + env(safe-area-inset-bottom))}}

/* 1.73.0: long visual workflows remain readable and usable. */
.shayos-wizard-stepbar{position:sticky;top:0;z-index:8;background:rgba(255,255,255,.98);border-bottom:1px solid #d8e0eb}
.shayos-wizard-stepbar button{opacity:1;color:#17233a;border:1px solid #c9d3e0}
.shayos-wizard-stepbar button.is-active{background:#0b2348;color:#fff;border-color:#0b2348}
.shayos-wizard-stepbar button.is-complete{background:#e2f3e9;color:#143c27}

/* 1.73.0: visible active step and consistent actions. */
.shayos-wizard-stepbar button .shayos-wizard-step-number,
.shayos-wizard-stepbar button span:first-child{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:999px;background:#fff;color:#17233a;font-weight:900;line-height:1;opacity:1}
.shayos-wizard-stepbar button.is-active .shayos-wizard-step-number,
.shayos-wizard-stepbar button.is-active span:first-child{background:#fff;color:#0b2348;box-shadow:0 0 0 2px rgba(255,255,255,.45)}
.shayos-wizard-actions{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.shayos-wizard-actions button{min-height:46px;min-width:132px;padding:11px 18px;line-height:1.25}
/* 2.39.0 canonical admin wizard inspector */
.sww-inspector{box-sizing:border-box;width:100%;margin:0 0 12px;padding:12px;border:2px solid #174b7a;border-radius:18px;background:#f7fbff;color:#123f6a;display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}.sww-inspector[hidden]{display:none!important}.sww-inspector__meta{display:grid;gap:3px;min-width:0}.sww-inspector__detail{overflow-wrap:anywhere}.sww-inspector__status{font-weight:800}.sww-inspector__actions{display:flex;gap:7px;flex-wrap:wrap}.sww-inspector button{appearance:none;border:1px solid #b98b49;border-radius:14px;background:#fff7e8;color:#174b7a;padding:8px 11px;font:inherit;font-weight:800}.sww-inspector button:disabled{opacity:.45}@media(max-width:560px){.sww-inspector{align-items:stretch}.sww-inspector__actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.sww-inspector button{width:100%}}

/* 2.41.0 canonical viewport Wizard Host */
html.sww-host-open,body.sww-host-open{overflow:hidden!important;overscroll-behavior:none!important}
.sww-host{position:fixed!important;inset:0!important;z-index:2147483000!important;width:100vw!important;height:100dvh!important;isolation:isolate!important;display:block!important;box-sizing:border-box!important}
.sww-host[hidden]{display:none!important}.sww-host__backdrop{position:absolute!important;inset:0!important;background:rgba(8,25,43,.62)!important;backdrop-filter:blur(3px);z-index:0!important}.sww-host__viewport{position:absolute!important;inset:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important;z-index:1!important;overflow:auto!important;overscroll-behavior:contain!important;background:#fff!important;border-radius:22px!important;box-shadow:0 18px 60px rgba(0,0,0,.38)!important;padding:52px 10px 16px!important;box-sizing:border-box!important}.sww-host__content{min-height:100%;position:relative;z-index:1}.sww-host__content>[data-shayos-toot-wizard]{width:100%!important;max-width:none!important;margin:0!important;position:static!important;transform:none!important;inset:auto!important}.sww-host__content [data-shayos-toot-selector]{display:none!important}.sww-host__close{position:absolute!important;top:10px!important;inset-inline-end:10px!important;z-index:20!important;width:42px!important;height:42px!important;border:2px solid #174b7a!important;border-radius:999px!important;background:#fff!important;color:#174b7a!important;font:700 30px/34px Arial,sans-serif!important;display:grid!important;place-items:center!important;padding:0!important;cursor:pointer!important}.sww-host__error{margin:12px;padding:12px;border:2px solid #a52a2a;border-radius:12px;background:#fff4f4;color:#721c24;font-weight:700}.sww-host__error[hidden]{display:none!important}@media(max-width:680px){.sww-host__viewport{inset:0!important;border-radius:0!important;padding:54px 8px max(10px,env(safe-area-inset-bottom))!important}.sww-host__close{top:max(8px,env(safe-area-inset-top))!important;inset-inline-end:max(8px,env(safe-area-inset-right))!important}}
/* 2.41.0 provider-panel host normalization */
.sww-host__content>[data-shayos-toot-step-panel]{display:block!important;width:100%!important;min-height:calc(100dvh - 90px)!important;position:static!important;inset:auto!important;transform:none!important;margin:0!important;padding:0!important;background:transparent!important}
.sww-host__content>[data-shayos-toot-step-panel][hidden]{display:block!important}


/* 2.43.1 - every canonical wizard is a full-page overlay with fixed chrome and a scrolling body. */
.sww-host__viewport{display:grid!important;grid-template-rows:auto minmax(0,1fr)!important;overflow:hidden!important;padding:0!important;background:#fff!important}
.sww-host__header{position:relative!important;z-index:30!important;min-height:58px!important;padding:14px 64px 10px 18px!important;border-bottom:1px solid #d8e3ef!important;background:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important}
.sww-host__title{margin:0!important;color:#173e62!important;font-size:clamp(22px,5vw,34px)!important;line-height:1.15!important;text-align:center!important}
.sww-host__close{top:max(8px,env(safe-area-inset-top))!important;inset-inline-end:max(10px,env(safe-area-inset-right))!important}
.sww-host__content{min-height:0!important;height:100%!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;padding:0 10px max(12px,env(safe-area-inset-bottom))!important}
.sww-host__content .shaysport-wizard__header,.sww-host__content [data-sww-steps],.sww-host__content .shaysport-wizard__steps,.sww-host__content [data-shayos-toot-progress]{position:sticky!important;top:0!important;z-index:18!important;background:#fff!important}
.sww-host__content>[data-shayos-toot-step-panel]{min-height:100%!important}
@media(max-width:680px){.sww-host__viewport{inset:0!important;border-radius:0!important}.sww-host__header{padding-top:max(12px,env(safe-area-inset-top))!important}.sww-host__content{padding-inline:8px!important}}

/* 2.43.2 - canonical Wizard Host stays a floating modal on mobile and desktop. */
.sww-host__viewport{inset:max(24px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left))!important;width:auto!important;height:auto!important;max-width:860px!important;margin-inline:auto!important;border:1px solid #bfd6e5!important;border-radius:24px!important;box-shadow:0 20px 70px rgba(0,0,0,.38)!important}
.sww-host__content>[data-shayos-toot-step-panel]{min-height:0!important}
@media(max-width:680px){.sww-host__viewport{inset:max(22px,env(safe-area-inset-top)) 14px max(22px,env(safe-area-inset-bottom)) 14px!important;border-radius:24px!important}.sww-host__content{padding-inline:8px!important}}

/* 2.43.3 - persistent Wizard Host hero and close control. */
.sww-host__header[data-sww-host-hero]{display:grid!important;grid-template-columns:48px minmax(0,1fr) 48px!important;align-items:center!important;min-height:68px!important;padding:10px 12px!important;background:linear-gradient(180deg,#f8fbfe 0%,#eef6fb 100%)!important;border-bottom:1px solid #c9dce9!important;box-sizing:border-box!important}
.sww-host__header[data-sww-host-hero] .sww-host__title{grid-column:2!important}
.sww-host__header[data-sww-host-hero] .sww-host__close{position:static!important;grid-column:3!important;grid-row:1!important;justify-self:end!important;width:44px!important;height:44px!important;z-index:2!important}
[dir="rtl"] .sww-host__header[data-sww-host-hero] .sww-host__close{grid-column:1!important;justify-self:start!important}

/* 2.43.4 - canonical host title + shared progress hero. */
.sww-host__hero-main{grid-column:2!important;display:grid!important;gap:8px!important;min-width:0!important;width:100%!important}.sww-host__header[data-sww-host-hero] .sww-host__title{grid-column:auto!important}.sww-host__progress{display:grid;gap:5px;width:100%}.sww-host__progress[hidden]{display:none!important}.sww-host__progress [data-sww-host-step-text]{font-size:14px;font-weight:800;color:#647789;text-align:center}.sww-host__progress-track{height:7px;border-radius:999px;background:#dbe8f1;overflow:hidden}.sww-host__progress-track i{display:block;height:100%;width:0;background:#174b7a;border-radius:inherit;transition:width .18s ease}
