/* Owner setup uses the active shop's presentation, with a single canonical flow. */
.setup-workspace-dialog{width:calc(100vw - 40px);height:calc(100dvh - 40px);max-width:none;max-height:none;margin:auto;padding:0;border:1px solid var(--border,#dbe2ed);background:var(--bg,#f5f7fb);color:var(--text,#243248);overflow:hidden;box-shadow:0 20px 70px #17283d55;}
.setup-workspace-dialog[open]{display:flex;flex-direction:column;}
.setup-workspace-dialog::backdrop{background:#17283d80;}
.setup-workspace-header{flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px;background:#fff;border-bottom:1px solid var(--border,#dbe2ed);}
.setup-workspace-header h2{font-size:19px;margin:4px 0;}
.setup-workspace-header p{font-size:12px;line-height:1.5;color:#64748b;margin:0;}
.setup-workspace-header button{flex:none;}
.setup-workspace-frame{display:block;width:100%;flex:1;min-height:0;border:0;background:#fff;}
body[data-shop-layout=storefront] .setup-workspace-dialog{border-radius:16px;}
body[data-shop-layout=storefront] .setup-workspace-header>div{flex:1;text-align:center;}
body[data-shop-layout=command] .setup-workspace-header{border-top:4px solid #4e7fa3;}
body[data-shop-layout=workshop] .setup-workspace-dialog{border-radius:10px;border-top:4px solid #43886d;}
body.setup-task-embedded .portal-topbar,body.setup-task-embedded .portal-sidebar,body.setup-task-embedded .workspace-module-tabs,body.setup-task-embedded [data-setup-return]{display:none!important;}
body.setup-task-embedded .portal-layout{display:block!important;width:100%;height:100%;overflow:hidden;}
body.setup-task-embedded .portal-workspace{width:100%!important;height:100%;margin:0!important;max-width:none!important;}
body.setup-task-embedded .workspace-header{position:static!important;}
body.setup-task-embedded .workspace-content{max-width:none!important;}
@media(max-width:600px){.setup-workspace-dialog{width:100vw;height:100dvh;border-radius:0!important;}.setup-workspace-header{padding:10px 12px;gap:8px;}.setup-workspace-header h2{font-size:16px;}.setup-workspace-header p{display:none;}}
.owner-setup{--setup-accent:var(--accent,#456c98);width:100%;min-width:0;color:var(--text,#243248);}
.owner-setup *{box-sizing:border-box;}
.setup-summary{display:flex;align-items:center;flex-wrap:wrap;gap:20px;padding:20px 24px;background:#fff;border:1px solid var(--border,#dbe2ed);margin-bottom:16px;}
.setup-summary h2{margin:4px 0 0;font-size:22px;}
.setup-progress{margin-left:auto;display:grid;gap:6px;min-width:170px;font-size:12px;}
.setup-progress progress{width:100%;height:7px;accent-color:var(--setup-accent);}
.setup-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:18px;align-items:start;}
.setup-section-picker{display:none;}
.setup-steps{display:grid;gap:5px;align-content:start;}
.setup-steps button{display:flex;align-items:center;gap:12px;padding:11px 12px;border:1px solid transparent;background:transparent;text-align:left;min-width:0;color:inherit;cursor:pointer;}
.setup-steps button>span{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border:1px solid #d7dfeb;border-radius:50%;font-size:12px;background:#fff;}
.setup-steps button strong{font-size:13px;line-height:1.4;}
.setup-steps button[aria-current]{background:#fff;border-color:var(--setup-accent);color:var(--setup-accent);}
.setup-steps button[aria-current]>span{color:white;background:var(--setup-accent);border-color:transparent;}
.setup-content{min-width:0;margin:0;background:#fff;border:1px solid var(--border,#dbe2ed);padding:24px;}
.setup-step-heading{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#64748b;font-size:11px;margin-bottom:18px;}
.setup-content h2{font-size:23px;line-height:1.3;margin:0 0 10px;}
.setup-content h3{font-size:16px;margin:0 0 8px;}
.setup-content p{line-height:1.65;margin:0 0 18px;max-width:100%;}
.setup-welcome{max-width:840px;}
.setup-welcome h2{font-size:30px;margin-top:8px;}
.setup-cards,.setup-tasks{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:14px;margin:20px 0;}
.setup-note{min-width:0;padding:16px;background:#f5f8fc;border-left:3px solid var(--setup-accent);margin:18px 0;}
.setup-cards .setup-note{margin:0;}
.setup-note strong{display:block;margin-bottom:6px;font-size:14px;}
.setup-note p{margin:0;font-size:13px;color:#526378;}
.setup-note a{color:var(--setup-accent);text-decoration:underline;}
.setup-task{min-width:0;display:flex;flex-direction:column;gap:8px;text-align:left;padding:16px;background:#fff;border:1px solid #dce4ef;cursor:pointer;color:inherit;}
.setup-task:hover,.setup-steps button:hover{background:#f0f5fc;}
.setup-task strong{font-size:14px;display:flex;justify-content:space-between;gap:8px;}
.setup-task>span{font-size:12px;line-height:1.6;color:#64748b;}
.setup-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:20px 0;}
.setup-field{display:grid;align-content:start;gap:7px;min-width:0;font-size:13px;font-weight:600;}
.setup-field input,.setup-field textarea{display:block;width:100%;max-width:none!important;min-width:0;min-height:40px;padding:9px 11px;border:1px solid #cbd5e1;background:white;color:#253449;font:inherit;font-weight:400;line-height:1.5;}
.setup-field textarea{resize:vertical;}
.setup-field select{width:100%;min-width:0;max-width:100%;min-height:42px;padding:9px 11px;background:#fff;color:#253449;border:1px solid #cbd5e1;font:inherit;font-weight:400;line-height:1.5;}
.setup-owner-reviews{margin-top:28px;padding-top:22px;border-top:1px solid #dbe3ee;}
.setup-review-card{padding:18px;border:1px solid #dbe3ee;margin:16px 0;min-width:0;}
.setup-review-card>header{display:flex;align-items:start;gap:12px;justify-content:space-between;flex-wrap:wrap;margin-bottom:10px;}
.setup-review-card>header h3{margin:0;flex:1;min-width:160px;}
.setup-review-card>p{font-size:13px;}
.setup-review-badge{font-size:11px;line-height:1.5;padding:4px 8px;background:#edf2f8;color:#40546a;border:1px solid #dbe3ee;}
.setup-review-badge.is-due{background:#fff1d9;color:#785321;}
.setup-review-card .setup-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.setup-sources a{color:var(--setup-accent);text-decoration:underline;overflow-wrap:anywhere;}
.setup-agenda-title{margin-top:28px!important;}
.setup-owner-agenda small{display:block;font-size:11px;color:#64748b;margin-top:5px;}
.setup-owner-agenda button>strong{white-space:normal;}
.setup-progress small{color:#64748b;}
body[data-shop-layout=storefront] .setup-review-card{border-radius:12px;}
body[data-shop-layout=storefront] .setup-field select{border-radius:10px;}
body[data-shop-layout=storefront] .setup-owner-reviews>h3,body[data-shop-layout=storefront] .setup-owner-reviews>p,body[data-shop-layout=storefront] .setup-agenda-title{text-align:center;}
body[data-shop-layout=command] .setup-review-card{border-left:3px solid #4e7fa3;padding:14px;}
body[data-shop-layout=workshop] .setup-review-card{border-top:3px solid #43886d;border-radius:8px;}
body[data-shop-layout=task-map] .setup-review-card>header{border-bottom:1px solid #dbe3ee;padding-bottom:12px;}
@media(max-width:1000px){.setup-review-card .setup-fields{grid-template-columns:1fr;}.setup-review-card{padding:14px;}}
.setup-wide{grid-column:1/-1;}
.setup-check{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.65;margin:18px 0;}
.setup-check input,.setup-options input{flex:0 0 auto;width:17px;height:17px;margin:3px 0 0;accent-color:var(--setup-accent);}
.setup-options{border:0;padding:0;margin:20px 0;min-width:0;display:grid;gap:9px;}
.setup-options legend{font-size:14px;font-weight:700;margin-bottom:10px;}
.setup-options label{display:flex;gap:12px;padding:14px;border:1px solid #dbe3ee;cursor:pointer;}
.setup-options label:has(input:checked){border-color:var(--setup-accent);background:#f4f7ff;}
.setup-options label span{display:grid;gap:5px;}
.setup-options strong{font-size:14px;}
.setup-options small{font-size:12px;line-height:1.6;color:#526378;}
.setup-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0;}
.setup-comparison article{background:#f4f7fb;padding:18px;}
.setup-comparison p{font-size:13px;margin-bottom:8px;}
.setup-comparison small{display:block;color:#64748b;font-size:12px;line-height:1.6;}
.setup-sequence{padding-left:22px;display:grid;gap:16px;line-height:1.7;font-size:14px;margin:22px 0;}
.setup-sequence strong{display:block;}
.setup-readiness{display:grid;gap:8px;padding:18px;background:#eef4fb;line-height:1.6;margin:18px 0;}
.setup-readiness span{font-size:13px;}
.setup-checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.setup-checklist button{display:flex;gap:10px;align-items:center;text-align:left;min-width:0;padding:12px;border:1px solid #dbe3ee;background:white;font-size:13px;cursor:pointer;}
.setup-checklist button>strong{margin-left:auto;font-size:11px;color:#637187;white-space:nowrap;}
.setup-check-state{font-size:19px;color:#9a6b28;}
.setup-check-state.is-ready{color:#28714c;}
.setup-footer{display:flex;gap:14px;align-items:center;flex-wrap:wrap;border-top:1px solid #e0e6ef;margin-top:24px;padding-top:18px;}
.setup-footer>span{flex:1;font-size:12px;color:#64748b;}
.setup-footer .button{white-space:normal;min-height:40px;}
.setup-status{font-size:13px;color:#9f352b;min-height:20px;margin:12px 0!important;}
.setup-muted{color:#64748b;font-size:13px;}
.owner-setup :focus-visible{outline:3px solid #82aef8;outline-offset:2px;}
body[data-shop-layout=storefront] .owner-setup{--setup-accent:#6265bf;}
body[data-shop-layout=storefront] .setup-summary{justify-content:center;text-align:center;border-radius:16px;}
body[data-shop-layout=storefront] .setup-progress{margin-left:0;}
body[data-shop-layout=storefront] .setup-layout{display:block;}
body[data-shop-layout=storefront] .setup-steps{display:flex;flex-wrap:wrap;justify-content:center;margin:0 0 20px;gap:8px;}
body[data-shop-layout=storefront] .setup-steps button{border:1px solid #e0e3f1;border-radius:28px;background:#fff;padding:8px 12px;}
body[data-shop-layout=storefront] .setup-content{border-radius:16px;}
body[data-shop-layout=storefront] .setup-content>h2,body[data-shop-layout=storefront] .setup-content>p,body[data-shop-layout=storefront] .setup-welcome{text-align:center;margin-left:auto;margin-right:auto;}
body[data-shop-layout=storefront] .setup-task,body[data-shop-layout=storefront] .setup-options label,body[data-shop-layout=storefront] .setup-field input,body[data-shop-layout=storefront] .setup-field textarea{border-radius:10px;}
body[data-shop-layout=task-map] .setup-layout{grid-template-columns:1fr;}
body[data-shop-layout=task-map] .setup-steps{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;}
body[data-shop-layout=task-map] .setup-steps button{flex-direction:column;text-align:center;background:#fff;border:1px solid #dbe3ee;}
body[data-shop-layout=task-map] .setup-steps button[aria-current]{box-shadow:inset 0 -3px var(--setup-accent);}
body[data-shop-layout=command] .setup-layout{grid-template-columns:190px minmax(0,1fr);gap:10px;}
body[data-shop-layout=command] .setup-steps{background:#223345;padding:8px;color:#edf2f8;}
body[data-shop-layout=command] .setup-steps button{padding:8px;font-family:inherit;}
body[data-shop-layout=command] .setup-steps button>span{border-radius:3px;color:#334155;}
body[data-shop-layout=command] .setup-steps button[aria-current]>span{color:#fff;}
body[data-shop-layout=command] .setup-content{padding:18px;border-top:3px solid #4e7fa3;}
body[data-shop-layout=command] .setup-summary{padding:14px 18px;}
body[data-shop-layout=workshop] .setup-layout{grid-template-columns:260px minmax(0,1fr);}
body[data-shop-layout=workshop] .setup-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
body[data-shop-layout=workshop] .setup-steps button{flex-direction:column;align-items:flex-start;background:white;border:1px solid #d9e2de;border-radius:8px;min-height:92px;}
body[data-shop-layout=workshop] .setup-steps button[aria-current]{border:2px solid #43886d;background:#f1f8f4;}
body[data-shop-layout=workshop] .setup-content{border-radius:10px;border-top:4px solid #43886d;}
@media(min-width:1600px){.setup-content{padding:28px 32px;}.setup-tasks.setup-tour{grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:1000px){.setup-checklist{grid-template-columns:1fr;}body[data-shop-layout=task-map] .setup-steps{grid-template-columns:repeat(4,minmax(0,1fr));}body[data-shop-layout=workshop] .setup-layout{grid-template-columns:190px minmax(0,1fr);}}
@media(max-width:700px){
  body[data-shop-layout] .setup-layout{display:block;}
  body[data-shop-layout] .setup-summary{padding:16px;gap:12px;}
  body[data-shop-layout] .setup-steps{display:none;}
  .setup-section-picker{display:grid;gap:6px;margin:0 0 14px;font-size:12px;font-weight:600;}
  .setup-section-picker select{width:100%;max-width:100%;min-height:42px;padding:9px 12px;border:1px solid #cbd5e1;background:#fff;color:#253449;font:inherit;}
  body[data-shop-layout] .setup-steps button{flex-direction:row;align-items:center;min-height:44px;padding:8px;gap:7px;border-radius:4px;}
  body[data-shop-layout] .setup-steps button strong{font-size:12px;}
  body[data-shop-layout] .setup-content{padding:16px;}
  .setup-fields,.setup-comparison{grid-template-columns:1fr;}
  .setup-progress{margin-left:0;flex:1;}
  .setup-content h2{font-size:22px;}.setup-welcome h2{font-size:25px;}
  .setup-footer>span{flex-basis:100%;order:3;}
  .setup-footer .button:last-child{margin-left:auto;}
  .setup-checklist button{flex-wrap:wrap;}
}

/* Native dependent location lists retain the current layout’s field styling. */
.setup-jurisdiction select{appearance:auto;height:auto;min-height:42px;padding-right:28px;text-overflow:ellipsis;}
.setup-jurisdiction select:disabled{background:#f4f6f9;color:#718096;}
.setup-jurisdiction small{font-size:11px;font-weight:400;line-height:1.5;color:#64748b;}

/* Optional follow-ups live in one checklist; setup pages only link to it. */
.setup-optional{display:inline-block;vertical-align:middle;padding:4px 9px;font-size:11px;font-weight:500;color:#526378;background:#f1f4f8;border-radius:20px;}
.setup-checklist-link{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;margin-top:24px;border-top:1px solid #dbe3ee;}
.setup-checklist-link>div{min-width:0;}
.setup-checklist-link strong{font-size:13px;}
.setup-checklist-link p{margin:5px 0 0;font-size:12px;color:#64748b;}
.setup-checklist-link .button{flex-shrink:0;white-space:normal;}
.setup-checklist-overview{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;border-block:1px solid #dbe3ee;padding:14px 0;margin:22px auto;font-size:13px;max-width:1100px;}
.setup-review-group{margin:24px auto;max-width:1100px;}
.setup-review-group>h3{font-size:13px;color:#526378;margin-bottom:10px;}
.setup-review-item{min-width:0;border:1px solid #dbe3ee;background:#fff;margin-top:8px;}
.setup-review-item>summary{display:flex;align-items:center;gap:14px;cursor:pointer;list-style:none;padding:14px 16px;text-align:left;}
.setup-review-item>summary::-webkit-details-marker{display:none;}
.setup-review-item>summary::after{content:'›';font-size:24px;line-height:1;flex:0 0 12px;text-align:center;color:#64748b;}
.setup-review-item[open]>summary::after{transform:rotate(90deg);}
.setup-review-item>summary:hover{background:#f5f8fc;}
.setup-review-item>summary:focus-visible{outline:2px solid var(--setup-accent);outline-offset:2px;}
.setup-review-title{flex:1;min-width:0;}
.setup-review-title strong{display:block;font-size:13px;line-height:1.5;}
.setup-review-title small{display:block;font-size:11px;color:#64748b;margin-top:4px;line-height:1.5;}
.setup-review-item .setup-review-badge{flex-shrink:0;max-width:140px;white-space:normal;}
.setup-review-item[open]{border-color:var(--setup-accent);}
.setup-review-item[open]>summary{background:#f5f8fc;border-bottom:1px solid #dbe3ee;}
.setup-review-editor{padding:18px;text-align:left;}
.setup-review-editor>p{font-size:13px;}
.setup-review-editor .setup-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.setup-review-editor .setup-review-help{font-size:12px;color:#64748b;}
.setup-review-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.setup-review-actions .button{white-space:normal;}
.setup-review-editor .setup-review-result{margin:12px 0 0;font-size:13px;}
.setup-review-result:empty{display:none;}
.setup-review-footnote{max-width:1100px!important;margin:20px auto!important;font-size:12px;}
body[data-shop-layout=storefront] .setup-checklist-link{flex-direction:column;text-align:center;}
body[data-shop-layout=storefront] .setup-review-item{border-radius:12px;}
body[data-shop-layout=storefront] .setup-review-item>summary{border-radius:12px;}
body[data-shop-layout=storefront] .setup-review-group>h3{text-align:center;}
body[data-shop-layout=task-map] .setup-review-item[open]{box-shadow:inset 3px 0 var(--setup-accent);}
body[data-shop-layout=command] .setup-review-item{border-left:3px solid #4e7fa3;}
body[data-shop-layout=command] .setup-review-item>summary{padding:10px 12px;}
body[data-shop-layout=workshop] .setup-review-item{border-radius:8px;border-left:4px solid #43886d;}
@media(max-width:1000px){.setup-review-editor .setup-fields{grid-template-columns:1fr;}}
@media(max-width:700px){
  .setup-checklist-link{align-items:flex-start;flex-direction:column;}
  .setup-review-item>summary{padding:12px;gap:8px;flex-wrap:wrap;}
  .setup-review-title{flex-basis:calc(100% - 24px);}
  .setup-review-item>summary::after{order:0;}
  .setup-review-item .setup-review-badge{order:1;max-width:100%;}
  .setup-review-editor{padding:12px;}
}
