/* Commerce and automations reuse the established shell, tokens and controls. */
.commerce-loading{min-height:360px}
.commerce-editor{display:grid;gap:24px;max-width:1100px;margin-inline:auto}.commerce-editor-heading{margin:24px 0}.commerce-editor-steps{display:flex;gap:10px;flex-wrap:wrap;position:sticky;top:88px;z-index:3;background:var(--background);padding:12px 0}.commerce-editor-steps span{color:var(--accent)}.commerce-editor [data-editor-step]{scroll-margin-top:180px}.commerce-editor .panel{padding:clamp(22px,3vw,40px)}.commerce-editor-actions{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap;padding:20px;background:var(--surface);border:1px solid var(--border);border-radius:16px}.variant-row{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;gap:12px;align-items:end;border-bottom:1px solid var(--border);padding:16px 0}.commerce-list-layout{grid-template-columns:1fr!important}.commerce-list-layout .commerce-product-card{display:grid;grid-template-columns:180px 1fr}.commerce-product-card[hidden]{display:none}.commerce-detail-layout{max-width:720px;margin-inline:auto;grid-template-columns:1fr!important}.commerce-detail-layout .commerce-cover{max-height:540px;object-fit:contain}.commerce-filters{flex-wrap:wrap}.commerce-editor [data-upload-status]{font-size:var(--type-support);color:var(--text-secondary);padding-block:12px}.commerce-editor select,.commerce-editor input,.commerce-editor textarea{max-width:100%}.course-outline{border-block:1px solid var(--border);padding:20px 0}.commerce-module summary{cursor:pointer}.commerce-drag-over{outline:2px solid var(--accent);outline-offset:4px}.commerce-lesson-row[draggable=true]{cursor:grab}.commerce-lesson-row[draggable=true]:active{cursor:grabbing}.commerce-learner-progress{width:100%;accent-color:var(--accent)}
@media(max-width:800px){.commerce-editor-steps{position:static}.variant-row{grid-template-columns:1fr 1fr}.variant-row .btn{grid-column:1/-1}.commerce-list-layout .commerce-product-card{grid-template-columns:1fr}.commerce-editor-actions{justify-content:stretch}.commerce-editor-actions .btn{flex:1}.commerce-editor .panel{padding:20px}}
.commerce-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 20px;border-bottom:1px solid var(--border);padding-bottom:12px}
.commerce-tabs button{border:1px solid transparent;background:transparent;color:var(--text-secondary);padding:12px 16px;border-radius:10px;min-height:46px;font:inherit;font-size:var(--type-interface);cursor:pointer;transition:background var(--motion-fast),color var(--motion-fast)}
.commerce-tabs button:hover{background:var(--surface-hover);color:var(--text-primary)}
.commerce-tabs button.active{background:var(--accent-subtle);border-color:var(--accent);color:var(--text-primary)}
.commerce-tabs button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.commerce-provider-note{display:flex;align-items:center;gap:12px;padding:14px 18px;border:1px solid var(--border);border-radius:12px;background:var(--surface);margin-bottom:28px;color:var(--text-secondary);font-size:var(--type-support)}
.commerce-provider-note>.icon{flex:none;color:var(--accent)}
.commerce-provider-note>span{flex:1}.commerce-provider-note .btn{min-height:40px}
#commerce-content>.panel,#commerce-content>.commerce-two,#commerce-content>.commerce-stats{margin-bottom:24px}
.commerce-section-title .panel-heading{margin-bottom:12px}
.commerce-filters{display:grid;grid-template-columns:minmax(130px,.7fr) minmax(170px,1.5fr) repeat(2,minmax(130px,.7fr)) auto;gap:16px;align-items:end;margin:24px 0}
.commerce-filters .field{margin:0;min-width:0}.commerce-filters .btn{margin-bottom:0}
.commerce-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.commerce-stat{display:flex;flex-direction:column;gap:14px}
.commerce-stat>span{color:var(--text-secondary);font-size:var(--type-label)}
.commerce-stat>strong{font-size:clamp(25px,2.2vw,34px);font-weight:600;letter-spacing:-.04em}
.commerce-stat small{color:var(--text-muted);font-size:var(--type-fine);line-height:1.6}
.commerce-note{font-size:var(--type-support);color:var(--text-secondary);line-height:1.7;margin:18px 0;max-width:92ch}
.commerce-table-wrap{position:relative;min-width:0;overflow:auto;max-width:100%}
.commerce-table{width:100%;border-collapse:collapse;font-size:var(--type-label);text-align:left;min-width:660px}
.commerce-table th{color:var(--text-muted);font-size:var(--type-support);font-weight:500;padding:14px 12px;border-bottom:1px solid var(--border)}
.commerce-table td{padding:18px 12px;border-bottom:1px solid var(--border);vertical-align:middle}
.commerce-table td strong,.commerce-table td small{display:block}.commerce-table small{color:var(--text-muted);margin-top:6px;font-size:var(--type-fine)}
.commerce-table code{font-size:12px;color:var(--text-muted)}
.commerce-chart-empty{display:flex;align-items:center;gap:24px;min-height:145px}
.commerce-chart-empty>.icon{width:42px;height:42px;color:var(--accent)}
.commerce-chart-empty h2{font-size:var(--type-section);margin:0 0 8px}
.commerce-chart-empty p{margin:0;color:var(--text-secondary);font-size:var(--type-label)}
.commerce-revenue-chart{display:flex;gap:14px;overflow:auto;padding-top:16px}
.commerce-revenue-chart>div{display:flex;flex-direction:column;gap:10px;min-width:100px;flex:1}
.commerce-revenue-chart meter{width:100%;height:30px;accent-color:var(--accent)}
.commerce-revenue-chart meter::-webkit-meter-optimum-value{background:var(--accent)}
.commerce-revenue-chart meter::-moz-meter-bar{background:var(--accent)}
.commerce-revenue-chart small{color:var(--text-muted)}
.commerce-two{display:grid;grid-template-columns:1.1fr .9fr;gap:24px}
.commerce-two>.panel{min-width:0}.commerce-two p{line-height:1.75;color:var(--text-secondary)}
.commerce-check{display:flex;align-items:center;gap:12px;min-height:48px;margin:12px 0 24px;font-size:var(--type-interface)}
.commerce-check input{flex:none}
.commerce-divider{height:1px;background:var(--border);margin:28px 0}
.commerce-categories{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 26px}
.commerce-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin-bottom:26px}
.workspace .commerce-product-card{padding:0;overflow:hidden}
.commerce-cover{width:100%;aspect-ratio:16/9;object-fit:contain;display:block;background:var(--surface-raised);border-bottom:1px solid var(--border)}
.commerce-cover-empty{display:grid;place-items:center}.commerce-cover-empty>.icon{width:54px;height:54px;color:var(--accent)}
.commerce-product-copy{padding:24px;min-width:0}
.commerce-product-copy h2{font-size:var(--type-section);line-height:1.35;margin:16px 0 10px;overflow-wrap:anywhere}
.commerce-product-copy>p{font-size:var(--type-label);line-height:1.65;color:var(--text-secondary);white-space:pre-line;overflow-wrap:anywhere}
.commerce-product-copy>strong{display:block;font-size:22px;margin:18px 0 8px}
.commerce-product-copy>small{color:var(--text-muted)}
.commerce-card-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--text-muted)}
.commerce-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:18px}
.commerce-actions .btn{min-height:44px}
.commerce-dialog{width:min(720px,calc(100vw - 32px));max-width:720px}
.commerce-dialog textarea{font-size:16px}
.commerce-dialog .field input[type=file]{height:auto;padding:14px;max-width:100%;white-space:normal}
.commerce-builder-head{margin-bottom:24px}.commerce-builder-head>.btn{margin-bottom:20px}
.commerce-module{margin-bottom:20px}
.commerce-module .panel-heading{align-items:flex-start}
.commerce-module .panel-heading .commerce-actions{margin-top:0}
.commerce-lesson-row{display:flex;align-items:center;gap:16px;padding:18px 0;border-top:1px solid var(--border)}
.commerce-lesson-row>span{color:var(--accent);font-size:13px}
.commerce-lesson-row>div:first-of-type{flex:1;min-width:0}
.commerce-lesson-row strong{display:block;overflow-wrap:anywhere}
.commerce-lesson-row small{display:block;color:var(--text-muted);margin-top:6px;font-size:13px}
.commerce-lesson-row .commerce-actions{margin:0}
.commerce-learner .panel{margin-bottom:24px}
.commerce-learning-lesson{border-top:1px solid var(--border);padding:24px 0}
.commerce-learning-lesson video{width:100%;max-height:560px;background:var(--background);border-radius:14px;object-fit:contain}
.commerce-learning-lesson>.btn{margin:12px 8px 0 0}
.commerce-lesson-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;color:var(--text-secondary);max-width:84ch}
.commerce-referral-link{padding:18px 0;border-top:1px solid var(--border)}
.commerce-referral-link a{display:block;overflow-wrap:anywhere;color:var(--accent);font-size:14px;line-height:1.7;margin:12px 0}
.commerce-order-details{display:grid;grid-template-columns:100px 1fr;gap:16px;font-size:14px}
.commerce-order-details dt{color:var(--text-muted)}.commerce-order-details dd{margin:0;overflow-wrap:anywhere}
.storefront{max-width:1260px;padding:40px clamp(20px,4vw,52px);margin:auto;font-size:16px}
.storefront-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:60px}
.storefront-hero{padding:20px 0 48px;max-width:720px}
.storefront-hero h1{font-size:clamp(36px,5vw,60px);letter-spacing:-.045em;line-height:1.1;margin:18px 0}
.storefront-hero p{color:var(--text-secondary);font-size:16px;line-height:1.8}
.storefront .panel{padding:28px;border:1px solid var(--border);background:var(--surface);border-radius:18px}
.storefront .commerce-product-card{padding:0}
.storefront .btn{font-size:14px;min-height:46px}
.storefront .field>span{font-size:14px}.storefront .field input,.storefront .field select{font-size:16px;min-height:48px}
.storefront-status{padding:14px 18px;border:1px solid var(--border);border-radius:12px;font-size:14px;line-height:1.7;margin:24px 0;color:var(--text-secondary)}
.storefront .commerce-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.storefront .commerce-tabs{margin-top:26px}
.storefront .commerce-note{font-size:14px}
.commerce-upload-progress{height:8px;width:100%;accent-color:var(--accent)}
#automation-root{display:grid;gap:24px}
#automation-root .notice{display:flex;align-items:flex-start;gap:16px;padding:22px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}
#automation-root .notice>.icon{color:var(--accent);flex:none}
#automation-root .notice p{margin:8px 0 0;font-size:var(--type-label);line-height:1.7;color:var(--text-secondary)}
/* Automations: a grid of platform cards, then a step-by-step screen per platform (reuses the course wizard bar). */
.automation-platform-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.automation-platform-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:12px;min-width:0;min-height:400px;padding:64px 32px 28px;text-align:center;font:inherit;color:var(--text-primary);background:var(--surface-raised);border:1px solid var(--border);border-radius:var(--radius-lg);cursor:pointer;transition:border-color var(--motion-fast) var(--ease-standard),background var(--motion-fast) var(--ease-standard)}
.automation-platform-card:hover{border-color:var(--accent);background:var(--surface-hover)}
.automation-platform-card:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.automation-platform-card>.badge{position:absolute;top:16px;right:16px}
.automation-platform-mark{display:grid;place-items:center;width:128px;height:128px;margin:8px 0 20px;border-radius:32px;background:var(--surface);border:1px solid var(--border);transition:border-color var(--motion-fast) var(--ease-standard),box-shadow var(--motion-standard) var(--ease-standard)}
.automation-platform-mark .platform-icon{width:72px;height:72px;border:0;background:transparent}
.automation-platform-mark .platform-icon svg{width:48px;height:48px}
.automation-platform-card:hover .automation-platform-mark,.automation-platform-card:focus-visible .automation-platform-mark{border-color:var(--accent);box-shadow:0 0 40px 4px var(--accent-glow);animation:automation-mark-float 1.8s var(--ease-standard) infinite}
@keyframes automation-mark-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@media (prefers-reduced-motion:reduce){.automation-platform-card:hover .automation-platform-mark,.automation-platform-card:focus-visible .automation-platform-mark{animation:none}}
.automation-platform-card>strong{font-size:var(--type-section)}
.automation-platform-summary{font-size:var(--type-label);line-height:1.6;color:var(--text-secondary)}
.automation-platform-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px 16px;width:100%;padding-top:14px;margin-top:auto;border-top:1px solid var(--border);font-size:var(--type-support);color:var(--text-muted);overflow-wrap:anywhere}
.automation-platform-open{display:inline-flex;align-items:center;gap:6px;padding-top:6px;font-size:var(--type-label);font-weight:600;color:var(--accent)}
.automation-platform-open .icon{width:16px;height:16px}
.automation-wizard{display:grid;gap:18px;max-width:960px;width:100%;margin-inline:auto}
.automation-wizard-bar .platform-icon{width:36px;height:36px;flex:none}
.automation-wizard-bar .save-state.is-pending::before{background:var(--text-muted)}
.automation-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:6px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}
.automation-steps button{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--text-secondary);font:inherit;font-size:var(--type-label);cursor:pointer}
.automation-steps button span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--surface-hover);font-size:var(--type-fine);font-variant-numeric:tabular-nums}
.automation-steps button:hover{background:var(--surface-hover)}
.automation-steps button[aria-current=step]{color:var(--text-primary);background:var(--accent-subtle);border-color:var(--accent)}
.automation-steps button[aria-current=step] span{background:var(--accent);color:var(--on-accent)}
.automation-steps button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.automation-step{display:grid;gap:16px}
.automation-step h2{font-size:var(--type-section);margin:0}
.automation-step-intro{margin:0;font-size:var(--type-label);line-height:1.7;color:var(--text-secondary)}
.automation-step-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.automation-account-list{display:grid;gap:12px}
.automation-account{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:18px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-raised)}
.automation-account>div:first-child{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;min-width:0}
.automation-account small{flex-basis:100%;font-size:var(--type-support);color:var(--text-secondary)}
.automation-account-actions{display:flex;gap:10px;flex-wrap:wrap}
@media(max-width:760px){.automation-platform-grid{grid-template-columns:1fr}.automation-platform-card{min-height:0}.automation-steps button{flex-direction:column;gap:4px;font-size:var(--type-fine)}.automation-account-actions{width:100%}.automation-account-actions .btn{flex:1;justify-content:center}}
.automation-rule-list{display:grid;gap:18px}
.automation-rule{display:flex;align-items:flex-start;gap:24px;padding:24px 0;border-top:1px solid var(--border)}
.automation-rule>div:first-child{flex:1;min-width:0}
.automation-rule-title{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.automation-rule-title h3{font-size:var(--type-section);margin:0}
.automation-rule p{font-size:var(--type-label);color:var(--text-secondary);line-height:1.7}
.automation-rule small{font-size:var(--type-support);color:var(--text-muted)}
.automation-template{padding:16px;border-left:2px solid var(--accent);background:var(--accent-subtle);border-radius:0 10px 10px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.automation-rule-actions{display:flex;gap:10px;flex-wrap:wrap;max-width:320px}
.automation-history{display:grid;gap:18px}
.automation-history>article{padding:20px;border:1px solid var(--border);border-radius:12px;background:var(--surface-raised);display:grid;grid-template-columns:1fr auto;gap:12px}
.automation-history small{display:block;color:var(--text-muted);font-size:13px;margin-top:7px}
.automation-history p,.automation-history details{grid-column:1/-1;font-size:14px;line-height:1.7;margin:0;color:var(--text-secondary);overflow-wrap:anywhere}
.automation-history summary{cursor:pointer;min-height:40px}
#automation-test-result{margin-top:20px;font-size:14px;line-height:1.7}
#automation-test-result blockquote{margin:16px 0;padding:16px;border-left:2px solid var(--accent);background:var(--accent-subtle);white-space:pre-wrap}
@media(max-width:1200px){
  .commerce-product-grid,.storefront .commerce-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .commerce-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .commerce-filters{grid-template-columns:1fr 1fr}.commerce-filters .btn{justify-self:start}
  .commerce-two{grid-template-columns:1fr}
}
@media(max-width:767px){
  .commerce-tabs{gap:4px}.commerce-tabs button{padding:10px 12px;font-size:13px}
  .commerce-provider-note{flex-wrap:wrap}.commerce-provider-note .btn{margin-left:32px}
  .commerce-product-grid,.storefront .commerce-product-grid{grid-template-columns:1fr}
  .commerce-stats{gap:12px}.commerce-stat{padding:16px!important}.commerce-stat>strong{font-size:24px}
  .commerce-filters{gap:12px}.commerce-filters .field:nth-child(2){grid-column:span 2;grid-row:1}
  .commerce-filters .field input{max-width:100%;min-width:0}
  .commerce-chart-empty{align-items:flex-start;gap:16px}.commerce-chart-empty>.icon{width:28px;flex:none}
  .commerce-product-copy{padding:20px}
  .commerce-lesson-row{flex-wrap:wrap}.commerce-lesson-row .commerce-actions{width:100%;margin-left:28px}
  .commerce-module .panel-heading{flex-direction:column}
  #automation-root .account-grid{grid-template-columns:1fr}
  .automation-rule{flex-direction:column;gap:12px}
  .automation-history>article{grid-template-columns:1fr}
  #automation-root .panel-heading{flex-wrap:wrap}
  .storefront{padding:24px 18px}.storefront-header{margin-bottom:28px;flex-wrap:wrap}
  .storefront-hero{padding-bottom:24px}.storefront .panel{padding:20px}.storefront .commerce-product-card{padding:0}
}
@media(prefers-reduced-motion:reduce){.commerce-tabs button{transition:none}}
/* Plan billing follows the existing workspace surfaces and motion primitives. */
.billing-plans{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-block:24px}
.billing-plan{display:flex;flex-direction:column;gap:16px;padding:clamp(24px,3vw,40px)}
.billing-plan h2{font-size:28px;margin:0}.billing-plan p{margin:0;line-height:1.6}.billing-plan .eyebrow{color:var(--accent);font-size:13px;letter-spacing:.1em}
.billing-price{font-size:44px;font-weight:650;color:var(--text-primary)}.billing-price span{font-size:16px;color:var(--text-secondary);font-weight:400}
.billing-plan .btn{margin-top:auto;min-height:48px}.billing-plan small{color:var(--text-secondary);font-size:13px}
.billing-summary{display:flex;align-items:center;justify-content:space-between;gap:24px}.billing-summary strong{font-size:20px}.billing-summary p{color:var(--text-secondary);line-height:1.6}
.billing-actions{display:flex;flex-wrap:wrap;gap:12px}.billing-setup{margin-bottom:24px}.billing-setup p{line-height:1.6}
.billing-details li{margin-block:12px;color:var(--text-secondary);line-height:1.65}.billing-details ul{padding-left:20px}.billing-details .btn{margin-top:12px}
@media(max-width:900px){.billing-summary{align-items:stretch;flex-direction:column}}
@media(max-width:600px){.billing-plans{grid-template-columns:1fr;gap:16px}.billing-plan{padding:24px}.billing-actions .btn{flex:1}.billing-price{font-size:38px}}
/* Monetisation visual refinement: shared rhythm, controls and tiles across the commerce sections. */
#commerce-content .panel:not(.commerce-product-copy)>p{margin:0 0 16px;font-size:var(--type-label);line-height:1.7;color:var(--text-secondary);max-width:92ch}
#commerce-content .panel:not(.commerce-product-copy)>p:last-child{margin-bottom:0}
#commerce-content .panel h3{font-size:var(--type-interface);margin:28px 0 12px}
#commerce-content .panel>h3:first-child,#commerce-content article.panel>h3:first-of-type{margin-top:0}
.commerce-actions+.panel-heading,.commerce-actions+h3,.commerce-actions+.eyebrow,.commerce-actions+.panel,.commerce-actions+.commerce-stats,.commerce-actions+.commerce-note,.commerce-filters+.commerce-actions{margin-top:28px}
#commerce-content .eyebrow{margin:32px 0 14px}
.commerce-editor-heading,.commerce-editor-steps{max-width:1100px;margin-inline:auto;width:100%}
.commerce-editor-heading{display:grid;gap:16px;justify-items:start}.commerce-editor-heading .panel-heading{margin:4px 0 0;width:100%}
.commerce-editor-heading .save-state,.commerce-builder-head .save-state{display:inline-flex;align-items:center;gap:8px;font-size:var(--type-fine);color:var(--text-muted)}
.commerce-editor-steps{border-bottom:1px solid var(--border);margin-bottom:8px}
.commerce-editor-steps .btn span{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--accent-subtle);font-size:11px;margin-right:4px}
.commerce-editor-actions{position:sticky;bottom:16px;z-index:3;box-shadow:var(--shadow);background:color-mix(in srgb,var(--surface) 92%,transparent);backdrop-filter:blur(12px)}
.commerce-builder-head{display:grid;gap:16px;justify-items:start}.commerce-builder-head>.btn{margin-bottom:4px}.commerce-builder-head .panel-heading{width:100%;margin-bottom:0}
#commerce-content input[type=file],.commerce-dialog input[type=file]{width:100%;max-width:100%;padding:12px;border:1px dashed var(--border-strong);border-radius:var(--radius-sm);background:var(--background);color:var(--text-secondary);font:inherit;font-size:var(--type-label);cursor:pointer;transition:border-color var(--motion-fast),background var(--motion-fast)}
#commerce-content input[type=file]:hover,.commerce-dialog input[type=file]:hover{border-color:var(--accent);background:var(--accent-subtle)}
#commerce-content input[type=file]:focus-visible,.commerce-dialog input[type=file]:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
#commerce-content input[type=file]::file-selector-button,.commerce-dialog input[type=file]::file-selector-button{margin-right:14px;min-height:36px;padding:8px 14px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-raised);color:var(--text-primary);font:inherit;font-weight:600;cursor:pointer}
#commerce-content details{margin-top:16px;border-top:1px solid var(--border);padding-top:14px;font-size:var(--type-label);color:var(--text-secondary)}
#commerce-content details>summary{display:flex;align-items:center;gap:10px;min-height:40px;cursor:pointer;list-style:none;color:var(--text-primary);font-weight:550;width:max-content;max-width:100%}
#commerce-content details>summary::-webkit-details-marker{display:none}
#commerce-content details>summary::before{content:'';flex:none;width:7px;height:7px;border-right:2px solid var(--accent);border-bottom:2px solid var(--accent);transform:rotate(-45deg);transition:transform var(--motion-fast) var(--ease-standard)}
#commerce-content details[open]>summary::before{transform:rotate(45deg)}
#commerce-content details>summary:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:6px}
#commerce-content details ul{margin:12px 0;padding-left:20px;line-height:1.7}#commerce-content details li{margin-block:6px}
#commerce-content details.commerce-module{margin-top:0;border-top:1px solid var(--border);padding-top:clamp(22px,3vw,32px)}
.commerce-stats:not(:has(>.panel)){grid-template-columns:repeat(auto-fit,minmax(180px,1fr));margin:8px 0 24px}
.commerce-stats:not(:has(>.panel))>div{display:flex;flex-direction:column;gap:6px;padding:20px 22px;background:var(--surface-raised);border:1px solid var(--border);border-radius:var(--radius);min-width:0}
.commerce-stats:not(:has(>.panel))>div>h2,.commerce-stats:not(:has(>.panel))>div>strong{margin:0;font-size:clamp(24px,2vw,32px);font-weight:600;letter-spacing:-.03em;color:var(--text-primary)}
.commerce-stats:not(:has(>.panel))>div>p,.commerce-stats:not(:has(>.panel))>div>span{margin:0;font-size:var(--type-support);line-height:1.6;color:var(--text-secondary)}
.commerce-stats:not(:has(>.panel))>div:first-child>h2{color:var(--accent)}
form[data-commerce-form=ambassador-estimate]{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:end}
form[data-commerce-form=ambassador-estimate] .field{margin:0}form[data-commerce-form=ambassador-estimate]>output,form[data-commerce-form=ambassador-estimate]>.form-error{grid-column:1/-1}
form[data-commerce-form=ambassador-estimate]>.btn{min-height:44px;justify-self:start}
form[data-commerce-form=ambassador] textarea{max-width:760px}
#commerce-content .field input[readonly]{color:var(--text-secondary);background:var(--surface-raised)}
.commerce-order-details{grid-template-columns:minmax(120px,max-content) 1fr;column-gap:32px;row-gap:12px;margin:20px 0 24px;padding:18px 20px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-raised)}
#commerce-content .commerce-product-grid>article.panel:not(.commerce-product-card,.commerce-product-copy){display:flex;flex-direction:column;gap:8px;padding:24px;background:var(--surface-raised);min-width:0}
#commerce-content .commerce-product-grid>article.panel:not(.commerce-product-card,.commerce-product-copy)>p{margin:0}.commerce-product-grid>article.panel:not(.commerce-product-card,.commerce-product-copy)>.btn,.commerce-product-grid>article.panel:not(.commerce-product-card,.commerce-product-copy)>.badge{align-self:flex-start;margin-top:auto}
#commerce-content .commerce-product-grid>article.panel:not(.commerce-product-card,.commerce-product-copy)>.commerce-cover{margin:-24px -24px 12px;width:calc(100% + 48px);max-width:none}
.commerce-filters .btn{min-height:44px}
@media(min-width:1201px){.commerce-filters{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}.commerce-filters .btn{justify-self:start;padding-inline:24px}}
@media(max-width:767px){
  .commerce-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity;-webkit-mask-image:linear-gradient(90deg,#000 85%,transparent);mask-image:linear-gradient(90deg,#000 85%,transparent);padding-right:32px}
  .commerce-tabs::-webkit-scrollbar{display:none}.commerce-tabs button{flex:none;white-space:nowrap;scroll-snap-align:start}
  form[data-commerce-form=ambassador-estimate]{grid-template-columns:1fr}form[data-commerce-form=ambassador-estimate]>.btn{justify-self:stretch}
  .commerce-order-details{grid-template-columns:1fr;row-gap:4px}.commerce-order-details dd{margin-bottom:10px}
  .commerce-editor-actions{bottom:8px;padding:12px}
  .commerce-stats:not(:has(>.panel))>div{padding:16px}
}
@media(prefers-reduced-motion:reduce){#commerce-content details>summary::before{transition:none}}
/* Course studio: list hero, view switch and the three-step course wizard. */
.course-switch{display:inline-flex;gap:6px;padding:6px;margin:0 0 24px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}
.course-switch :is(button,a){display:flex;align-items:center;gap:12px;min-height:52px;padding:8px 18px 8px 10px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--text-secondary);font:inherit;text-align:left;cursor:pointer;transition:background var(--motion-fast),color var(--motion-fast)}
.course-switch :is(button,a)>.icon{width:34px;height:34px;padding:8px;border-radius:9px;background:var(--surface-hover);flex:none}
.course-switch :is(button,a) span{display:grid;gap:2px}.course-switch strong{font-size:var(--type-label);font-weight:600;color:var(--text-primary)}.course-switch small{font-size:var(--type-fine);color:var(--text-muted)}
.course-switch :is(button,a):hover{background:var(--surface-hover)}.course-switch :is(button,a).active{background:var(--surface-raised);border-color:var(--border-strong)}
.course-switch :is(button,a).active>.icon{background:var(--accent);color:var(--on-accent)}
.course-switch :is(button,a):focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.course-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:clamp(24px,3vw,36px);margin-bottom:28px;border:1px solid var(--border);border-radius:var(--radius-lg);background:linear-gradient(135deg,var(--surface-raised),var(--surface))}
.course-hero h2{font-size:clamp(28px,2.4vw,38px);letter-spacing:-.03em;margin:10px 0 8px}
.course-hero p{margin:0;color:var(--text-secondary);font-size:var(--type-interface)}
#commerce-content .course-hero-eyebrow{display:flex;align-items:center;gap:10px;font-size:var(--type-fine);font-weight:650;letter-spacing:.16em;text-transform:uppercase;color:var(--accent)}
.course-hero-eyebrow .icon{width:26px;height:26px;padding:5px;border-radius:50%;background:var(--accent-subtle)}
.course-hero>.btn{flex:none;min-height:46px;padding-inline:20px}
.course-empty{position:relative;display:grid;justify-items:center;text-align:center;gap:12px;padding:clamp(40px,6vw,72px) 24px;border:1px dashed var(--border-strong);border-radius:var(--radius-lg);background:var(--surface)}
.course-empty-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:16px;background:linear-gradient(135deg,var(--accent-hover),var(--accent-pressed));color:var(--on-accent);box-shadow:0 12px 32px var(--accent-glow)}
.course-empty h3{font-size:clamp(20px,1.6vw,24px);margin:8px 0 0}.course-empty p{max-width:52ch;margin:0;color:var(--text-secondary);line-height:1.7;font-size:var(--type-label)}.course-empty .btn{margin-top:10px}
.course-wizard{max-width:960px;margin-inline:auto;display:grid;gap:20px}
.course-wizard-bar{position:sticky;top:calc(var(--header-height) + 8px);z-index:4;display:flex;align-items:center;gap:14px;padding:12px 14px;border:1px solid var(--border);border-radius:var(--radius);background:color-mix(in srgb,var(--surface) 90%,transparent);backdrop-filter:blur(12px)}
.course-wizard-back{display:grid;place-items:center;width:40px;height:40px;flex:none;border:1px solid var(--border);border-radius:10px;background:var(--surface-raised);color:var(--text-primary);cursor:pointer}
.course-wizard-back .icon{transform:rotate(180deg)}.course-wizard-back:hover{background:var(--surface-hover)}.course-wizard-back:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.course-wizard-title{display:grid;gap:3px;min-width:0;flex:1}.course-wizard-title strong{font-size:var(--type-interface);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.course-wizard-title .save-state{display:inline-flex;align-items:center;gap:7px;font-size:var(--type-fine);color:var(--text-muted)}
.course-wizard-title .save-state::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--success)}
.course-wizard-bar-actions{display:flex;gap:10px;flex:none}.course-wizard-bar-actions .btn,.course-wizard-nav .btn{display:inline-flex;align-items:center;gap:8px;min-height:42px}
.course-wizard-bar-actions .icon,.course-wizard-nav .icon{width:17px;height:17px}
.course-stepper{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:6px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}
.course-stepper button{display:flex;align-items:center;gap:10px;min-height:56px;padding:8px 14px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--text-secondary);font:inherit;text-align:left;cursor:pointer;min-width:0;transition:background var(--motion-fast),color var(--motion-fast)}
.course-stepper button>.icon{width:18px;height:18px;flex:none}
.course-step-number{display:grid;place-items:center;width:24px;height:24px;flex:none;border-radius:50%;background:var(--surface-hover);font-size:12px;font-weight:650}
.course-step-number .icon{width:14px;height:14px}
.course-step-label{display:grid;gap:2px;min-width:0}.course-step-label strong{font-size:var(--type-label);font-weight:600;color:var(--text-primary)}.course-step-label small{font-size:var(--type-fine);color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.course-stepper button:hover{background:var(--surface-hover)}
.course-stepper button.done .course-step-number{background:rgba(50,201,138,.16);color:var(--success)}
.course-stepper button.active{background:var(--text-primary);color:var(--background)}
.course-stepper button.active .course-step-label strong{color:var(--background)}.course-stepper button.active .course-step-label small{color:#4A4A52}
.course-stepper button.active .course-step-number{background:var(--accent);color:var(--on-accent)}
.course-stepper button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.course-wizard-form{display:grid;gap:20px}
#commerce-content .course-step{padding:clamp(22px,3vw,32px)}
.course-step-heading{display:flex;align-items:flex-start;gap:14px;margin-bottom:26px}
.course-step-heading>div{flex:1;min-width:0}.course-step-heading h2{font-size:var(--type-section);margin:0 0 4px;outline:none}
#commerce-content .course-step-heading p{margin:0;color:var(--text-secondary);font-size:var(--type-label)}
.course-step-heading>.btn{flex:none}
.course-step-icon{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:12px;border:1px solid var(--border);background:var(--surface-raised);color:var(--accent)}
.course-step-icon .icon{width:20px;height:20px}
.course-details-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr);gap:24px;align-items:start}
.course-wizard .field>span small{font-size:var(--type-fine);letter-spacing:0;color:var(--text-muted);font-variant-numeric:tabular-nums}
.course-wizard textarea{resize:vertical;min-height:170px}
.course-cover-field>small{line-height:1.6}
.course-cover-drop{position:relative;display:grid;place-items:center;aspect-ratio:16/9;overflow:hidden;border:1px dashed var(--border-strong);border-radius:var(--radius);background:var(--background);cursor:pointer;transition:border-color var(--motion-fast),background var(--motion-fast)}
.course-cover-drop:hover,.course-cover-drop:focus-within{border-color:var(--accent);background:var(--accent-subtle)}
.course-cover-drop:focus-within{outline:2px solid var(--accent);outline-offset:3px}
.course-cover-drop img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.course-cover-empty{position:relative;display:grid;justify-items:center;gap:10px;padding:16px;text-align:center;color:var(--text-secondary);font-size:var(--type-support)}
.course-cover-empty .icon{width:34px;height:34px;color:var(--text-muted)}
.course-cover-drop.has-image .course-cover-empty{align-self:end;justify-self:stretch;grid-auto-flow:column;justify-content:center;align-items:center;padding:10px;background:linear-gradient(transparent,rgba(0,0,0,.78));color:var(--text-primary);opacity:0;transition:opacity var(--motion-fast)}
.course-cover-drop.has-image .course-cover-empty .icon{width:18px;height:18px;color:inherit}
.course-cover-drop.has-image:hover .course-cover-empty,.course-cover-drop.has-image:focus-within .course-cover-empty{opacity:1}
#commerce-content .course-cover-drop input,.upload-drop input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;padding:0;border:0}
.course-price-grid{display:grid;grid-template-columns:minmax(0,320px) minmax(0,260px);gap:16px;align-items:start}
.course-step-empty{display:grid;justify-items:center;gap:10px;text-align:center;padding:40px 20px;border:1px dashed var(--border-strong);border-radius:var(--radius);background:var(--background)}
.course-step-empty>.icon{width:36px;height:36px;color:var(--accent)}
#commerce-content .course-step-empty h3{margin:4px 0 0;font-size:var(--type-interface)}
#commerce-content .course-step-empty p{max-width:48ch;margin:0;color:var(--text-secondary);font-size:var(--type-label);line-height:1.7}.course-step-empty .btn{margin-top:8px}
.course-curriculum{display:grid;gap:16px}
#commerce-content .course-step .commerce-module{margin:0;padding:20px 22px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-raised)}
.course-curriculum .commerce-module>.btn{margin-top:14px}
.lesson-tag{display:inline-flex;align-items:center;gap:5px;margin-right:12px;color:var(--text-secondary)}.lesson-tag .icon{width:14px;height:14px;color:var(--accent)}
.course-wizard-nav{display:flex;justify-content:space-between;gap:12px}
.course-wizard-nav .btn[disabled]{opacity:.4;cursor:not-allowed}
.lesson-video-field{gap:10px}
.lesson-video-preview video{display:block;width:100%;max-height:300px;border-radius:var(--radius);background:#000;object-fit:contain}
.upload-drop{position:relative;display:flex;align-items:center;gap:14px;padding:18px;border:1px dashed var(--border-strong);border-radius:var(--radius);background:var(--background);cursor:pointer;transition:border-color var(--motion-fast),background var(--motion-fast)}
.upload-drop:hover,.upload-drop:focus-within{border-color:var(--accent);background:var(--accent-subtle)}.upload-drop:focus-within{outline:2px solid var(--accent);outline-offset:3px}
.upload-drop>.icon{width:40px;height:40px;padding:9px;flex:none;border-radius:11px;background:var(--accent-subtle);color:var(--accent)}
.upload-drop>span{display:grid;gap:3px;min-width:0}.upload-drop strong{font-size:var(--type-label);color:var(--text-primary);overflow-wrap:anywhere}.upload-drop small{font-size:var(--type-fine);color:var(--text-muted)}
.upload-too-large .upload-drop{border-color:var(--danger)}.upload-too-large .upload-drop small{color:var(--danger)}
@media(max-width:900px){.course-details-grid{grid-template-columns:1fr}}
@media(max-width:767px){
  .course-switch{display:grid;grid-template-columns:1fr 1fr;width:100%}.course-switch :is(button,a){padding:8px 10px;gap:10px}.course-switch small{display:none}
  .course-hero{flex-direction:column;align-items:stretch}.course-hero>.btn{justify-content:center}
  .course-wizard-bar{top:calc(var(--header-height) + 4px);flex-wrap:wrap}.course-wizard-bar-actions{width:100%}.course-wizard-bar-actions .btn{flex:1;justify-content:center}
  .course-stepper button{flex-direction:column;align-items:flex-start;gap:6px;padding:10px}.course-stepper button>.icon{display:none}.course-step-label small{display:none}
  .course-step-heading{flex-wrap:wrap}.course-step-heading>.btn{width:100%}
  .course-price-grid{grid-template-columns:1fr}
  .course-wizard-nav .btn{flex:1;justify-content:center}
}
@media(prefers-reduced-motion:reduce){.course-switch :is(button,a),.course-stepper button,.course-cover-drop,.course-cover-empty,.upload-drop{transition:none}}
.commerce-dialog .upload-drop input[type=file]{height:100%;padding:0;border:0}
.merch-toolbar .merch-switch{margin:0;max-width:100%}
.course-actions-menu{position:relative;display:inline-block;flex:none;text-align:left}
#commerce-content details.course-actions-menu{margin:0;padding:0;border:0}
#commerce-content .course-actions-menu>summary{display:grid;place-items:center;width:42px;max-width:none;gap:0;padding:0}
#commerce-content .course-actions-menu>summary::before{content:none}
.course-actions-menu summary{display:grid;place-items:center;list-style:none;cursor:pointer;width:42px;height:42px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);color:var(--text-secondary)}
.course-actions-menu summary::-webkit-details-marker{display:none}
.course-actions-menu summary:hover,.course-actions-menu[open] summary{background:var(--surface-hover);color:var(--text-primary)}
.course-actions-menu summary:focus-visible,.course-actions-options button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.course-actions-menu summary .icon{width:20px;height:20px}
.course-actions-options{position:absolute;right:0;top:calc(100% + 6px);z-index:20;min-width:190px;padding:6px;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface-raised);box-shadow:var(--shadow)}
.course-actions-options button{display:block;width:100%;border:0;border-radius:6px;background:transparent;color:var(--text-primary);text-align:left;padding:12px;font:inherit;font-size:13px;white-space:nowrap}
.course-actions-options button:hover{background:var(--surface-hover)}
.course-actions-options .course-delete-action{color:var(--danger)}
.ambassador-studio{--ambassador-orange:var(--accent);--ambassador-purple:#b58fff;--ambassador-green:#47d297;min-width:0;display:grid;gap:28px}
.ambassador-studio>.panel{margin:0;padding:28px;border-radius:20px}
.ambassador-studio>.panel p{line-height:1.8;max-width:76ch}
.ambassador-hero{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,1fr);gap:24px 28px;padding:38px 38px 0;border:1px solid #ff5b1655;border-radius:24px;background:radial-gradient(ellipse at 8% 15%,#ff5b1652 0,transparent 65%),radial-gradient(ellipse at 98% 0%,#8455db66 0,transparent 55%),radial-gradient(ellipse at 90% 100%,#16825d66 0,transparent 55%),#171318;color:#fff5ef}
.ambassador-hero::before{content:'';position:absolute;inset:0;background-image:radial-gradient(#ffffff12 1px,transparent 1px);background-size:22px 22px;z-index:-1;pointer-events:none}
.ambassador-kicker{display:block;font-size:10px;line-height:1.6;font-weight:650;letter-spacing:1.6px}
.ambassador-hero-copy{padding:4px 0 12px;z-index:1}
.ambassador-hero h2{font-size:clamp(32px,3.1vw,50px);letter-spacing:-1.8px;line-height:1.07;margin:20px 0;max-width:570px;font-weight:650;color:#fff5ef}
.ambassador-hero h2 em{font:inherit;color:#ff8853;text-decoration:underline;text-decoration-color:#ff5b1666;text-underline-offset:9px;text-decoration-thickness:2px}
.ambassador-hero-copy>p{font-size:14px;line-height:1.8;color:#e5d6d1;max-width:430px}
.ambassador-hero .ambassador-hero-cta{background:var(--ambassador-orange);color:var(--on-accent);min-height:54px;min-width:210px;max-width:100%;border-radius:12px;padding:15px 28px;margin-top:24px;font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;box-shadow:0 6px 18px #64231122}
.ambassador-hero-cta>span{font-size:21px;margin-left:16px}
.ambassador-hero .ambassador-hero-cta:hover{background:var(--accent-hover);box-shadow:0 10px 24px #ff5b1630}
.ambassador-hero-copy>small{display:block;font-size:10px;color:#cdbdbb;margin-top:14px;line-height:1.6}
.ambassador-orbit{position:relative;display:grid;place-items:center;min-height:300px;min-width:0}
.ambassador-globe{position:relative;min-width:0;align-self:center;width:100%;height:570px}
.ambassador-globe canvas{display:block;width:100%;height:570px;cursor:grab;touch-action:pan-y;border-radius:18px}
.ambassador-globe[data-globe-dragging] canvas{cursor:grabbing}
.ambassador-globe canvas:focus-visible{outline:2px solid var(--ambassador-purple,#b58fff);outline-offset:4px}
.ambassador-globe-overlay{position:absolute;inset:0;display:block;width:100%;height:100%;overflow:hidden;pointer-events:none}
.globe-callout-connector{fill:none;stroke-width:1;stroke-linejoin:round;stroke-linecap:round}
.globe-callout-surface{fill:#161318;fill-opacity:1;stroke-opacity:.8;stroke-width:.8;stroke-linejoin:round}
.globe-callout-corners{fill:none;stroke-width:1.7;stroke-linejoin:round}
.globe-callout-title{fill:#fff5ef;font:550 12px var(--font,'Segoe UI',sans-serif)}
.globe-callout-caption{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ambassador-globe-controls{position:absolute;left:0;right:0;bottom:8px;display:flex;justify-content:flex-end;align-items:center;gap:12px}
.ambassador-globe-controls button{flex:none;border:1px solid #ffffff30;border-radius:8px;background:#171318e8;padding:8px 10px;color:#f7edf5;font:600 10px var(--font,'Segoe UI',sans-serif);min-height:36px;cursor:pointer}
.ambassador-globe-controls button:hover{border-color:#ff8853;background:#342322}
.ambassador-globe-controls button:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media(max-width:767px){.ambassador-globe{height:480px;margin:10px auto 8px;max-width:390px}.ambassador-globe canvas{height:480px}}
@media(prefers-reduced-motion:reduce){.ambassador-globe *{transition:none!important;animation:none!important}}

.ambassador-hero .ambassador-kicker{color:#ffab82}
.ambassador-rate-strip>div:nth-child(1) strong{color:#ff8853}
.ambassador-rate-strip>div:nth-child(2) strong{color:var(--ambassador-purple)}
.ambassador-rate-strip>div:nth-child(3) strong{color:var(--ambassador-green)}
.ambassador-network .ambassador-orbit-ring{width:275px;height:275px;border-color:#b58fff60;transform:rotate(-20deg)}
.ambassador-network .ambassador-orbit-ring::after{border-color:#47d29760;inset:22px -16px}
.ambassador-network-core{position:relative;display:grid;place-items:center;width:188px;height:188px;border-radius:50%;background:radial-gradient(circle,#ff5b161c,#171318 75%);border:1px solid #ff5b1680;box-shadow:0 0 45px #ff5b1625,0 15px 50px #0005}
.ambassador-network-core img{width:150px;height:150px;object-fit:contain;border-radius:50%;filter:drop-shadow(0 0 10px #ff5b1620)}
.ambassador-network-caption{position:absolute;bottom:0;left:0;right:0;text-align:center;color:#e1d7e7;font-size:11px;font-weight:550;letter-spacing:.3px}
.ambassador-network .ambassador-float{background:#221d29;border-color:#ffffff25;box-shadow:0 8px 24px #0003}
.ambassador-network .ambassador-float-link{background:#43291e;border-color:#ff5b1670}
.ambassador-network .ambassador-float-rocket{background:#302542;border-color:#b58fff70}
.ambassador-network .ambassador-float-heart{background:#15382e;border-color:#47d29770;bottom:20px}
.ambassador-orbit-ring{position:absolute;width:285px;height:285px;max-width:100%;border:1px solid #fff6e97d;border-radius:50%;transform:rotate(-20deg)}
.ambassador-orbit-ring::after{content:'';position:absolute;inset:20px -16px;border:1px dashed #69341b42;border-radius:50%;transform:rotate(-25deg)}
.ambassador-invite{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:17px;width:245px;max-width:90%;padding:28px 18px 23px;background:#fff6e9f2;border:1px solid #fff8e9;border-radius:20px;box-shadow:0 22px 45px #81361729;transform:rotate(-5deg)}
.ambassador-invite-top{font-size:8px;letter-spacing:1.4px;color:#754b3d;font-weight:600}
.ambassador-invite-symbol{font-size:56px;line-height:1;color:#f25819}
.ambassador-invite>strong{font-size:24px;line-height:1.15;letter-spacing:-.9px}
.ambassador-invite-people{display:flex;align-items:center;gap:5px;font-size:8px;color:#704b3c;border-top:1px solid #552d1922;padding-top:17px;width:100%;justify-content:center}
.ambassador-invite-people i{font-style:normal;color:#f25819}
.ambassador-float{position:absolute;z-index:2;font-size:34px;display:grid;place-items:center;width:62px;height:62px;border-radius:18px;background:#fff8ebc9;border:1px solid #fff6e9;box-shadow:0 8px 24px #6f32161f;animation:ambassador-bob 6s ease-in-out infinite}
.ambassador-float-link{left:0;top:20px;transform:rotate(-12deg)}
.ambassador-float-rocket{right:-5px;top:65px;animation-delay:-2s}
.ambassador-float-heart{right:20px;bottom:5px;animation-delay:-4s}
.ambassador-rate-strip{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;border-top:1px solid #ffffff20;padding:23px 0}
.ambassador-rate-strip>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 12px}
.ambassador-rate-strip strong{font-size:25px;letter-spacing:-.8px}
.ambassador-rate-strip span{font-size:10px;color:#cdbdbb}
.ambassador-section-heading{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:22px}
.ambassador-section-heading .ambassador-kicker{color:var(--text-muted);font-size:9px;letter-spacing:1.1px;margin-bottom:9px}
.ambassador-section-heading h2{font-size:23px;letter-spacing:-.7px}
.ambassador-section-heading>p{font-size:11px;color:var(--text-muted);white-space:nowrap}
.ambassador-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ambassador-step{position:relative;min-width:0;padding:22px 22px 28px;border:1px solid var(--border);border-radius:18px;background:var(--surface);transition:transform .2s,border-color .2s}
.ambassador-step:hover{transform:translateY(-4px);border-color:var(--border-strong)}
.ambassador-step-apply{--ambassador-phase:0s;--ambassador-glow:255,91,22;background:linear-gradient(150deg,#ff8d3014,var(--surface) 75%)}
.ambassador-step-share{--ambassador-phase:1.5s;--ambassador-glow:181,143,255;background:linear-gradient(150deg,#be9cff14,var(--surface) 75%)}
.ambassador-step-grow{--ambassador-phase:3s;--ambassador-glow:71,210,151;background:linear-gradient(150deg,#78c7a214,var(--surface) 75%)}
.ambassador-step::after{content:'';position:absolute;inset:-1px;border:1px solid rgb(var(--ambassador-glow));border-radius:inherit;box-shadow:0 0 24px rgba(var(--ambassador-glow),.2),inset 0 0 24px rgba(var(--ambassador-glow),.07);opacity:0;pointer-events:none;animation:ambassador-turn 4.5s ease-in-out var(--ambassador-phase) infinite}
.ambassador-step-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}
.ambassador-step-emoji{display:grid;place-items:center;width:56px;height:56px;border:1px solid #ff9e4533;border-radius:17px;font-size:29px;background:#ff9e4512}
.ambassador-step-share .ambassador-step-emoji{background:#be9cff14;border-color:#be9cff30}
.ambassador-step-grow .ambassador-step-emoji{background:#78c7a214;border-color:#78c7a230}
.ambassador-step-number{font-size:10px;color:var(--text-muted);font-variant-numeric:tabular-nums}
.ambassador-step h3{font-size:16px;margin-bottom:10px;letter-spacing:-.3px}
.ambassador-step p{font-size:12px;line-height:1.85;color:var(--text-secondary)}
.ambassador-step-line{display:block;height:2px;background:linear-gradient(90deg,var(--ambassador-orange),#ff8853);margin-top:24px;border-radius:2px}
.ambassador-step-share .ambassador-step-line{background:linear-gradient(90deg,var(--ambassador-purple),#8f77dd)}
.ambassador-step-grow .ambassador-step-line{background:linear-gradient(90deg,var(--ambassador-green),#41a989)}
.ambassador-emoji-trail{position:absolute;top:8px;right:44px;width:24px;height:60px;pointer-events:none;opacity:0;animation:ambassador-turn 4.5s ease-in-out var(--ambassador-phase) infinite}
.ambassador-emoji-trail>span{position:absolute;left:0;bottom:0;font-size:16px;opacity:0}
.ambassador-emoji-trail>span{animation:ambassador-spark 1.2s ease-out var(--ambassador-phase) infinite}
.ambassador-emoji-trail>span:nth-child(2){animation-delay:calc(var(--ambassador-phase) + .4s)}
.ambassador-emoji-trail>span:nth-child(3){animation-delay:calc(var(--ambassador-phase) + .8s)}
.ambassador-programme .commerce-stats{display:none}
.ambassador-studio .ambassador-application{border-color:#ff8d3040;background:linear-gradient(145deg,#ff8d3009,var(--surface) 60%);scroll-margin-top:110px}
.ambassador-application .field{margin-top:20px}
.ambassador-application textarea{background:var(--background);border-radius:12px;padding:16px}
.ambassador-studio .ambassador-calculator{background:linear-gradient(145deg,#ff8d300c,var(--surface) 65%)}
.ambassador-calculator form{margin-top:24px}
.ambassador-calculator output:not(:empty){display:block;background:#ff8d3012;border:1px solid #ff8d3030;border-radius:12px;padding:20px;font-size:14px;line-height:1.8;color:var(--text-primary)}
.ambassador-step-emoji{animation:ambassador-greet 4.5s ease-in-out var(--ambassador-phase) infinite;transform-origin:50% 70%}
@keyframes ambassador-turn{0%,24%,100%{opacity:0}4%,18%{opacity:1}}
@keyframes ambassador-greet{0%,24%,100%{transform:translateY(0) rotate(0);box-shadow:0 0 0 transparent}5%,15%{transform:translateY(-5px) rotate(-9deg);box-shadow:0 0 22px rgba(var(--ambassador-glow),.5),0 0 48px rgba(var(--ambassador-glow),.2)}10%,20%{transform:translateY(-5px) rotate(9deg);box-shadow:0 0 18px rgba(var(--ambassador-glow),.4),0 0 40px rgba(var(--ambassador-glow),.15)}}
@keyframes ambassador-bob{0%,100%{translate:0 0;rotate:-5deg}50%{translate:0 -10px;rotate:5deg}}
@keyframes ambassador-spark{0%{opacity:0;transform:translate(0,10px) scale(.6)}25%{opacity:.9}100%{opacity:0;transform:translate(12px,-60px) scale(1.1)}}
@media(max-width:1100px){.ambassador-hero{padding:28px 26px 0;grid-template-columns:minmax(0,1fr) 230px;gap:20px}.ambassador-invite{width:210px}.ambassador-float{width:50px;height:50px;font-size:27px}.ambassador-step{padding:18px}.ambassador-hero h2{font-size:37px}}
@media(max-width:767px){.ambassador-hero{grid-template-columns:1fr;padding:26px 22px 0;border-radius:20px;gap:4px}.ambassador-hero h2{font-size:37px}.ambassador-hero-copy>p{font-size:13px}.ambassador-orbit{min-height:260px;margin:5px auto 18px;width:280px;max-width:100%}.ambassador-invite{width:210px}.ambassador-rate-strip{gap:12px;padding:18px 0}.ambassador-rate-strip strong{font-size:20px}.ambassador-rate-strip span{font-size:9px}.ambassador-rate-strip>div{display:grid;gap:3px;align-content:start}.ambassador-section-heading{display:block}.ambassador-section-heading>p{margin-top:10px}.ambassador-section-heading h2{font-size:22px}.ambassador-steps{grid-template-columns:1fr}.ambassador-step{padding:22px}.ambassador-step-top{margin-bottom:14px}.ambassador-studio>.panel{padding:22px;border-radius:18px}}
@media(prefers-reduced-motion:reduce){.ambassador-float,.ambassador-step-emoji,.ambassador-emoji-trail,.ambassador-emoji-trail>span,.ambassador-step::after{animation:none}.ambassador-step{transition:none}.ambassador-step:hover{transform:none}}
@media(max-width:767px){.merch-toolbar .merch-switch{grid-template-columns:repeat(3,minmax(0,1fr))}.merch-switch button{min-width:0;justify-content:center;padding:8px 6px;gap:6px}.merch-switch button>.icon{width:28px;height:28px;padding:6px}.merch-switch strong{font-size:11px}.course-wizard-bar-actions .course-actions-menu{order:3}}
.course-wizard-title .save-state:has(.status-dot)::before{display:none}
.course-wizard [data-upload-status]{font-size:var(--type-fine);color:var(--text-secondary);line-height:1.6}
.course-curriculum .commerce-module>summary{font-size:var(--type-interface)}
.course-curriculum .commerce-module .panel-heading{margin:10px 0 4px}.course-curriculum .commerce-module .panel-heading h2{display:none}
.course-curriculum .commerce-actions{gap:8px}.course-curriculum .commerce-actions .btn{min-height:36px;padding:7px 12px}
.course-curriculum .commerce-lesson-row{padding:14px 0}
.lesson-stream-player{display:block;width:100%;aspect-ratio:16/9;border:0;border-radius:var(--radius);background:#000}

/* Monetisation side menu: same pattern as the Settings menu. */
.commerce-workspace{display:grid;grid-template-columns:230px minmax(0,1fr);gap:clamp(24px,3vw,40px);align-items:start}
.commerce-main{min-width:0}
@media(max-width:767px){.commerce-workspace{grid-template-columns:minmax(0,1fr);gap:20px}}
/* Buttons that open a section moved out of the menu (Payment settings, Printful). */
.commerce-section-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-bottom:16px}.commerce-section-actions.start{justify-content:flex-start}
.commerce-section-title{font-size:22px;margin:36px 0 16px}.learning-downloads{margin-top:36px}

/* Tips page: hero, period chips, stat cards, total volume, support history. */
.tips-hero{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,1fr);gap:clamp(24px,4vw,56px);align-items:center;padding:clamp(24px,3vw,36px);margin-bottom:32px;background:radial-gradient(120% 140% at 100% 100%,var(--accent-subtle),transparent 55%),var(--surface)}
.tips-hero-copy>.eyebrow{margin:0 0 10px}.tips-hero-copy h2{font-size:clamp(26px,2.4vw,34px);letter-spacing:-.8px;margin:0 0 8px}.tips-hero-copy>p{color:var(--text-secondary);margin:0 0 24px}
.tips-features{list-style:none;margin:0;padding:0;display:grid;gap:16px}.tips-features li{display:flex;gap:14px;align-items:flex-start}.tips-features strong{display:block;font-size:15px}.tips-features small{display:block;color:var(--text-secondary);font-size:13px;margin-top:2px}
.tips-feature-icon,.tips-accept-icon{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;border:1px solid var(--border);background:var(--surface-raised);color:var(--text-secondary)}.tips-feature-icon .icon{width:17px;height:17px}
.tips-accept{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:24px;border:1px solid var(--border);border-radius:var(--radius-lg,16px);background:var(--surface-raised)}.tips-accept-icon{width:44px;height:44px;background:var(--accent);border-color:var(--accent);color:#fff}
.tips-accept h3{font-size:19px;margin:6px 0 0}.tips-accept p{margin:0;color:var(--text-secondary);font-size:14px}.tips-accept-actions{display:flex;flex-wrap:wrap;gap:10px;width:100%;margin-top:8px}.tips-accept-actions .btn.primary{flex:1;justify-content:center}.tips-accept-note{font-size:13px!important;margin-top:6px!important}
.tips-overview-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}.tips-overview-head h2{font-size:22px;margin:0 0 4px}.tips-overview-head p{margin:0;color:var(--text-secondary);font-size:14px}
.tips-range{position:relative;align-items:center;flex-wrap:wrap;max-width:100%}.tips-range button,.tips-range summary{font-size:13px;padding:7px 14px;min-height:34px}.tips-range summary{list-style:none;cursor:pointer;border-radius:5px;color:var(--text-muted)}.tips-range summary::-webkit-details-marker{display:none}.tips-range summary.selected,.tips-custom[open] summary{background:var(--surface-active);color:var(--text-primary)}
.tips-custom-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:5;display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:end;width:min(420px,calc(100vw - 48px));padding:16px;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:var(--shadow-lg,0 12px 32px rgba(0,0,0,.4))}.tips-custom-panel .field{margin:0}.tips-custom-panel .btn{grid-column:1/-1}
.tips-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.tips-stat{position:relative}.tips-stat .badge{position:absolute;top:20px;right:20px}
.tips-volume{margin:24px 0}.tips-volume header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding-bottom:18px;border-bottom:1px solid var(--border);margin-bottom:18px}.tips-volume header span{display:block;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted)}.tips-volume header strong{display:block;font-size:32px;margin:6px 0 2px}.tips-volume header small{color:var(--text-secondary)}.tips-volume-empty{color:var(--text-secondary);text-align:center;padding:48px 16px;margin:0}
.tips-filters{grid-template-columns:minmax(0,2fr) repeat(2,minmax(0,1fr)) auto!important;align-items:end}.tips-filters .btn{align-self:end}
.tips-payout-notice{display:flex;align-items:center;gap:12px;margin-bottom:20px}.tips-payout-notice>span{flex:1}.tips-payout-notice small{display:block;color:var(--text-secondary)}
@media(max-width:1100px){.tips-hero{grid-template-columns:1fr}}
@media(max-width:767px){.tips-stats{grid-template-columns:1fr}.tips-overview-head{align-items:flex-start}.tips-range{display:flex;flex:1 1 100%;flex-wrap:wrap}.tips-range>button,.tips-range summary{flex:1 1 auto;text-align:center}.tips-custom-panel{left:0;right:auto;grid-template-columns:1fr}.tips-filters{grid-template-columns:1fr!important}.tips-filters .field{grid-column:auto!important;grid-row:auto!important}.tips-payout-notice{flex-wrap:wrap}}
/* The Custom chip is a <details>; undo the generic disclosure styling inside commerce pages. */
#commerce-content .tips-custom{margin:0;border:0;padding:0;font-size:inherit;color:inherit}#commerce-content .tips-custom>summary{min-height:34px;width:auto;gap:0;font-weight:inherit;color:var(--text-muted)}#commerce-content .tips-custom>summary::before,#commerce-content .tips-custom>summary::after,#commerce-content .tips-custom>summary .icon{display:none}#commerce-content .tips-custom>summary.selected,#commerce-content .tips-custom[open]>summary{color:var(--text-primary)}
.tips-hero-copy>.eyebrow{text-transform:uppercase}#commerce-content .tips-history>.commerce-actions+.commerce-note,#commerce-content .sales-orders>.commerce-actions+.commerce-note{margin-top:18px}.tips-volume .commerce-revenue-chart>div{min-width:72px}

/* Sales page: total-revenue hero and the orders toolbar (shares the Tips cards and chips). */
.sales-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;padding:clamp(24px,3vw,36px);margin-bottom:32px;background:radial-gradient(120% 160% at 100% 0%,var(--accent-subtle),transparent 55%),var(--surface)}
.sales-hero .eyebrow{margin:0 0 10px;text-transform:uppercase}.sales-hero-total{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.sales-hero-total strong{font-size:clamp(40px,4.4vw,60px);letter-spacing:-1.5px;line-height:1}.sales-hero>div>p:last-child{margin:12px 0 0;color:var(--text-secondary)}
.sales-hero-side{padding-left:28px;border-left:1px solid var(--border);max-width:300px}.sales-hero-side strong{display:block;font-size:28px;color:var(--success,#3ecf8e)}.sales-hero-side small{display:block;margin-top:6px;color:var(--text-secondary);font-size:13px}
.sales-hero-side strong.unknown{color:var(--text-secondary)}.sales-orders>.commerce-note{margin-top:16px}
.sales-split{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.sales-toolbar{display:grid;gap:16px;margin-bottom:20px}.sales-types{justify-self:start}.sales-types button span{margin-left:6px;color:var(--text-muted)}.sales-types button.selected span{color:var(--accent)}
@media(max-width:767px){.sales-hero-side{padding:16px 0 0;border-left:0;border-top:1px solid var(--border);max-width:none;width:100%}.sales-split{justify-content:flex-start}.tips-volume header{flex-wrap:wrap}}

/* Set up payouts dialog: country list, confirmation and Stripe hand-off. */
.payout-flow{display:grid;gap:16px;width:100%}.payout-head{display:grid;justify-items:center;gap:10px;text-align:center}.payout-head p{margin:0;color:var(--text-secondary);font-size:14px}
.payout-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:14px;background:var(--accent);color:#fff}.payout-icon .icon{width:24px;height:24px}
.payout-flow h3{font-size:20px;margin:8px 0 0;outline:none}.payout-lead{margin:0;color:var(--text-secondary);font-size:14px;line-height:1.6}
.payout-search{display:flex;align-items:center;gap:10px;padding:0 16px;border:1px solid var(--border);border-radius:999px;background:var(--background);color:var(--text-muted)}.payout-search:focus-within{border-color:var(--accent)}.payout-search input{flex:1;min-width:0;min-height:46px;padding:0;border:0!important;background:none!important;box-shadow:none!important;color:var(--text-primary);font:inherit;outline:none}
.payout-list{display:grid;gap:10px;max-height:min(44vh,420px);overflow:auto;padding-right:4px}
.payout-country{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:12px;width:100%;padding:14px 16px;border:1px solid var(--border);border-radius:12px;background:var(--surface-raised);color:inherit;font:inherit;text-align:left;cursor:pointer;transition:border-color var(--motion-fast)}.payout-country:hover,.payout-country:focus-visible{border-color:var(--accent);outline:none}
.payout-code{font-weight:700;font-size:13px}.payout-country strong{display:block;font-size:15px}.payout-country small{display:block;color:var(--text-muted);font-size:12px;margin-top:2px}.payout-select{display:flex;align-items:center;gap:6px;color:var(--text-secondary);font-size:13px}.payout-select .icon{width:16px;height:16px}
.payout-country-card{display:grid;justify-items:center;gap:4px;padding:28px 16px;border:1px solid var(--border);border-radius:14px;background:var(--surface-raised)}.payout-country-card strong{font-size:34px;letter-spacing:1px}.payout-country-card span{font-size:18px;font-weight:600}.payout-country-card small{color:var(--text-muted)}
.payout-warning{margin:0;padding:14px 16px;border:1px solid color-mix(in srgb,var(--warning) 45%,transparent);border-radius:12px;background:color-mix(in srgb,var(--warning) 12%,transparent);color:var(--warning);font-size:14px;line-height:1.55}
.payout-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.payout-actions .btn{justify-content:center}
.payout-info{display:grid;justify-items:center;gap:12px;padding:24px 8px;text-align:center}.payout-info p{margin:0;color:var(--text-secondary);max-width:42ch;line-height:1.6}.payout-info small{color:var(--text-muted)}.payout-info .form-error:empty{display:none}
.payout-later{justify-self:center;padding:6px;border:0;background:none;color:var(--text-secondary);font:inherit;font-size:13px;text-decoration:underline;cursor:pointer}
@media(max-width:520px){.payout-actions{grid-template-columns:1fr}}

/* Storefront tip section: the creator Tips hero layout, with amount chips instead of a dropdown. */
.store-tip{margin-top:28px}.store-tip-card h3{margin:6px 0 4px}.store-tip-amounts{display:grid;grid-template-columns:repeat(auto-fit,minmax(68px,1fr));gap:10px;width:100%}
.store-tip-amount{min-height:52px;border:1px solid var(--border);border-radius:12px;background:var(--background);color:var(--text-primary);font:inherit;font-size:16px;font-weight:600;cursor:pointer;transition:border-color var(--motion-fast),background var(--motion-fast)}.store-tip-amount:hover{border-color:var(--border-strong)}.store-tip-amount.selected{border-color:var(--accent);background:var(--accent-subtle);box-shadow:0 0 0 3px var(--accent-subtle)}.store-tip-amount:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.store-tip-card>.btn{width:100%;justify-content:center;margin-top:4px}.store-tip-card .form-error:empty{display:none}.store-tip-note{color:var(--text-muted);font-size:12px;align-self:center}
.store-tip-custom{width:100%;margin:2px 0 0}.store-tip-custom input{min-height:48px}
/* A guest tipper's note, under the tip in the Tips and Sales tables. */
#commerce-content .commerce-table .tip-note{display:block;margin-top:4px;color:var(--text-secondary);font-style:italic;quotes:"\201C" "\201D"}

/* Ambassador landing: join first, account tools after approval. */
.ambassador-calculator-inputs{display:grid;grid-template-columns:1fr 1fr 1fr;gap:20px;align-items:end}
.ambassador-calculator-inputs>.btn{grid-column:1/-1;justify-self:start}
.ambassador-calculator-inputs .field{margin:0;min-width:0}
.ambassador-estimate-grid{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:20px;margin-bottom:16px}
.ambassador-estimate-grid>span{display:grid;gap:8px}
.ambassador-estimate-grid small{color:var(--text-secondary);font-size:12px}
.ambassador-estimate-grid strong{font-size:25px;font-variant-numeric:tabular-nums}
.ambassador-estimate-grid>span:last-child strong{color:#ff8d53}
.ambassador-join{text-align:center;padding:30px 20px 12px}
.ambassador-join h2{font-size:25px;letter-spacing:-.6px}
.ambassador-join p{color:var(--text-secondary);margin:12px 0 22px}
.ambassador-join .btn{min-width:230px;min-height:52px;font-weight:750}
.ambassador-faq h2{font-size:20px;margin-bottom:12px}
.ambassador-faq details{border-top:1px solid var(--border);padding:18px 0}
.ambassador-faq details:last-child{padding-bottom:0}
.ambassador-faq summary{cursor:pointer;font-weight:650}
.ambassador-faq details p{color:var(--text-secondary);line-height:1.8;margin-top:12px;font-size:13px}
.ambassador-status{display:flex;gap:20px;align-items:center;justify-content:space-between}
.ambassador-status h2{font-size:19px;margin-bottom:8px}
.ambassador-status p{color:var(--text-secondary);line-height:1.7}
.ambassador-application .checkbox-field{display:flex;gap:12px;align-items:flex-start;line-height:1.6;margin:20px 0}
.ambassador-application .checkbox-field input{margin-top:5px;flex-shrink:0}
.ambassador-application .commerce-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
@media(max-width:767px){.ambassador-calculator-inputs,.ambassador-estimate-grid{grid-template-columns:1fr}.ambassador-estimate-grid{gap:16px}.ambassador-status{align-items:flex-start;flex-direction:column}.ambassador-application .commerce-actions .btn{width:100%}}

.payout-popup-shell{max-width:440px;margin:80px auto;padding:28px;color:var(--text-primary);font-family:var(--font-body,system-ui,sans-serif)}
.payout-popup-shell h1{font-size:26px;line-height:1.3;margin-bottom:18px}
.payout-popup-shell p{color:var(--text-secondary);line-height:1.8;font-size:15px}

.payout-info h3{font-size:27px;letter-spacing:-.7px;max-width:20ch;line-height:1.2}
.payout-info .btn.primary{min-height:50px;min-width:240px;margin-top:10px;font-weight:700}
.payout-assurances{display:grid;gap:10px;margin:6px 0;text-align:left;color:var(--text-secondary);font-size:12px}
.payout-assurances>span{display:flex;align-items:center;gap:10px}
.payout-assurances .icon{width:16px;height:16px;color:var(--accent)}
.payout-progress{font-size:12px;line-height:1.7;color:var(--text-secondary)}
.payout-progress:empty{display:none}
.payout-return-notice{display:flex;gap:20px;align-items:center;justify-content:space-between;border-color:var(--accent);margin-bottom:24px}
.payout-return-notice p{margin-top:8px;line-height:1.7}
@media(max-width:520px){.payout-return-notice{flex-direction:column;align-items:stretch}.payout-info .btn.primary{width:100%;min-width:0}}

/* Creator setup: one clear next step, with diagnostics kept secondary. */
.payout-journey{display:flex;gap:12px;list-style:none;padding:0;margin:24px 0;text-align:left;font-size:12px;color:var(--muted)}
.payout-journey li{flex:1;display:grid;gap:8px;justify-items:start}
.payout-journey li span{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--border);border-radius:50%;font-weight:700}
.payout-journey .is-current{color:var(--text)}
.payout-journey .is-current span{background:#ff5500;color:#111;border-color:#ff5500}
.payout-account-summary{display:flex;gap:24px;align-items:flex-start;padding:32px;margin-bottom:24px;background:radial-gradient(ellipse at top right,#ff550014,transparent 65%),var(--surface)}
.payout-account-summary h2{font-size:28px;margin:8px 0 12px;line-height:1.2}
.payout-account-summary p{max-width:60ch}
.payout-account-summary small{display:block;color:var(--muted);margin-top:16px}
.payout-success-icon{display:grid;place-items:center;flex:0 0 56px;height:56px;background:#ff55001a;color:#ff5500;border:1px solid #ff550055;border-radius:16px}
.payout-success-icon svg{width:26px;height:26px}
.payout-status-pair{display:grid;gap:16px;margin:24px 0}
.payout-status-pair>span{display:flex;gap:16px;align-items:center;justify-content:space-between}
.payout-technical{margin-top:24px;border-top:1px solid var(--border);padding-top:16px;color:var(--muted)}
.payout-technical summary{cursor:pointer;font-size:13px}
@media(max-width:600px){.payout-account-summary{padding:22px;gap:16px;flex-direction:column}.payout-account-summary h2{font-size:24px}.payout-account-summary .commerce-actions{align-items:stretch;flex-direction:column}.payout-status-pair>span{flex-wrap:wrap}}
.tips-payout-card{display:flex;gap:24px;align-items:flex-start;margin-bottom:28px;background:radial-gradient(ellipse at top right,#ff550010,transparent 65%),var(--surface)}
.tips-payout-copy{flex:1;min-width:0}.tips-payout-copy h2{margin:8px 0 12px}.tips-payout-copy>p{max-width:65ch}.tips-payout-copy>small{display:block;color:var(--text-secondary);margin-top:16px}
@media(max-width:600px){.tips-payout-card{flex-direction:column;gap:16px}.tips-payout-copy .commerce-actions{flex-direction:column;align-items:stretch}}

/* Tips come alive in the Ambassador palette after preferences are saved. */
.tips-enabled{border-color:#32c98a55;background:radial-gradient(ellipse at 100% 100%,#32c98a18,transparent 55%),radial-gradient(ellipse at 70% 0,#b58fff12,transparent 50%),radial-gradient(ellipse at 0 0,#ff5b1612,transparent 60%),var(--surface)}
.tips-enabled .tips-accept{position:relative;background:linear-gradient(145deg,#32c98a0d,#b58fff08),var(--surface-raised);border-color:#32c98a55;box-shadow:0 0 28px #32c98a0b}
.tips-support-scene{position:relative;isolation:isolate;align-self:center;width:280px;max-width:100%;height:160px;pointer-events:none;margin:-8px 0 2px}
.tips-support-lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.tips-support-lines path{fill:none;stroke-width:1.5;stroke-dasharray:4 5;opacity:.6;animation:tips-support-link 12s linear infinite}
.tips-link-orange{stroke:#ff5b16}.tips-link-purple{stroke:#b58fff}.tips-link-green{stroke:#32c98a}
.tips-supporter{position:absolute;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;border:1px solid currentColor;background:var(--surface);animation:ambassador-greet 6s ease-in-out var(--ambassador-phase) infinite}
.tips-supporter .icon{width:23px;height:23px}
.tips-supporter-orange{left:9%;top:28%;color:#ff5b16;--ambassador-glow:255,91,22;--ambassador-phase:0s}
.tips-supporter-purple{right:9%;top:17%;color:#b58fff;--ambassador-glow:181,143,255;--ambassador-phase:1.5s}
.tips-supporter-green{right:15%;bottom:7%;color:#32c98a;--ambassador-glow:50,201,138;--ambassador-phase:3s}
.tips-money-centre{position:absolute;left:calc(50% - 32px);top:calc(47% - 32px);width:64px;height:64px;display:grid;place-items:center;border-radius:20px;background:#32c98a1c;border:1px solid #32c98a55;font-size:34px;box-shadow:0 0 32px #32c98a22;animation:tips-money-bounce 3s ease-in-out infinite;transform-origin:center bottom}
.tips-money-spark{position:absolute;left:47%;top:44%;font-size:23px;font-weight:800;color:#32c98a;opacity:0;animation:tips-money-rise 6s ease-out infinite;text-shadow:0 0 16px #32c98a88}
.tips-money-spark-one{--tips-float-x:-55px;animation-delay:.2s}.tips-money-spark-two{--tips-float-x:5px;animation-delay:1.7s}.tips-money-spark-three{--tips-float-x:48px;animation-delay:3.2s}
.tips-party{position:absolute;color:#b58fff;font-size:18px;animation:tips-party-pop 3s ease-in-out infinite}
.tips-party-one{left:26%;top:5%;color:#ff5b16}.tips-party-two{right:26%;top:6%;animation-delay:1s}.tips-party-three{left:23%;bottom:13%;color:#32c98a;animation-delay:2s}
@keyframes tips-support-link{to{stroke-dashoffset:-90}}
@keyframes tips-money-bounce{0%,35%,100%{transform:translateY(0) rotate(0)}12%{transform:translateY(-9px) rotate(-6deg);box-shadow:0 0 40px #32c98a44}23%{transform:translateY(-3px) rotate(5deg)}}
@keyframes tips-money-rise{0%{opacity:0;transform:translate(0,0) scale(.6)}8%{opacity:1}28%{opacity:0;transform:translate(var(--tips-float-x),-70px) scale(1.1)}100%{opacity:0;transform:translate(var(--tips-float-x),-70px)}}
@keyframes tips-party-pop{0%,60%,100%{opacity:.25;transform:scale(.7) rotate(0)}25%{opacity:1;transform:scale(1.1) rotate(25deg)}}
@media(prefers-reduced-motion:reduce){.tips-support-lines path,.tips-supporter,.tips-money-centre,.tips-money-spark,.tips-party{animation:none}.tips-money-spark-one{opacity:.7;left:30%;top:9%}.tips-money-spark-two{opacity:.7;left:56%;top:3%}.tips-party{opacity:.6}}

/* One short celebration after enabling, not on every report refresh. */
.tips-hero{position:relative;isolation:isolate;view-transition-name:tips-hero}
.tips-sound-toggle{align-self:flex-end;margin:-10px -8px -26px 0;z-index:2;border:0;border-radius:8px;padding:6px 8px;background:transparent;color:var(--text-secondary);font-size:11px;cursor:pointer}
.tips-sound-toggle:hover,.tips-sound-toggle:focus-visible{background:var(--surface-hover);color:var(--text-primary)}
.tips-hero-burst{position:absolute;inset:8px;z-index:5;pointer-events:none;overflow:visible;contain:layout}
.tips-burst-piece{position:absolute;display:block;color:#32c98a;font-size:20px;font-weight:800;text-shadow:0 0 14px #32c98a55;opacity:0}
.tips-burst-piece:nth-child(4n+2){color:#b58fff;font-size:16px}.tips-burst-piece:nth-child(4n){color:#ff5b16;font-size:8px}
.tips-burst-zone-0{left:50%;top:0}.tips-burst-zone-1{left:92%;top:8%}.tips-burst-zone-2{left:100%;top:50%}.tips-burst-zone-3{left:92%;top:92%}.tips-burst-zone-4{left:50%;top:100%}.tips-burst-zone-5{left:8%;top:92%}.tips-burst-zone-6{left:0;top:50%}.tips-burst-zone-7{left:8%;top:8%}
.tips-celebrating{animation:tips-hero-celebrate 1.8s ease-out both}
.tips-payout-bounce{animation:tips-payout-hop 1.1s cubic-bezier(.2,.7,.3,1) .5s 2}
@keyframes tips-hero-celebrate{0%{box-shadow:0 0 0 #32c98a00}25%{box-shadow:0 0 0 2px #32c98a55,0 0 48px #32c98a22,0 0 70px #b58fff12}100%{box-shadow:0 0 0 #32c98a00}}
@keyframes tips-payout-hop{0%,65%,100%{transform:translateY(0) scale(1)}22%{transform:translateY(-9px) scale(1.025);box-shadow:0 8px 24px #ff5b1633}40%{transform:translateY(0) scale(.99)}53%{transform:translateY(-3px) scale(1)}}
::view-transition-group(tips-hero){animation-duration:.55s;animation-timing-function:cubic-bezier(.2,.7,.3,1)}
@media(max-width:767px){.tips-hero-burst{inset:14px}.tips-burst-piece{font-size:16px}}
@media(prefers-reduced-motion:reduce){.tips-celebrating,.tips-payout-bounce{animation:none}.tips-hero-burst{display:none}::view-transition-group(tips-hero){animation-duration:0s}}

/* The collection shares the published profile's validated appearance stylesheet. */
.storefront.bio-card.profile{display:block;width:100%;max-width:1260px;margin:0 auto;padding:40px clamp(20px,4vw,52px);min-height:100vh;border:0;border-radius:0;text-align:left;overflow:visible;background:var(--profile-bg,#000);color:var(--profile-text,#fff)}
.storefront.bio-card.profile h1,.storefront.bio-card.profile h2,.storefront.bio-card.profile h3{color:var(--profile-title,inherit)}
.storefront.bio-card.profile p,.storefront.bio-card.profile .commerce-note,.storefront.bio-card.profile .field>span{color:inherit}
.storefront.bio-card.profile .panel,.storefront.bio-card.profile .store-tip-card{background:color-mix(in srgb,var(--profile-bg-base,#121214) 92%,var(--profile-text,#fff) 8%);color:inherit;border-color:color-mix(in srgb,currentColor 18%,transparent)}
.storefront .storefront-header-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
/* Profile cover, avatar and name use profile-view.js and its original styles. */
.storefront .storefront-hero{max-width:566px;margin:0 auto 36px;text-align:center}
.storefront .storefront-hero .profile-head{padding-inline:20px}
.storefront .storefront-hero .bio-description{margin:18px auto;max-width:390px;padding-inline:20px}
.storefront .storefront-collection-label{font-size:13px;opacity:.7;margin:24px 0}
.storefront-backdrop{position:fixed;inset:0;z-index:0;pointer-events:none}.storefront.bio-card.profile{position:relative;z-index:1}
.storefront .commerce-tabs button{color:inherit}
.storefront .btn{font-family:inherit}
.storefront.btn-filled .btn.primary{background:var(--btn-color);color:var(--btn-text);border-color:var(--btn-color)}
.storefront.btn-outline .btn.primary{background:transparent;color:var(--btn-color);border-color:var(--btn-color)}
.storefront.btn-soft .btn.primary{background:color-mix(in srgb,var(--btn-color) 24%,transparent);color:var(--btn-text);border-color:transparent}
.storefront.shape-pill .btn{border-radius:999px}.storefront.shape-square .btn{border-radius:0}
.storefront-workspace{margin-bottom:22px}.storefront-workspace-heading{display:flex;align-items:center;gap:20px;margin-bottom:24px}.storefront-workspace-heading>.avatar{width:64px;height:64px;flex-shrink:0}.storefront-workspace p{max-width:760px}.storefront-workspace .form-actions{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.storefront-workspace input{width:100%}
@media(max-width:600px){.storefront.bio-card.profile{padding:24px 18px}.storefront .storefront-header{gap:16px;flex-wrap:wrap;margin-bottom:24px}.storefront .storefront-cover{height:160px}.storefront .storefront-hero{padding:12px 0}.storefront-workspace-heading{align-items:flex-start}}
@media(prefers-reduced-motion:reduce){.storefront .storefront-cover video{display:none}}

.storefront.theme-outline:not(.btn-filled):not(.btn-outline):not(.btn-soft) .btn.primary{background:transparent;color:var(--profile-text,#fff);border-color:currentColor}
.storefront.theme-editorial:not(.btn-filled):not(.btn-outline):not(.btn-soft) .btn.primary{background:#fff;color:#000;border-radius:0}
.tips-visibility{border:1px solid var(--border);padding:18px;border-radius:12px;margin:24px 0}.tips-visibility legend{padding:0 8px;font-weight:600}.tips-visibility .commerce-check{margin-bottom:14px}

.storefront.bio-card.profile.cover-is-behind{background:transparent}
@media(max-width:600px){.storefront.bio-card.profile.cover-motion.cover-is-behind{background:linear-gradient(180deg,transparent 0,transparent 300px,var(--profile-bg-base,#000) 460px)}}

/* Public support controls inherit the creator's chosen profile button colour. */
.storefront .store-tip{--accent:var(--btn-color,#ff5a1f);--accent-subtle:color-mix(in srgb,var(--btn-color,#ff5a1f) 18%,transparent);--border-strong:var(--btn-color,#ff5a1f)}
.storefront .store-tip .tips-accept-icon{background:var(--btn-color,#ff5a1f);border-color:var(--btn-color,#ff5a1f);color:var(--btn-text,#fff)}
.tip-setting-switch{padding:15px 0;min-height:52px}.tip-setting-switch+.tip-setting-switch{border-top:1px solid var(--border)}.tip-setting-switch .section-switch{width:42px;height:24px}.tip-setting-switch .section-switch span::after{width:20px;height:20px}.tip-setting-switch .section-switch input:checked+span::after{transform:translateX(18px)}

/* The Shop shortcuts use the same icon/title/subtitle control as Merch. */
.shop-shortcuts{margin:20px 0 12px;max-width:100%;flex-wrap:wrap}.shop-shortcuts a{text-decoration:none;min-width:0}.shop-shortcuts a:hover>.icon,.shop-shortcuts a:focus-visible>.icon{background:var(--accent);color:var(--on-accent)}
@media(max-width:767px){.shop-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-shortcuts a{padding:8px 10px;gap:10px}.shop-shortcuts strong{font-size:12px}}

/* Shop is a full-bleed extension of the creator's rounded profile card. */
.storefront.bio-card.profile{width:calc(100% - 48px);margin:32px auto;padding:0;min-height:calc(100vh - 64px);border:1px solid rgba(255,255,255,.1);border-radius:24px;overflow:hidden;isolation:isolate}
.storefront .storefront-header{position:absolute;z-index:4;top:0;left:0;right:0;padding:22px 28px;margin:0;gap:12px;align-items:flex-start}
.storefront .storefront-header .brand-symbol{filter:drop-shadow(0 2px 8px #0006)}
.storefront .storefront-header-actions{margin-left:auto;justify-content:flex-end}.storefront .storefront-header-actions .btn{background:rgba(18,18,20,.72);color:#fff;border-color:#ffffff30;backdrop-filter:blur(12px)}
.storefront .storefront-hero{max-width:none;width:100%;margin:0;padding:0 0 24px}
.storefront.has-cover .storefront-hero .profile-cover{width:100%;height:clamp(320px,38vw,500px);max-height:none;aspect-ratio:auto;overflow:hidden}
.storefront .storefront-hero .profile-head,.storefront .storefront-hero .bio-description,.storefront .storefront-collection-label{position:relative;z-index:2}
.storefront .storefront-hero .bio-description{max-width:580px;padding:0 24px;margin:18px auto;line-height:1.7}
.storefront:not(.has-cover) .storefront-hero .profile-cover{height:150px}
.storefront .storefront-content{padding:0 clamp(18px,3vw,40px) 32px}
.storefront .commerce-product-card{border-radius:18px;overflow:hidden;isolation:isolate}
.storefront .commerce-product-card>.commerce-cover{border-radius:17px 17px 0 0;overflow:hidden}
.storefront .commerce-product-card{display:flex;flex-direction:column;min-width:0}
.storefront .commerce-product-card>.commerce-cover{flex:none;box-sizing:border-box;height:auto;aspect-ratio:16/9;object-fit:contain;object-position:center}
.storefront .commerce-product-card>img.commerce-cover{padding:18px}
.storefront .commerce-product-card>.commerce-product-copy{display:flex;flex-direction:column;align-items:flex-start;flex:1}
.storefront .store-card-footer{display:flex;flex-direction:column;align-items:flex-start;gap:16px;width:100%;margin-top:auto;padding-top:20px}
.storefront .store-card-footer>form{width:100%;margin:0}
.storefront .store-card-footer .form-error:empty{display:none}
.storefront .store-card-footer>.btn,.storefront .store-card-footer>form>.btn{min-height:44px;margin:0;display:inline-flex;align-items:center;justify-content:center}
@media(max-width:600px){.storefront.bio-card.profile{width:calc(100% - 24px);margin:12px auto;padding:0;border-radius:24px;min-height:calc(100vh - 24px)}.storefront .storefront-header{padding:16px;flex-wrap:nowrap}.storefront .storefront-header>.brand-symbol,.storefront .storefront-header>a:first-child{display:none}.storefront .storefront-header-actions .btn{padding:8px 12px;min-height:36px;font-size:12px}.storefront.has-cover .storefront-hero .profile-cover{height:340px}.storefront .storefront-content{padding:0 16px 24px}}
/* Digital Products: a focused four-step creator journey. */
.digital-hero{position:relative;display:grid;grid-template-columns:1.3fr 1fr;align-items:center;gap:24px;padding:32px;margin-bottom:24px;border:1px solid #72513c;border-radius:20px;background:radial-gradient(ellipse at 90% 80%,#21372e80,transparent 60%),linear-gradient(120deg,#281b16,#151418 60%);overflow:hidden}.digital-eyebrow{display:flex;align-items:center;gap:8px;font-size:10px;font-weight:700;letter-spacing:.14em;color:#ff925a}.digital-eyebrow svg{width:16px;height:16px}.digital-hero h2{font-size:clamp(28px,3vw,42px);line-height:1.12;margin:14px 0}.digital-hero em{font-style:normal;color:#ffab79}.digital-hero p:not(.digital-eyebrow){max-width:470px;color:var(--muted,#aaa);line-height:1.6}.digital-hero small{display:block;margin-top:12px;color:#aaa}.digital-orbit{position:relative;height:225px;max-width:350px;width:100%;justify-self:center;border:1px dashed #795c4c66;border-radius:50%}.digital-person,.digital-parcel,.digital-float,.digital-spark{position:absolute;display:grid;place-items:center}.digital-person{width:45px;height:45px;border:1px solid currentColor;border-radius:50%;background:#18191b;box-shadow:0 0 25px #ff5b1618}.digital-person svg{width:23px;height:23px}.digital-person-one{left:0;top:37px;color:#ff823e}.digital-person-two{right:0;top:45px;color:#ae86ec}.digital-person-three{right:50px;bottom:0;color:#34cb91}.digital-parcel{font-size:42px;width:85px;height:85px;left:calc(50% - 42px);top:65px;border-radius:25px;background:#233c30;border:1px solid #34cb9166;box-shadow:0 0 40px #34cb9120;animation:digital-float 4s ease-in-out infinite}.digital-float{font-size:24px;animation:digital-float 5s ease-in-out infinite}.digital-float-one{left:55px;bottom:26px}.digital-float-two{right:68px;top:0;animation-delay:-2s}.digital-float-three{left:95px;top:10px;animation-delay:-1s}.digital-spark{color:#34cb91;font-size:20px}.digital-spark-one{left:12%;top:5%}.digital-spark-two{right:15%;bottom:25%;color:#ae86ec}.digital-spark-three{left:40%;bottom:0;color:#ff925a}.digital-saved-note{grid-column:1/-1;margin:0!important}.is-celebrating .digital-spark{animation:digital-burst 1s ease-out both}.is-celebrating .digital-create{animation:digital-bounce .6s ease-out 1}.digital-wizard{min-width:0}.digital-wizard-header{position:relative;padding:12px 0 20px}.digital-wizard-header>.save-state{float:right;padding:10px;color:#aaa;font-size:12px}.digital-wizard-header h2{font-size:30px;margin:10px 0}.digital-wizard-header p:last-child{color:#aaa}.digital-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:24px}.digital-steps button{display:flex;align-items:center;gap:10px;text-align:left;color:#aaa;background:#141416;border:1px solid #303035;border-radius:13px;padding:14px;cursor:pointer}.digital-steps button[aria-current=step]{background:#291c16;border-color:#ff5b16;color:#fff}.digital-step-icon{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;border-radius:10px;background:#242427;font-size:21px}.digital-steps button[aria-current=step] .digital-step-icon{background:#ff5b16}.digital-steps small{display:block;font-size:9px;letter-spacing:.1em;margin-bottom:4px}.digital-steps strong{font-size:12px}.digital-step-check{display:none;color:#34cb91;margin-left:auto}.digital-step-check svg{width:16px}.digital-steps .is-complete .digital-step-check{display:block}.digital-step{animation:digital-enter .22s ease-out;padding:28px!important;min-width:0}.digital-wizard [hidden]{display:none!important}.digital-step-heading{display:flex;gap:16px;align-items:flex-start;margin-bottom:26px}.digital-step-heading>span{display:grid;place-items:center;width:48px;height:48px;flex-shrink:0;background:#2c211c;border-radius:15px;font-size:26px}.digital-step-heading h3{font-size:22px;margin:5px 0 8px}.digital-step-heading p{margin:0;color:#aaa;line-height:1.6}.digital-step-heading h3:focus{outline:none}.digital-type-options{display:grid;grid-template-columns:1fr 1fr;gap:16px;border:0;padding:0;margin:0}.digital-type-card{position:relative;display:flex;flex-direction:column;gap:12px;padding:24px;border:1px solid #39393d;border-radius:16px;cursor:pointer;background:#19191c;transition:border-color .2s,background .2s,transform .2s}.digital-type-card:hover{transform:translateY(-2px);border-color:#947159}.digital-type-card:has(input:checked){border-color:#ff7c39;background:#302117}.digital-type-card:focus-within{outline:2px solid #ffad79;outline-offset:3px}.digital-type-card input{position:absolute;opacity:0;width:1px;height:1px}.digital-type-emoji{font-size:32px}.digital-type-card>span:not(.digital-type-emoji):not(.digital-type-selected){color:#aaa;font-size:13px;line-height:1.6}.digital-type-selected{display:none;position:absolute;right:18px;top:18px;color:#ff9a60}.digital-type-selected svg{width:20px}.digital-type-card:has(input:checked) .digital-type-selected{display:block}.digital-reassurance,.digital-fee-note{display:flex;align-items:flex-start;gap:10px;color:#aaa;font-size:12px;line-height:1.6;margin-top:24px}.digital-reassurance svg,.digital-fee-note svg{width:17px;height:17px;flex-shrink:0}.digital-upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.digital-file-status{color:#aaa;font-size:12px}.digital-fee-note{background:#1c1c20;padding:16px;border-radius:12px}.digital-fee-note p{margin:0}.digital-wizard-footer{position:sticky;bottom:12px;z-index:3;display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:16px;background:#19191cf5;border:1px solid #39393d;border-radius:14px;margin:20px 0;box-shadow:0 12px 30px #0005}.digital-wizard-footer [data-digital-position]{margin-right:auto}.digital-review-layout{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:center}.digital-review-card{border:1px solid #39393d;border-radius:16px;overflow:hidden;background:#19191c}.digital-review-card>div:last-child{padding:20px}.digital-review-card h4{font-size:20px;margin:12px 0}.digital-review-card p{font-size:13px;color:#aaa;white-space:pre-wrap;overflow-wrap:anywhere}.digital-review-cover{position:relative;aspect-ratio:16/9;background:linear-gradient(135deg,#3d2b23,#262337)}.digital-review-cover img{width:100%;height:100%;object-fit:cover}.digital-review-cover:has([data-digital-review-placeholder]:not([hidden])) img{display:none}.digital-review-cover>span{position:absolute;inset:0;display:grid;place-items:center;font-size:64px}.digital-review-notes{font-size:14px;line-height:1.7;color:#bbb}.digital-review-notes h4{color:#fff;font-size:20px}
@keyframes digital-float{50%{transform:translateY(-9px) rotate(3deg)}}@keyframes digital-enter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}@keyframes digital-burst{from{transform:scale(.3);opacity:0}50%{opacity:1}to{transform:scale(1.5) rotate(25deg);opacity:1}}@keyframes digital-bounce{40%{transform:translateY(-6px)}70%{transform:translateY(2px)}}
@media(max-width:700px){.digital-hero{grid-template-columns:1fr;padding:24px}.digital-orbit{height:180px;max-width:280px}.digital-parcel{top:45px}.digital-steps{grid-template-columns:1fr 1fr}.digital-steps button{padding:10px;gap:8px}.digital-step{padding:20px!important}.digital-type-options,.digital-upload-grid,.digital-review-layout{grid-template-columns:1fr}.digital-wizard-footer{flex-wrap:wrap;bottom:4px;padding:12px;gap:8px}.digital-wizard-footer .btn{font-size:12px;padding:10px}.digital-wizard-header>.save-state{float:none;display:block;padding:8px 0}.digital-wizard-header h2{font-size:26px}}
@media(prefers-reduced-motion:reduce){.digital-wizard *,.digital-hero *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.digital-wizard-form{max-width:none}.digital-wizard-footer{position:static;background:#19191c;margin-top:0}.digital-step .form-error:empty{display:none}.digital-upload-grid>div{padding:18px;border:1px dashed #4a4140;border-radius:14px;background:#19191c}.digital-upload-grid input[type=file]{font-size:12px;min-height:48px;padding:8px;border:1px solid #39393d;border-radius:10px;background:#101012}.digital-upload-grid input::file-selector-button{border:0;border-radius:8px;padding:9px 12px;margin-right:10px;background:#383035;color:#fff;font:inherit;cursor:pointer}.digital-wizard-form>.form-error:empty{display:none}
/* Match the established Teaching / My Learning segmented controls. */
.digital-steps{display:inline-grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:6px;max-width:100%;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}
.digital-steps button{gap:12px;min-height:52px;padding:8px 18px 8px 10px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--text-secondary);font:inherit}
.digital-steps button:hover{background:var(--surface-hover)}
.digital-steps button[aria-current=step]{background:var(--surface-raised);border-color:var(--border-strong);color:var(--text-primary)}
.digital-step-icon{width:34px;height:34px;border-radius:9px;background:var(--surface-hover);color:var(--text-secondary)}
.digital-step-icon svg{width:18px;height:18px}
.digital-steps button[aria-current=step] .digital-step-icon{background:var(--accent);color:#111}
.digital-steps strong{font-size:var(--type-label);font-weight:600;color:var(--text-primary)}
.digital-steps small{font-size:var(--type-fine);color:var(--text-muted);letter-spacing:0;margin-bottom:2px}
.digital-step-heading>span{width:34px;height:34px;border-radius:9px;background:var(--surface-hover);color:var(--text-secondary)}
.digital-step-heading>span svg{width:18px;height:18px}
.digital-type-emoji{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:var(--surface-hover);color:var(--text-secondary)}
.digital-type-emoji svg{width:18px;height:18px}
.digital-type-card:has(input:checked){border-color:var(--border-strong);background:var(--surface-raised)}
.digital-type-card:has(input:checked) .digital-type-emoji{background:var(--accent);color:#111}
.digital-review-cover>span svg{width:40px;height:40px;color:var(--text-muted)}
@media(max-width:700px){.digital-steps{display:grid;grid-template-columns:1fr 1fr}.digital-steps button{padding:8px;gap:8px}}
/* Digital product inventory: one clear action and a compact secondary menu. */
.commerce-product-card:has(.digital-card-actions){overflow:visible}.commerce-product-card:has(.digital-card-actions)>.commerce-cover{border-radius:var(--radius) var(--radius) 0 0}.digital-card-actions{display:flex;align-items:center;gap:8px;margin-top:20px;padding-top:18px;border-top:1px solid var(--border)}.digital-card-actions>.btn:first-child{margin-right:auto}.digital-card-preview{width:42px;height:42px;padding:0;display:grid;place-items:center}.digital-card-preview svg{width:18px;height:18px}.digital-card-actions .course-actions-options .btn{display:flex;justify-content:flex-start;margin:0;box-shadow:none}.product-actions-menu[open]{z-index:25}.commerce-product-card:has(.digital-card-actions) .commerce-product-copy>p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.digital-card-actions .course-delete-action{color:var(--danger,#ff8181)}
.commerce-product-grid:has(.digital-card-actions){grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr))}.digital-card-actions{min-width:0}.digital-card-actions>.btn:first-child{flex-shrink:1}
/* Keep secondary actions in a bottom sheet within the product card. */
.commerce-product-card:has(.digital-card-actions){position:relative;overflow:hidden;isolation:isolate}
.digital-card-actions .product-actions-menu{position:static}
.digital-card-actions .product-actions-menu>.course-actions-options{position:absolute;inset:auto 0 0;top:auto;width:100%;height:50%;min-height:240px;max-height:100%;min-width:0;box-sizing:border-box;overflow-y:auto;padding:12px 16px 16px;border:0;border-top:1px solid var(--border-strong);border-radius:18px 18px 0 0;background:var(--surface-raised);box-shadow:0 -12px 30px #0004;z-index:5;animation:product-actions-rise .2s var(--ease,cubic-bezier(.22,1,.36,1))}
.product-actions-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 0 8px;margin-bottom:4px;border-bottom:1px solid var(--border)}
.product-actions-heading strong{font-size:13px;color:var(--text-primary)}
.digital-card-actions .product-actions-heading button{display:grid;place-items:center;width:32px;height:32px;padding:0;flex:none;border-radius:8px}
.product-actions-heading button svg{width:16px;height:16px}
.digital-card-actions .course-actions-options>button{min-height:38px;padding:9px 12px}
.commerce-product-card:has(.product-actions-menu[open]) .digital-card-actions>.btn{visibility:hidden}
@keyframes product-actions-rise{from{transform:translateY(100%);opacity:.6}to{transform:translateY(0);opacity:1}}
@media(prefers-reduced-motion:reduce){.digital-card-actions .product-actions-menu>.course-actions-options{animation:none}}
/* Product sheet: a soft landing, quiet depth and consistent line-icon rows. */
.digital-card-actions .product-actions-menu>.course-actions-options{min-height:268px;padding:22px 14px 14px;border-radius:20px 20px 0 0;border-top:1px solid var(--border);background:var(--surface);box-shadow:0 -16px 40px #0006,inset 0 1px 0 #ffffff08;animation:product-actions-rise 380ms cubic-bezier(.16,1,.3,1) both;will-change:transform}
.product-actions-menu>.course-actions-options::before{content:'';position:absolute;top:9px;left:calc(50% - 16px);width:32px;height:3px;border-radius:3px;background:var(--border-strong)}
.product-actions-heading{margin-bottom:7px;padding:0 2px 9px;border-bottom-color:color-mix(in srgb,var(--border) 65%,transparent)}
.digital-card-actions .product-actions-heading button{background:var(--surface-hover);transition:background 180ms cubic-bezier(.2,.8,.2,1),transform 180ms cubic-bezier(.2,.8,.2,1)}
.digital-card-actions .product-actions-heading button:hover{background:var(--border);transform:rotate(8deg)}
.digital-card-actions .course-actions-options>.product-action-row{display:flex;align-items:center;gap:10px;min-height:43px;padding:6px 9px;border-radius:10px;transition:background 180ms cubic-bezier(.2,.8,.2,1),transform 180ms cubic-bezier(.2,.8,.2,1);animation:product-action-enter 300ms cubic-bezier(.16,1,.3,1) 45ms both}
.digital-card-actions .course-actions-options>.product-action-row:nth-of-type(2){animation-delay:75ms}.digital-card-actions .course-actions-options>.product-action-row:nth-of-type(3){animation-delay:105ms}.digital-card-actions .course-actions-options>.product-action-row:nth-of-type(4){animation-delay:135ms}
.product-action-icon{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:8px;background:var(--surface-hover);color:var(--text-secondary)}
.product-action-icon svg{width:15px;height:15px}.product-action-row>svg{margin-left:auto;width:13px;height:13px;opacity:.4}
.product-publish-action .product-action-icon{background:var(--accent-subtle);color:var(--accent)}
.digital-card-actions .course-actions-options>.product-action-row:hover{background:var(--surface-hover);transform:translateX(2px)}
.digital-card-actions .course-actions-options>.product-action-row:active{transform:scale(.98)}
.product-action-row.course-delete-action .product-action-icon{color:var(--danger,#ff8181);background:color-mix(in srgb,var(--danger,#ff8181) 9%,transparent)}
@keyframes product-action-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.digital-card-actions .product-actions-menu>.course-actions-options,.digital-card-actions .course-actions-options>.product-action-row{animation:none;will-change:auto}.digital-card-actions .course-actions-options>.product-action-row,.digital-card-actions .product-actions-heading button{transition:none}}
/* Commerce selection feedback shares the workspace curve; course builder motion is unchanged. */
.commerce-tabs button,.store-tip-amount,.payout-country{transition-timing-function:var(--ease-standard)}
.digital-steps button{transition:background-color var(--motion-fast) var(--ease-standard),border-color var(--motion-fast) var(--ease-standard),color var(--motion-fast) var(--ease-standard)}
.digital-type-card,.digital-step{transition-timing-function:var(--ease-standard);animation-timing-function:var(--ease-enter)}
@media(prefers-reduced-motion:reduce){.commerce-tabs button,.store-tip-amount,.payout-country,.digital-steps button{transition:none}}
/* Product actions open directly; keep existing closing and hover feedback. */
.digital-card-actions .product-actions-menu[open]>.course-actions-options,.digital-card-actions .product-actions-menu[open] .product-action-row{animation:none}
/* Give original digital-product covers breathing room without cropping artwork. */
.workspace .commerce-product-card:has(.digital-card-actions)>img.commerce-cover{box-sizing:border-box;padding:18px;object-fit:contain;object-position:center}
/* Keep the original trigger behind the sheet hidden, including during its entrance. */
.digital-card-actions .product-actions-menu[open]>summary{visibility:hidden;pointer-events:none}
/* Restore footer controls during the opaque sheet's exit, without a second wait. */
.commerce-product-card:has(.product-actions-menu[data-closing]) .digital-card-actions>.btn{visibility:visible;pointer-events:none}
.digital-card-actions .product-actions-menu[data-closing]>summary{visibility:visible;pointer-events:none}
.digital-card-actions .product-actions-menu>.course-actions-options{transition:box-shadow 180ms cubic-bezier(.22,1,.36,1)}
.digital-card-actions .product-actions-menu[data-closing]>.course-actions-options{box-shadow:0 -16px 40px #0000,inset 0 1px 0 #ffffff00}
/* Equal secondary controls and creator-owned Shop accents. */
.digital-card-actions>.digital-card-preview,#commerce-content .digital-card-actions .product-actions-menu>summary{box-sizing:border-box;flex:none;width:42px;height:42px;min-height:42px;max-height:42px;padding:0;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);color:var(--text-primary)}
.digital-card-actions>.digital-card-preview:hover,#commerce-content .digital-card-actions .product-actions-menu>summary:hover{background:var(--surface-hover);border-color:var(--border-strong)}
.storefront .commerce-tabs{--accent:var(--btn-color);--accent-subtle:color-mix(in srgb,var(--btn-color) 18%,transparent)}
.storefront .commerce-tabs button.active{color:var(--profile-text,inherit)}
/* Detail artwork uses a consistent frame while preserving the whole image. */
.storefront .commerce-detail-layout .commerce-product-card[data-product-kind=digital]>img.commerce-cover{box-sizing:border-box;height:auto;aspect-ratio:16/9;max-height:none;object-fit:contain;object-position:center;padding:24px}
@media(max-width:600px){.storefront .commerce-detail-layout .commerce-product-card[data-product-kind=digital]>img.commerce-cover{padding:18px}}
/* Keep wizard spacing independent of generic commerce-panel typography. */
#commerce-content .digital-step-heading h3{font-size:22px;margin:5px 0 8px;line-height:1.35}
#commerce-content .digital-step-heading p{margin:0}
#commerce-content .digital-step>p.digital-reassurance{margin:24px 0 0;max-width:none}
/* Promotion studio: the same quiet surfaces and icon tiles as Digital Products. */
.promotion-studio{display:grid;gap:24px;min-width:0}
.promotion-header>.btn{margin-bottom:20px}.promotion-header>.btn>.icon{transform:rotate(180deg)}
.promotion-header h2{font-size:clamp(26px,3vw,34px);line-height:1.2;margin:12px 0}.promotion-header>p:last-child{color:var(--text-secondary);margin:0}
.promotion-product{display:flex;align-items:center;gap:18px}.promotion-product>img,.promotion-product-placeholder{width:76px;height:64px;flex:none;border-radius:10px;background:var(--surface-raised);object-fit:contain;padding:8px}.promotion-product-placeholder{display:grid;place-items:center;color:var(--accent)}
#commerce-content .promotion-product h3{margin:0 0 6px;font-size:18px}.promotion-product p{margin:0;color:var(--text-muted);font-size:13px}.promotion-visibility{margin-left:auto;display:grid;justify-items:end;gap:8px;max-width:250px;text-align:right}.promotion-visibility small{color:var(--text-muted);font-size:12px}
.promotion-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.promotion-studio .panel{padding:28px}
.promotion-section-heading{display:flex;gap:14px;align-items:flex-start;margin-bottom:24px}.promotion-icon{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:9px;background:var(--surface-hover);color:var(--text-secondary)}.promotion-icon .icon{width:18px;height:18px}
#commerce-content .promotion-section-heading h3{margin:0 0 6px;font-size:18px;line-height:1.4}.promotion-section-heading p{margin:0;font-size:13px;line-height:1.6;color:var(--text-secondary)}
.promotion-artwork{border-top:1px solid var(--border);margin-top:28px;padding-top:24px}.promotion-artwork select{width:100%}.promotion-artwork .field{max-width:340px}
.promotion-placement{display:flex;gap:14px;padding:22px 0;border-bottom:1px solid var(--border)}.promotion-placement:first-of-type{padding-top:0}.promotion-placement h4{margin:0;font-size:14px}.promotion-placement p{margin:6px 0 16px;font-size:13px;line-height:1.6;color:var(--text-secondary)}
#commerce-content .promotion-studio p.promotion-help{margin:18px 0 0;font-size:12px;line-height:1.7;color:var(--text-muted)}
#commerce-content .promotion-pricing details{margin:0;padding:0;border:0}.promotion-pricing details>p{font-size:13px;color:var(--text-secondary);margin:16px 0 24px}.promotion-pricing form>p{font-size:13px;color:var(--text-secondary);margin:8px 0 20px}.promotion-pricing output:not(:empty){display:block;margin-top:20px;padding:16px;border:1px solid var(--border);border-radius:10px;line-height:1.7;color:var(--text-secondary)}
.promotion-footnote{display:flex;align-items:flex-start;gap:10px;font-size:12px;color:var(--text-muted);margin:0}.promotion-footnote .icon{width:16px;height:16px;flex:none}
@media(max-width:800px){.promotion-grid{grid-template-columns:1fr}.promotion-studio .panel{padding:22px}.promotion-product{flex-wrap:wrap}.promotion-visibility{margin-left:94px;max-width:none;text-align:left;justify-items:start}.promotion-studio .btn{white-space:normal;text-align:center}}
@media(max-width:480px){.promotion-product>div:not(.promotion-visibility){flex:1;min-width:0}.promotion-visibility{margin-left:0;width:100%}.promotion-pricing .field-grid{grid-template-columns:1fr}}
/* The editor may be narrow on tablets even when the viewport is wide. */
.digital-wizard{container-type:inline-size}
.promotion-studio{container-type:inline-size}.promotion-product>div:not(.promotion-visibility){min-width:0;flex:1}.promotion-product h3{overflow-wrap:anywhere}
@container(max-width:640px){
 .promotion-grid{grid-template-columns:1fr}.promotion-product{flex-wrap:wrap}.promotion-visibility{margin-left:0;width:100%;max-width:none;text-align:left;justify-items:start}
 .promotion-studio .btn{white-space:normal;text-align:center}.promotion-pricing .field-grid{grid-template-columns:1fr}
}
@container(max-width:640px){
 .digital-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.digital-steps button{padding:8px;gap:8px;min-width:0}.digital-step-icon{flex-shrink:0}
 .digital-type-options,.digital-upload-grid,.digital-review-layout{grid-template-columns:1fr}
 .digital-wizard-footer{flex-wrap:wrap;min-width:0}.digital-wizard-footer [data-digital-position]{flex-basis:100%;margin:0}.digital-wizard-footer .btn{white-space:normal;min-width:0}
}
/* Course menus fit their actual rows instead of reserving half a tall card. */
.digital-card-actions .product-actions-menu>.course-actions-options:has(.inventory-action-help),.commerce-product-card[data-course-id] .product-actions-menu>.course-actions-options{height:auto;min-height:0}
.digital-card-actions .inventory-action-help{display:block;max-width:28ch;margin-top:4px;font-size:11px;line-height:1.45;color:var(--text-muted);white-space:normal}
.digital-card-actions .course-actions-options>.product-action-row:disabled{cursor:not-allowed;opacity:.65;transform:none}
.workspace .commerce-product-card[data-course-id]>img.commerce-cover{padding:0;object-fit:cover}
/* Reading and creator preview share the same lesson presentation, with distinct navigation. */
.course-reader{container-type:inline-size;min-width:0}
.course-reader-heading{margin:28px 0 24px}.course-reader-heading>.btn{margin-bottom:20px}
#commerce-content .course-reader-label{display:flex;align-items:center;gap:8px;margin:0 0 10px;color:var(--text-muted);font-size:12px;font-weight:600;letter-spacing:.04em}
.course-reader-label>.icon{width:16px;height:16px;color:var(--accent)}
#commerce-content .course-reader-heading h2{font-size:clamp(24px,3vw,32px);line-height:1.25;margin:0 0 12px}
#commerce-content .course-reader-heading>p:last-child{margin:0;color:var(--text-secondary)}
.course-reader-progress{max-width:480px;margin-top:20px;font-size:12px;color:var(--text-secondary)}
.course-reader-progress progress{display:block;margin-top:8px;height:6px;border:0;border-radius:8px;overflow:hidden;background:var(--surface-hover)}
.course-reader-progress progress::-webkit-progress-bar{background:var(--surface-hover)}.course-reader-progress progress::-webkit-progress-value{background:var(--accent);border-radius:8px}
.course-reader-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:20px;align-items:start}
#commerce-content .course-reader-outline{padding:18px;position:sticky;top:100px;min-width:0}
#commerce-content .course-reader-outline h3{margin:0 0 20px;font-size:14px}
.course-reader-module+ .course-reader-module{margin-top:22px}
.course-reader-module h4{font-size:12px;color:var(--text-muted);margin:0 0 10px;overflow-wrap:anywhere}
.course-reader-module button{display:flex;align-items:center;gap:10px;width:100%;padding:10px 8px;text-align:left;color:var(--text-secondary);background:transparent;border:1px solid transparent;border-radius:10px;font:inherit;font-size:12px;line-height:1.5;cursor:pointer;transition:background-color 180ms var(--ease-standard),border-color 180ms var(--ease-standard)}
.course-reader-module button>span:nth-child(2){flex:1;overflow-wrap:anywhere}.course-reader-module button>.icon{width:14px;height:14px;flex:none}
.course-reader-module button:hover{background:var(--surface-hover)}.course-reader-module button[aria-current]{background:var(--accent-subtle);border-color:color-mix(in srgb,var(--accent) 30%,var(--border));color:var(--text-primary)}
.course-reader-number{display:grid;place-items:center;width:24px;height:24px;flex:none;border-radius:7px;background:var(--surface-hover);font-size:11px}.course-reader-number .icon{width:14px;height:14px}
#commerce-content .course-reader .commerce-learning-lesson{padding:24px;min-width:0;margin:0}
#commerce-content .course-reader .commerce-learning-lesson header h2{font-size:22px;margin:0 0 20px;line-height:1.4;overflow-wrap:anywhere}
.course-reader-player{max-width:960px;margin:0 auto 24px;background:#000;border-radius:12px;overflow:hidden}.course-reader-player .lesson-stream-player,.course-reader-player video{width:100%;aspect-ratio:16/9;max-height:540px;border-radius:0;display:block;object-fit:contain}
.course-reader-body{line-height:1.8;font-size:14px}.course-reader-body p{white-space:pre-line;overflow-wrap:anywhere}
.course-reader-resources{margin-top:28px;padding-top:22px;border-top:1px solid var(--border)}
#commerce-content .course-reader-resources h3{display:flex;align-items:center;gap:8px;font-size:14px;margin:0 0 8px}.course-reader-resources h3 .icon{width:16px;height:16px;color:var(--text-muted)}
#commerce-content .course-reader-resources>p{font-size:12px;margin:0 0 14px;color:var(--text-muted)}
.course-reader-resources>a{display:flex;align-items:center;gap:12px;padding:14px;margin-top:10px;border:1px solid var(--border);border-radius:12px;color:var(--text-primary);text-decoration:none;background:var(--surface);transition:background-color 180ms var(--ease-standard),border-color 180ms var(--ease-standard)}
.course-reader-resource-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:var(--surface-hover);flex:none}.course-reader-resource-icon .icon{width:17px;height:17px}
.course-reader-resources>a>span:nth-child(2){flex:1}.course-reader-resources strong,.course-reader-resources small{display:block}.course-reader-resources strong{font-size:13px}.course-reader-resources small{font-size:11px;color:var(--text-muted);margin-top:4px}.course-reader-resources>a>.icon{width:16px;height:16px;color:var(--text-muted)}.course-reader-resources>a:hover{background:var(--surface-hover);border-color:var(--border-strong)}
.course-reader-footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px;margin-top:24px;padding-top:20px;border-top:1px solid var(--border)}.course-reader-footer>div{display:flex;gap:8px;flex-wrap:wrap}.course-reader-preview-note{font-size:12px;color:var(--text-muted)}
@container(max-width:760px){.course-reader-layout{grid-template-columns:1fr}.course-reader-outline{position:static!important}.course-reader-label>span{letter-spacing:0}.course-reader-player{margin-inline:-6px}.course-reader-footer>.btn{width:100%}}
@media(prefers-reduced-motion:reduce){.course-reader-module button,.course-reader-resources>a{transition:none}}
/* Course studio polish is scoped outside the creation wizard. */
.course-management{container-type:inline-size;min-width:0}.course-management>.btn{margin:24px 0 20px}
.course-management-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:28px;border:1px solid var(--border);border-radius:16px;background:var(--surface)}
#commerce-content .course-management-hero h2{font-size:26px;line-height:1.3;margin:8px 0 12px;overflow-wrap:anywhere}.course-management-hero>div:first-child{min-width:0}
#commerce-content .course-management-hero p{margin:0;color:var(--text-secondary);font-size:13px}.course-management-hero .course-reader-label{display:flex;align-items:center;gap:8px;color:var(--accent);font-size:11px;text-transform:uppercase;letter-spacing:.08em}.course-management-hero .course-reader-label .icon{width:16px;height:16px}
.course-management-hero>.commerce-actions{flex:none;margin:0;gap:8px}.course-management-stats{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:18px;color:var(--text-muted);font-size:12px}
.course-management-stats>span:not(.badge){padding-right:12px;border-right:1px solid var(--border)}
.course-management-section{margin:26px 0 16px}#commerce-content .course-management-section h3{margin:0 0 8px;font-size:16px}#commerce-content .course-management-section p{margin:0;font-size:12px;color:var(--text-muted)}
#commerce-content .course-management .commerce-module{padding:0;overflow:hidden;border-radius:16px}
.course-management .commerce-module>summary{padding:20px 22px;background:var(--surface);font-weight:600;border-bottom:1px solid var(--border)}
.course-management .commerce-module>.panel-heading{padding:14px 22px;margin:0;background:var(--surface)}
.course-management .commerce-module>.panel-heading>div:first-child{display:none}.course-management .commerce-module>.panel-heading>.commerce-actions{margin-left:auto}
.course-management .commerce-lessons{padding:0 16px}.course-management .commerce-lesson-row{padding:16px 8px;gap:12px;border-top:1px solid var(--border)}
.course-management .commerce-lesson-row>span{display:grid;place-items:center;flex:none;width:34px;height:34px;background:var(--surface-hover);color:var(--text-muted);border-radius:9px;font-size:12px}
.course-management .commerce-lesson-row strong{font-size:14px}.course-management .commerce-lesson-row small{font-size:11px;margin-top:8px}.course-management .lesson-tag{color:var(--text-muted)}
.course-management .commerce-actions .btn{min-height:34px;font-size:12px}.course-management .commerce-actions .course-tool{box-sizing:border-box;display:grid;place-items:center;width:34px;height:34px;min-height:34px;padding:0;background:var(--surface);border-color:var(--border)}
.course-management .course-tool>.icon{width:15px;height:15px}.course-management .course-tool-up>.icon{transform:rotate(180deg)}.course-management .course-tool-remove:hover{color:var(--danger);border-color:var(--danger)}
.course-management .commerce-module>.btn:last-child{margin:6px 22px 22px}
/* Stronger hierarchy and consistent icon tiles in the lesson reader. */
.course-reader-heading{padding:24px 26px;border:1px solid var(--border);border-radius:16px;background:var(--surface)}
.course-reader-heading>.btn{margin-bottom:22px}.course-reader .course-reader-label>.icon{box-sizing:content-box;padding:7px;border-radius:8px;background:var(--accent-subtle)}
#commerce-content .course-reader-outline{padding:20px}.course-reader-module h4{padding-bottom:10px;border-bottom:1px solid var(--border)}
.course-reader-module button{padding:12px 10px}.course-reader-module button[aria-current] .course-reader-number{background:var(--surface);color:var(--accent)}
#commerce-content .course-reader .commerce-learning-lesson{padding:24px;border-radius:16px}.course-reader-player{margin-top:18px}
@container(max-width:900px){.course-management-hero{align-items:flex-start;flex-direction:column}.course-management-hero>.commerce-actions{flex-wrap:wrap}}
@container(max-width:600px){.course-management-hero{padding:20px}.course-management .commerce-lesson-row{flex-wrap:wrap}.course-management .commerce-lesson-row>.commerce-actions{width:100%;justify-content:flex-end;margin:0}.course-reader-heading{padding:20px}.course-reader .course-reader-label{flex-wrap:wrap}}
.course-management .commerce-module{position:relative}
.course-management .commerce-module>summary{box-sizing:border-box;width:100%;max-width:none;padding-right:260px;min-height:64px}
.course-management .commerce-module>.panel-heading{position:absolute;top:15px;right:20px;width:auto;padding:0;background:transparent}
@container(max-width:600px){.course-management .commerce-module>summary{padding-right:22px}.course-management .commerce-module>.panel-heading{position:static;padding:12px 20px;width:auto}}
/* Course studio: media-led identity and readable curriculum cards. */
.course-studio{container-type:inline-size;min-width:0;margin-top:22px}
.course-studio>.btn{margin:0 0 22px}
.studio-heading{display:flex;align-items:center;gap:20px;padding:0 0 26px;border-bottom:1px solid var(--border)}
.studio-course-cover{display:grid;place-items:center;flex:none;width:112px;height:84px;overflow:hidden;border:1px solid var(--border);border-radius:12px;background:var(--surface-raised)}
.studio-course-cover img{width:100%;height:100%;object-fit:cover}.studio-course-cover>.icon{width:30px;height:30px;color:var(--text-muted)}
.studio-course-identity{min-width:0;flex:1}.studio-eyebrow{display:block;color:var(--text-muted);font-size:10px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}
#commerce-content .studio-course-identity>p{margin:0 0 8px}#commerce-content .studio-course-identity h2{font-size:clamp(21px,2.4vw,28px);line-height:1.3;margin:0 0 12px;overflow-wrap:anywhere}
.studio-course-meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--text-muted)}.studio-course-meta .badge{font-size:10px}
.studio-heading-actions{display:flex;align-items:center;gap:8px;flex:none}.studio-heading-actions>.btn{min-height:38px;font-size:12px}.studio-heading-actions .course-actions-menu summary{min-height:38px;width:38px;box-sizing:border-box;background:var(--surface)}
.studio-curriculum{margin-top:28px}.studio-section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}
#commerce-content .studio-section-heading h3{margin:0 0 8px;font-size:18px}#commerce-content .studio-section-heading p{margin:0;color:var(--text-muted);font-size:12px}.studio-section-heading>.btn{min-height:40px;font-size:12px;flex:none}
#commerce-content .course-studio .studio-module{padding:0;margin-bottom:20px;position:relative;border:1px solid var(--border);border-radius:16px;overflow:hidden;background:var(--surface)}
.course-studio .studio-module>summary{display:flex;align-items:center;gap:13px;width:100%;max-width:none;box-sizing:border-box;padding:20px 260px 20px 20px;min-height:88px;list-style:none;background:var(--surface)}
.studio-module>summary::-webkit-details-marker{display:none}.studio-module-index{display:grid;place-items:center;flex:none;width:40px;height:40px;background:var(--surface-hover);border:1px solid var(--border);border-radius:11px;color:var(--text-secondary)}.studio-module-index>.icon{width:19px;height:19px}
.studio-module-title{display:flex;flex-direction:column;gap:6px;min-width:0}.studio-module-title small{color:var(--text-muted);font-size:10px;letter-spacing:.08em;text-transform:uppercase}.studio-module-title strong{font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.studio-module-count{margin-left:auto;flex:none;font-size:11px;color:var(--text-muted);background:var(--surface-hover);border-radius:7px;padding:5px 8px}.studio-module>summary>.icon{width:14px;height:14px;flex:none;color:var(--text-muted)}.studio-module:not([open])>summary>.icon{transform:rotate(-90deg)}
.studio-module-tools{position:absolute;right:20px;top:26px;display:flex;align-items:center;gap:6px}.studio-module-tools>.btn{font-size:11px;min-height:34px;padding:7px 10px}.studio-module-tools .icon{width:14px;height:14px}
.studio-lessons{padding:4px 16px 16px;border-top:1px solid var(--border)}
.course-studio .studio-lesson{display:flex;align-items:center;gap:16px;padding:18px 12px;margin-top:12px;border:1px solid var(--border);border-radius:12px;background:var(--surface-raised)}
.course-studio .studio-lesson>.studio-lesson-thumb{display:grid;place-items:center;flex:none;width:112px;height:84px;min-width:0;background:var(--surface);border:1px solid var(--border);border-radius:12px;overflow:hidden}
.studio-lesson-thumb img{width:100%;height:100%;object-fit:cover}.studio-lesson-thumb>.icon{width:25px;height:25px;color:var(--text-muted)}
.course-studio .studio-lesson>.studio-lesson-copy{flex:1;min-width:0}.studio-lesson-copy>.studio-eyebrow{margin-bottom:8px}.course-studio .studio-lesson-copy>strong{font-size:15px;line-height:1.4;display:block;color:var(--text-primary)}
.studio-lesson-tags{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:10px;color:var(--text-muted);font-size:11px}.studio-lesson-tags>span{display:flex;align-items:center;gap:5px}.studio-lesson-tags .icon{width:13px;height:13px;color:var(--text-muted)}
.course-studio .studio-lesson-tools{margin:0;gap:6px;flex:none}.studio-lesson-tools>.btn{min-height:34px;font-size:11px;padding:7px 10px}
.course-studio .studio-tool{display:grid;place-items:center;box-sizing:border-box;flex:none;width:32px;height:34px;min-height:34px;padding:0;background:var(--surface);border:1px solid var(--border);border-radius:8px;color:var(--text-muted)}.studio-tool>.icon{width:14px;height:14px}.studio-tool-up>.icon{transform:rotate(180deg)}.course-studio .studio-tool:hover{background:var(--surface-hover);color:var(--text-primary)}.course-studio .studio-tool-remove:hover{color:var(--danger)}
.studio-add-lesson{margin-top:12px}.studio-add-lesson>.btn{display:flex;justify-content:center;width:100%;min-height:42px;border-style:dashed;background:transparent;color:var(--text-secondary);font-size:12px}.studio-add-lesson>.btn .icon{width:15px;height:15px}.studio-add-lesson>.btn:hover{background:var(--surface-hover);border-color:var(--border-strong)}
.studio-empty{text-align:center;padding:42px 24px;border:1px dashed var(--border);border-radius:14px;color:var(--text-muted)}.studio-empty>.icon{width:32px;height:32px;margin-bottom:12px}.studio-empty h3{font-size:16px}.studio-empty p{font-size:13px}
@container(max-width:1000px){.studio-heading{flex-wrap:wrap}.studio-heading-actions{margin-left:132px}.course-studio .studio-module>summary{padding-right:20px}.studio-module-tools{position:static;justify-content:flex-end;padding:0 20px 16px}.course-studio .studio-lesson{flex-wrap:wrap}.course-studio .studio-lesson-tools{width:100%;justify-content:flex-end;margin:0}}
@container(max-width:560px){.studio-course-cover{width:76px;height:64px}.studio-heading{gap:14px}.studio-heading-actions{margin-left:0;width:100%}.studio-course-meta{gap:8px}.studio-section-heading{align-items:flex-start;flex-wrap:wrap}.studio-module-count{display:none}.course-studio .studio-module>summary{padding:16px}.studio-module-tools{padding-inline:16px}.course-studio .studio-lesson{gap:12px;padding:14px 10px}.course-studio .studio-lesson>.studio-lesson-thumb{width:76px;height:64px}.studio-lesson-copy>strong{font-size:14px}.studio-lesson-tags{gap:8px}.studio-lessons{padding-inline:10px}.studio-module-title strong{font-size:14px}}
/* Destructive close confirmation sits in the native top layer above its editor. */
dialog.commerce-discard-dialog{box-sizing:border-box;width:min(440px,calc(100vw - 32px));max-width:440px;max-height:calc(100dvh - 32px);padding:28px;border:1px solid var(--border-strong);border-radius:18px;background:var(--surface);color:var(--text-primary);box-shadow:0 24px 80px #0008;overflow:auto}
dialog.commerce-discard-dialog::backdrop{background:#0007;backdrop-filter:blur(2px)}
.discard-warning-icon{display:grid;place-items:center;width:44px;height:44px;margin-bottom:20px;border-radius:12px;color:var(--accent);background:var(--accent-subtle)}.discard-warning-icon>.icon{width:23px;height:23px}
dialog.commerce-discard-dialog h2{font-size:21px;line-height:1.3;margin:0 0 12px}
dialog.commerce-discard-dialog>p{margin:0;color:var(--text-secondary);font-size:14px;line-height:1.7}
dialog.commerce-discard-dialog .dialog-actions{margin-top:26px;gap:10px;justify-content:flex-end}
dialog.commerce-discard-dialog [data-action=commerce-discard-dialog]{background:#b73b3b;border-color:#b73b3b;color:#fff}
dialog.commerce-discard-dialog [data-action=commerce-discard-dialog]:hover{filter:brightness(1.1)}
@media(max-width:480px){dialog.commerce-discard-dialog{padding:24px}.commerce-discard-dialog .dialog-actions>.btn{flex:1;white-space:normal}}

/* BEGIN FEATURE NAVIGATION */
.feature-navigation{display:inline-flex;gap:6px;padding:6px;margin:0 0 24px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}
.feature-navigation :is(button,a){display:flex;align-items:center;gap:12px;min-height:52px;padding:8px 18px 8px 10px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--text-secondary);font:inherit;text-align:left;cursor:pointer;transition:background var(--motion-fast),color var(--motion-fast)}
.feature-navigation :is(button,a)>.icon{width:34px;height:34px;padding:8px;border-radius:9px;background:var(--surface-hover);flex:none}
.feature-navigation :is(button,a) span{display:grid;gap:2px}.feature-navigation strong{font-size:var(--type-label);font-weight:600;color:var(--text-primary)}.feature-navigation small{font-size:var(--type-fine);color:var(--text-muted)}
.feature-navigation :is(button,a):hover{background:var(--surface-hover)}.feature-navigation :is(button,a).active{background:var(--surface-raised);border-color:var(--border-strong)}
.feature-navigation :is(button,a).active>.icon{background:var(--accent);color:var(--on-accent)}
.feature-navigation :is(button,a):focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.feature-navigation{max-width:100%;flex-wrap:wrap}.feature-navigation button:disabled{opacity:.5;cursor:not-allowed}.feature-navigation .feature-navigation-emoji{display:grid;place-items:center;font-size:18px;padding:0}
@media(max-width:600px){.feature-navigation{display:flex;width:100%;flex-wrap:nowrap;overflow-x:auto}.feature-navigation button{flex:none;padding:8px 10px}.feature-navigation small{display:none}}
@media(prefers-reduced-motion:reduce){.feature-navigation button{transition:none}}
/* END FEATURE NAVIGATION */

.merch-toolbar .feature-navigation{margin:0}

/* Trim unused canvas space without resizing the globe or its projection. */
.ambassador-hero>.ambassador-globe{margin-block:-70px}
@media(max-width:767px){.ambassador-hero>.ambassador-globe{margin-block:-60px}}

/* Keep the control inside the compact hero, above the referral strip. */
.ambassador-hero .ambassador-globe-controls{bottom:70px}
@media(max-width:767px){.ambassador-hero .ambassador-globe-controls{bottom:60px}}
/* Automation builder (ManyChat-style, kept simple): automation rows with a switch, quick starts, the builder dialog. */
.ab-rows{display:grid;gap:10px}
.ab-row{display:flex;align-items:center;gap:16px;padding:16px 18px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface-raised)}.ab-row[class*=account-hex-],.automation-history>article[class*=account-hex-]{border-color:var(--account-color)}
.ab-row-account{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-style:italic;color:var(--text-secondary)}.ab-dot{width:8px;height:8px;border-radius:50%;background:var(--account-color,var(--text-muted))}.ab-link-danger:hover,.ab-link-danger:focus-visible{color:var(--danger,#f87171)}
.ab-row-main{flex:1;min-width:0;display:grid;gap:4px}.ab-row-main strong{font-size:var(--type-label)}.ab-row-main span{font-size:var(--type-support);color:var(--text-muted)}
.ab-row-side{display:flex;align-items:center;gap:6px;flex:none}
.ab-link{min-height:32px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:var(--text-secondary);font:inherit;font-size:var(--type-support);cursor:pointer}
.ab-link:hover{background:var(--surface-hover);color:var(--text-primary)}.ab-link:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.ab-switch{position:relative;display:inline-block;flex:none;width:42px;height:24px;padding:0;margin-left:6px;border:1px solid var(--border-strong);border-radius:999px;background:var(--surface);cursor:pointer;transition:background var(--motion-fast) var(--ease-standard)}
.ab-switch span{position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:var(--text-muted);transition:transform var(--motion-fast) var(--ease-standard),background var(--motion-fast)}
.ab-switch[aria-checked=true],[aria-checked=true]>.ab-switch{background:var(--accent);border-color:var(--accent)}
.ab-switch[aria-checked=true] span,[aria-checked=true]>.ab-switch span{transform:translateX(18px);background:var(--on-accent)}
.ab-switch:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.ab-quicks{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.ab-quicks>span{margin-right:4px;font-size:var(--type-support);color:var(--text-muted)}
.ab-quick{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 14px;border:1px solid var(--border);border-radius:999px;background:transparent;color:var(--text-secondary);font:inherit;font-size:var(--type-support);cursor:pointer}
.ab-quick .icon{width:14px;height:14px;color:var(--accent)}.ab-quick:hover,.ab-quick:focus-visible{border-color:var(--accent);color:var(--text-primary);outline:none}
.ab-more{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}
.ab-more summary{display:flex;align-items:center;gap:10px;min-height:52px;padding:0 20px;cursor:pointer;font-size:var(--type-label);color:var(--text-secondary);list-style:none}
.ab-more summary::-webkit-details-marker{display:none}.ab-more summary::after{content:"";margin-left:auto;width:8px;height:8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);transition:transform var(--motion-fast)}
.ab-more[open] summary::after{transform:rotate(-135deg)}.ab-more summary span{min-width:22px;padding:1px 7px;border-radius:999px;background:var(--surface-hover);font-size:var(--type-fine);text-align:center}
.ab-more-body{display:grid;gap:14px;padding:0 20px 20px}
.ab-builder{display:grid;gap:22px;min-width:0}.ab-builder-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap}.ab-builder-head h2{margin:0}.ab-builder-head span{font-size:var(--type-support);color:var(--text-muted)}.ab-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:32px;align-items:start}.ab-when{display:grid;gap:18px}.ab-when h3,.ab-then h3{margin:0;font-size:var(--type-label);color:var(--text-secondary);font-weight:600}
.ab-line{display:grid;gap:8px}.ab-line>span{font-size:var(--type-support);color:var(--text-muted)}
.ab-segment{display:flex;padding:4px;gap:4px;border:1px solid var(--border);border-radius:12px;background:var(--surface)}
.ab-segment button{flex:1;min-height:38px;border:0;border-radius:9px;background:transparent;color:var(--text-secondary);font:inherit;font-size:var(--type-label);cursor:pointer}
.ab-segment button[aria-checked=true]{background:var(--accent);color:var(--on-accent);font-weight:600;box-shadow:0 2px 10px color-mix(in srgb,var(--accent) 35%,transparent)}
.ab-segment button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.ab-chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:-6px;padding:6px;border:1px solid var(--border);border-radius:12px;background:var(--background)}
.ab-chips:focus-within{border-color:var(--accent)}
.ab-chip{display:inline-flex;align-items:center;gap:4px;padding:4px 4px 4px 12px;border-radius:999px;background:var(--accent-subtle);font-size:var(--type-label)}
.ab-chip button{display:grid;place-items:center;width:22px;height:22px;border:0;border-radius:50%;background:transparent;color:var(--text-secondary);cursor:pointer;font-size:15px;line-height:1}.ab-chip button:hover{color:var(--text-primary)}
.ab-chips .ab-chip-input{flex:1;min-width:150px;min-height:32px;padding:4px 6px;border:0;background:transparent;box-shadow:none}
.ab-then{display:grid;gap:8px}
.ab-action{border-top:1px solid var(--border)}.ab-action:last-child{border-bottom:1px solid var(--border)}
.ab-action-row{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:52px;padding:0 2px;border:0;background:transparent;color:var(--text-primary);font:inherit;font-size:var(--type-label);text-align:left;cursor:pointer}
.ab-action-row:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:8px}
.ab-message{display:grid;gap:6px;padding:0 0 14px}
.ab-editor{min-height:72px;padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:var(--background);line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;outline:none}
.ab-editor:focus{border-color:var(--accent)}.ab-editor:empty::before{content:attr(data-placeholder);color:var(--text-muted)}
.ab-message .ab-link{justify-self:start;padding:0 6px;color:var(--accent)}
.ab-token{display:inline-flex;align-items:center;margin:0 2px;padding:0 9px;border-radius:999px;background:var(--accent);color:var(--on-accent);font-size:.88em;font-weight:600;user-select:all}
.ab-footer{display:flex;justify-content:flex-end;gap:10px;padding-top:18px;border-top:1px solid var(--border)}
@media(max-width:900px){.ab-cols{grid-template-columns:1fr;gap:24px}}@media(max-width:760px){.ab-row{flex-wrap:wrap}.ab-row-side{width:100%;justify-content:flex-end}}
.ab-activity-tools{display:flex;align-items:center;gap:10px}.ab-search{flex:1;display:flex;align-items:center;gap:8px;min-height:44px;padding:0 12px;border:1px solid var(--border);border-radius:12px;background:var(--background)}.ab-search:focus-within{border-color:var(--accent)}.ab-search .icon{width:16px;height:16px;flex:none;color:var(--text-muted)}.ab-search input{flex:1;min-width:0;min-height:42px;padding:0;border:0;background:transparent;box-shadow:none;color:inherit;font:inherit;outline:none}
.ab-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:var(--type-support);color:var(--text-muted)}.ab-pager-count,.ab-activity-empty{margin:0;font-size:var(--type-support);color:var(--text-muted)}@media(forced-colors:active){.ab-row[class*=account-hex-]{border-color:CanvasText}}
.automation-account-list.social-accounts-list{display:grid;gap:10px}.automation-account-row .social-accounts-status{font-size:var(--type-support);color:var(--text-muted)}.automation-account-row.is-waiting{grid-template-columns:32px minmax(0,1fr) auto auto}.automation-account-row.is-waiting .btn{grid-area:actions;justify-self:end}
.ab-accounts{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}@media(max-width:1000px){.ab-accounts{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.ab-accounts{grid-template-columns:repeat(2,minmax(0,1fr))}}.ab-account{display:flex;align-items:center;justify-content:center;gap:16px;min-width:0;padding:8px 14px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text-secondary);font:inherit;text-align:left;cursor:pointer;transition:border-color var(--motion-fast),background var(--motion-fast)}.ab-account .social-accounts-avatar{width:34px;height:34px}.ab-account>span:last-child{display:grid;min-width:0}.ab-account strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--type-label);color:var(--text-primary)}.ab-account small{font-size:var(--type-fine);color:var(--text-muted)}.ab-account:hover{background:var(--surface-hover)}.ab-account[aria-selected=true]{border-color:var(--account-color,var(--accent));background:color-mix(in srgb,var(--account-color,var(--accent)) 12%,var(--surface));box-shadow:0 0 0 1px var(--account-color,var(--accent))}.ab-account:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.ab-ready{display:grid;gap:14px;max-width:560px}.ab-check{display:flex;align-items:flex-start;gap:10px;font-size:var(--type-label);color:var(--text-secondary);cursor:pointer}.ab-check input{margin-top:3px;accent-color:var(--accent)}

/* Shop tab: profile-style link bar and automation-style shortcut cards. */
.shop-hero{position:relative;display:grid;gap:22px;margin-bottom:36px;padding:28px;border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;background:radial-gradient(90% 140% at 0% 0%,var(--accent-subtle),transparent 55%),var(--surface-raised)}
.shop-hero-identity{display:flex;align-items:center;gap:20px;min-width:0}
.shop-hero-identity>.avatar{flex:none;width:72px;height:72px;box-shadow:0 0 0 4px var(--surface-raised),0 10px 28px #0006}
.shop-hero-identity h2{margin:0 0 6px;font-size:22px;letter-spacing:-.4px}
.shop-hero-identity p{margin:0;max-width:620px;color:var(--text-secondary);font-size:var(--type-label);line-height:1.6}
.shop-hero-bar{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.shop-hero-bar .profile-link-chip{background:var(--surface)}
.shop-hero-bar .profile-link-chip>a.icon-btn{margin-left:0;color:var(--text-secondary)}
.shop-hero-preview{margin-left:auto}
.shop-hero-note{margin:0;padding-top:18px;border-top:1px solid var(--border);color:var(--text-muted);font-size:var(--type-support);line-height:1.6}
.shop-manage>h2{margin:0 0 4px;font-size:var(--type-section)}
.shop-manage>p{margin:0 0 20px;color:var(--text-secondary);font-size:var(--type-label)}
.shop-card-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.automation-platform-card.shop-card{min-height:320px;padding:40px 22px 24px;text-decoration:none}
.shop-card .automation-platform-mark{width:96px;height:96px;margin:4px 0 14px;border-radius:26px;color:var(--text-primary)}
.shop-card .automation-platform-mark>.icon{width:40px;height:40px}
.shop-card .automation-platform-open{margin-top:auto;width:100%;justify-content:center;padding-top:14px;border-top:1px solid var(--border)}
@media(max-width:1100px){.shop-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.shop-hero{padding:20px}.shop-hero-identity{align-items:flex-start}.shop-hero-identity>.avatar{width:56px;height:56px}.shop-hero-preview{margin-left:0;width:100%}.shop-hero-bar .profile-link-chip{width:100%}.shop-card-grid{grid-template-columns:1fr}.automation-platform-card.shop-card{min-height:0;padding:28px 20px 20px}}

/* Recent activity, polished (owner request 7 Nov 2026): compact cards, the Social accounts status badge,
   an outlined "View reply" toggle, and the back button's thin outline on Test / Edit / Delete. */
.automation-history{gap:10px}
.automation-history>article{padding:14px 18px;gap:8px 14px;align-items:center}
.ab-activity-head{display:grid;gap:4px;min-width:0}
.ab-activity-head strong{font-size:var(--type-label);color:var(--text-primary)}
.ab-activity-meta{font-size:12.5px;color:var(--text-muted);overflow-wrap:anywhere}
.automation-history>article>p{font-size:13.5px;line-height:1.6}
.automation-history .account-status-badge{align-self:start}
.ab-more .ab-activity-reply>summary{display:inline-flex;align-items:center;gap:6px;min-height:30px;width:max-content;padding:0 12px 0 9px;border:1px solid var(--border);border-radius:10px;background:var(--surface-raised);color:var(--text-secondary);font-size:12.5px}
.ab-more .ab-activity-reply>summary::after{content:none}
.ab-more .ab-activity-reply>summary .icon{width:13px;height:13px;transition:transform var(--motion-fast)}
.ab-more .ab-activity-reply[open]>summary .icon{transform:rotate(90deg)}
.ab-more .ab-activity-reply>summary:hover{background:var(--surface-hover);color:var(--text-primary)}
.ab-more .ab-activity-reply>summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.ab-activity-reply blockquote{margin:10px 0 0;padding:12px 14px;border-left:2px solid var(--account-color,var(--accent));border-radius:0 10px 10px 0;background:var(--surface-hover);color:var(--text-primary);font-size:13.5px;line-height:1.6;white-space:pre-wrap}
.ab-link.ab-stroke{min-height:32px;padding:0 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface-raised);color:var(--text-secondary)}
.ab-link.ab-stroke:hover{background:var(--surface-hover);color:var(--text-primary)}
.ab-link.ab-stroke.ab-link-danger:hover,.ab-link.ab-stroke.ab-link-danger:focus-visible{color:var(--danger,#f87171);border-color:color-mix(in srgb,var(--danger,#f87171) 45%,var(--border))}
.ab-row-side{gap:8px}
.automation-history+.ab-pager,.automation-history+.ab-pager-count{margin-top:12px}

/* Platform cards (owner request 7 Nov 2026): agency-style "Ready" badge; account names as Connected-style badges
   in each account's own colour (the colour class's 2px border is cancelled on the wrapper). */
.automation-platform-status{position:absolute;top:16px;right:16px}
.automation-platform-accounts{display:flex;flex-wrap:wrap;gap:6px;min-width:0}
.ab-account-badge{--sb-tone:var(--account-color,#ff9a52)}
.ab-account-badge[class*=account-hex-]{border:0}
.ab-account-badge .sb-role-badge{color:color-mix(in srgb,var(--sb-tone) 55%,#ffffff);box-shadow:0 0 14px color-mix(in srgb,var(--sb-tone) 16%,transparent)}
.ab-account-badge .sb-role-badge>.icon{color:var(--sb-tone)}
