@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:wght@400;500;600;700&display=swap');
/* Afterglow belongs to the application chrome; creator themes keep their own tokens. */
.afterglow-home{--ink:#f1ece4;--muted:#b3a99f;--accent:#c9b1fc;--bg:#151313}
.afterglow-home em{font-family:'Instrument Serif',Georgia,serif}
.afterglow-home header{height:88px}.afterglow-home .hero{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.8fr);gap:48px;align-items:center;padding:70px max(5vw,24px) 90px;background:radial-gradient(ellipse at 85% 25%,#8f6cf03d,transparent 65%)}
.afterglow-home .halo{background:radial-gradient(circle,#8f6cf047,transparent 70%)}
.afterglow-home .hero-copy{position:relative;z-index:1}.afterglow-home .hero-top{line-height:1.6}.afterglow-home .hero-top span+span{display:none}
.afterglow-home h1{font-size:clamp(48px,6.6vw,104px);line-height:.98;letter-spacing:-.055em;margin:36px 0 28px}.afterglow-home h1 em{display:inline-block;line-height:1;letter-spacing:-.035em}
.afterglow-home .hero-bottom{display:block;margin:0}.afterglow-home .hero-bottom p{font-size:17px;line-height:1.65;max-width:42ch}.afterglow-home .hero-bottom p br{display:none}.afterglow-home .hero-actions{gap:16px;margin-top:28px}.afterglow-home .hero-actions small{font-size:12px;line-height:1.5;max-width:42ch}.afterglow-home .hero-actions .hero-beta{font-size:11px}.afterglow-home .edition{display:none}
.afterglow-home .hero-storefront{position:relative;max-width:410px;width:100%;justify-self:center;padding-bottom:20px}
.afterglow-home .profile-demo{margin:0;border:8px solid #080707;border-radius:42px;background:#24191f;color:#f1ece4;box-shadow:0 24px 80px #0007}
.afterglow-home .profile-bar{font-size:12px;padding:18px 16px;border-color:#ffffff18}.afterglow-home .profile-bar span{display:none}.afterglow-home .profile-info{padding:20px 15px;gap:14px}.afterglow-home .profile-info h2{font-size:19px}.afterglow-home .profile-info p{font-size:10px;line-height:1.5}.afterglow-home .profile-avatar{width:60px;height:60px;border:2px solid #c9b1fc;outline:0;object-fit:cover}.afterglow-home .profile-tabs{gap:50px;border-color:#ffffff18;color:#f1ece4}.afterglow-home .profile-tabs span{color:#c9b8cc}
.afterglow-home .profile-posts{gap:3px}.afterglow-home .profile-posts .post-caption{font-size:clamp(18px,1.8vw,25px);top:12px;-webkit-text-stroke:4px #10100f;text-shadow:1px 2px #10100f,2px 4px #10100f}.afterglow-home .product-bubble{background:#e7d9ff;color:#261e31;font-size:10px;padding:9px 3px}.afterglow-home .profile-explainer{padding:15px;display:block;font-size:11px}.afterglow-home .profile-explainer span{display:block;margin-top:5px;color:#c4b7c5;font-size:9px}
.hero-product-card{position:absolute;bottom:55px;left:-45px;z-index:5;display:flex;gap:13px;align-items:center;padding:15px;border:1px solid #ffffff26;border-radius:16px;background:#241e1c;box-shadow:0 18px 40px #0007}.hero-product-card img{width:56px;height:70px;object-fit:cover;border-radius:7px}.hero-product-card span{display:grid;gap:7px;font-size:13px}.hero-product-card b{border-radius:20px;padding:6px 10px;background:#f1ece4;color:#241e1c;font-size:11px}.hero-product-card small{color:#b3a99f;font-size:10px}
.device-window{contain:paint;overflow:clip}.device-window iframe{background:#17171a}
@media(max-width:800px){.afterglow-home .hero{grid-template-columns:1fr;padding:38px 6vw 50px;gap:32px}.afterglow-home h1{font-size:clamp(47px,11vw,76px)}.afterglow-home .hero-bottom p{font-size:16px}.afterglow-home .hero-storefront{max-width:420px}.hero-product-card{left:-6px;bottom:45px}.afterglow-home .profile-posts .post-caption{font-size:23px}.afterglow-home .hero-top{font-size:8px}.afterglow-home .profile-demo{border-width:6px}}
/* Shared style editor, including the separate advanced window. */
#profile-editor,#preset-variant-picker,#custom-gradient-builder{--accent:#c9b1fc;--text:#f1ece4;--muted:#b3a99f;--line:#ffffff20;--button-ink:#231b2b;background:#1c1817;color:#f1ece4;font:14px/1.5 'DM Sans',sans-serif;border:1px solid #ffffff26;box-shadow:0 30px 100px #0008;color-scheme:dark}
#profile-editor{width:min(1480px,calc(100vw - 40px));max-width:1480px;height:calc(100dvh - 40px);max-height:calc(100dvh - 40px);padding:20px 24px;border-radius:20px}
#profile-editor #profile-form{height:100%;max-height:100%;gap:0}
#profile-editor .style-editor-header{margin:0 0 18px;min-height:44px;align-items:center;flex:none;gap:16px}
#profile-editor .style-editor-header h2{font:italic 30px/1.1 'Instrument Serif',Georgia,serif;margin:0;color:#f1ece4}
#profile-editor .profile-workspace{display:grid;grid-template-columns:minmax(0,1fr) 392px;gap:24px;overflow:hidden;min-height:0}
#profile-editor .profile-settings-scroll{padding:0 4px 24px 20px;border-left:1px solid #ffffff16;scroll-padding-top:12px}
#profile-editor .profile-theme-panel{border:0;padding:0;background:transparent}
#profile-editor .profile-theme-panel>p:first-child{display:none}
#profile-editor .custom-section{border:1px solid #ffffff20;border-radius:14px;padding:0;margin:0 0 12px;background:#201b19}
#profile-editor .custom-section>summary{font:600 14px/1.4 'DM Sans',sans-serif;padding:17px 15px;min-height:54px;margin:0;cursor:pointer}
#profile-editor .custom-section[open]{padding:0 14px 16px}#profile-editor .custom-section[open]>summary{margin:0 -14px 10px}
#profile-editor :is(button,input,select,textarea){font-family:'DM Sans',sans-serif}
#profile-editor :is(button,.secondary-button),#preset-variant-picker button{min-height:44px;box-shadow:none;text-shadow:none}
#profile-editor .secondary-button,#profile-editor .device-preview-controls button{background:#241e1c;color:#f1ece4;border:1px solid #ffffff25;border-radius:10px}
#profile-editor .primary-button,#profile-editor .device-preview-controls button[aria-pressed=true]{background:#f1ece4;color:#211b18;border-color:#f1ece4}
#profile-editor #profile-advanced-toggle{max-width:65%;font-size:12px;min-height:44px;border-color:#c9b1fc60;color:#e5d7ff}
#profile-editor :is(input,select,textarea){accent-color:#c9b1fc}
#profile-editor :is(button,input,select,textarea,summary):focus-visible,#preset-variant-picker button:focus-visible{outline:2px solid #c9b1fc;outline-offset:3px}
#profile-editor .device-preview-controls{gap:6px;margin:0 0 10px;display:flex}.device-preview-controls button{flex:1}
#profile-editor .creator-page-preview{border:1px solid #ffffff26;border-radius:16px;background:#121010;max-height:none;overflow:hidden}
#profile-editor .profile-live-preview{position:relative;overflow:hidden;max-height:none;align-self:stretch;background:radial-gradient(ellipse at 50% 35%,#8f6cf015,transparent 70%)}
#profile-editor .preview-window-bar{margin-bottom:10px}.preview-window-bar .preview-drag{flex:1;text-align:left}
#profile-editor .preview-background-check{float:right;margin:0 0 10px 10px;min-height:36px;font-size:12px}.preview-background-note{clear:both;padding:8px;font-size:12px}
#profile-editor #profile-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:4px}
#profile-editor #profile-presets button{width:100%;min-width:0;height:88px;margin:0;font-size:17px;overflow:hidden;border-radius:12px}
#profile-editor #profile-presets button[aria-pressed=true]{outline:2px solid #c9b1fc;outline-offset:3px}
#profile-editor .form-actions{margin-top:12px;padding-top:12px;border-color:#ffffff20;gap:10px}
#profile-editor .advanced-mode-notice{color:#c9b1fc;font-size:12px}.advanced-section-badge{display:none!important}
#profile-editor .product-overlay{overflow-wrap:normal;word-break:normal}
#preset-variant-picker{position:fixed;box-sizing:border-box;inset:auto;margin:0;left:var(--variant-left,20px);top:var(--variant-top,20px);width:var(--variant-width,95vw);max-width:none;height:var(--variant-height,90dvh);max-height:none;padding:22px;display:none;grid-template-columns:minmax(0,1fr) 360px;grid-template-rows:auto auto minmax(0,1fr) auto;gap:12px 24px;overflow:hidden;border-radius:20px}
#preset-variant-picker[open]{display:grid}#preset-variant-picker::backdrop{background:#0004;backdrop-filter:none}
#preset-variant-picker>.profile-live-preview{grid-column:1;grid-row:1/5;min-width:0;overflow:hidden;display:block;max-height:none}
#preset-variant-picker>h2,#preset-variant-picker>p,#preset-variant-picker>.preset-variant-grid,#preset-variant-picker>.form-actions{grid-column:2;margin:0}
#preset-variant-picker .preset-variant-grid{align-self:start;gap:8px;grid-template-columns:repeat(3,minmax(0,1fr));overflow:auto;max-height:100%;padding:4px}
#preset-variant-picker h2{font:italic 28px/1.1 'Instrument Serif',Georgia,serif}
#preset-variant-picker .preset-variant-choice{min-width:0;background:#241e1c;color:#f1ece4;border-color:#ffffff25}
#preset-variant-picker .preset-variant-choice[aria-pressed=true]{outline:2px solid #c9b1fc;outline-offset:2px}
#preset-variant-picker .preset-variant-preview{height:170px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:8px}
#preset-variant-picker .variant-avatar{width:34px;height:34px;border-radius:50%;object-fit:cover}.variant-covers{display:flex;width:100%;gap:2px}.variant-covers img{width:calc(100% / 3 - 2px);height:44px;object-fit:cover}
#preset-variant-picker .preset-variant-text{font-size:13px;max-width:100%;overflow-wrap:anywhere;text-align:center;padding:3px}.preset-variant-name{font-size:12px;padding:9px}
#preset-variant-picker .form-actions{padding:12px 0 max(8px,env(safe-area-inset-bottom));border-top:1px solid #ffffff20;align-self:end;display:flex;justify-content:flex-end;gap:8px}
#preset-variant-picker .form-actions button{padding:10px 14px;border-radius:999px}
#preset-variant-picker .creator-page-preview{overflow:hidden;border-radius:14px;border:1px solid #ffffff25}#preset-variant-picker .preview-background-check{display:block;float:right;font-size:11px;min-height:32px;margin-bottom:6px}
.product-overlay{overflow-wrap:normal;word-break:normal;hyphens:manual}
@media(max-width:1000px) and (min-width:761px){#profile-editor .profile-workspace{grid-template-columns:minmax(0,1fr) 330px}#preset-variant-picker{grid-template-columns:minmax(0,1fr) 330px;gap:12px}}
@media(max-width:760px){
 #profile-editor{width:100%;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0;padding:12px;margin:0;inset:0}
 #profile-editor .style-editor-header{margin-bottom:10px}.style-editor-header h2{font-size:25px!important}
 #profile-editor .profile-workspace{display:block;overflow-y:auto;scroll-padding-top:calc(40dvh + 110px);overscroll-behavior:contain}
 #profile-editor .profile-live-preview:not(.preview-floating){position:sticky;top:0;z-index:5;background:#1c1817;padding:0 0 10px;margin:0 0 16px;overflow:hidden}
 #profile-editor .profile-live-preview:not(.preview-floating) .creator-page-preview{height:clamp(180px,40dvh,430px)!important;max-height:none}
 #profile-editor .preview-window-bar,#profile-editor .mobile-preview-toggle{display:none}
 #profile-editor .profile-settings-scroll{overflow:visible;border:0;padding:0 2px 20px}
 #profile-editor .preview-background-check{min-height:32px;margin-bottom:6px;font-size:11px;padding:5px 10px}
 #profile-editor .device-preview-controls{clear:both}.device-preview-controls button{min-height:40px!important}
 #profile-editor .form-actions{padding-bottom:max(6px,env(safe-area-inset-bottom));margin-top:6px}
 #profile-editor #profile-presets{grid-template-columns:repeat(2,minmax(0,1fr))}
 #preset-variant-picker{inset:0!important;width:100%!important;height:100dvh!important;max-height:100dvh;display:none;grid-template-columns:1fr;grid-template-rows:minmax(140px,35dvh) auto auto minmax(0,1fr) auto;gap:10px;padding:12px;border-radius:0}
 #preset-variant-picker[open]{display:grid}
 #preset-variant-picker>.profile-live-preview{grid-column:1;grid-row:1;min-height:0}.preset-variant-dialog .preview-window-bar,.preset-variant-dialog .mobile-preview-toggle{display:none}
 #preset-variant-picker :is(h2,p,.preset-variant-grid,.form-actions){grid-column:1}
 #preset-variant-picker h2{font-size:22px}#preset-variant-picker>p{font-size:12px;line-height:1.4}
 #preset-variant-picker .preset-variant-grid{width:100%;height:100%;align-self:stretch;margin:0}
 #preset-variant-picker .preset-variant-preview{height:clamp(80px,16dvh,150px);gap:3px}.preset-variant-name{font-size:11px!important;padding:8px!important}
 #preset-variant-picker .form-actions{padding-bottom:max(14px,env(safe-area-inset-bottom));flex-wrap:nowrap}
 body.demo-playground .demo-controls{display:flex;flex-wrap:wrap;gap:8px;padding:10px;max-height:160px}
 body.demo-playground .demo-controls>.preset-progress{display:none}
 body.demo-playground .demo-controls>.demo-tutorial-start{order:0;flex:1;min-height:44px;margin:0}
 body.demo-playground .demo-actions-left{order:1;flex:1;justify-content:flex-end}.demo-actions-left button{min-height:44px}
 body.demo-playground .demo-actions-right{order:2;flex:0 0 100%;justify-content:space-between}
}

/* Comparison previews share the editor controls without inheriting a creator's accent. */
#preset-variant-picker .device-preview-controls{display:flex;gap:6px;clear:both;margin-bottom:10px}
#preset-variant-picker .device-preview-controls button{background:#241e1c;color:#f1ece4;border:1px solid #ffffff25;border-radius:10px}
#preset-variant-picker .device-preview-controls button[aria-pressed=true]{background:#f1ece4;color:#211b18}
#preset-variant-picker .style-caption{display:none}
#preset-variant-picker .preset-variant-text{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:100%;box-sizing:border-box}
#profile-editor #profile-presets button{isolation:isolate;contain:paint}
@media(max-width:760px){
 #profile-editor .profile-workspace{display:grid;grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);overflow:hidden;gap:8px}
 #profile-editor .profile-live-preview:not(.preview-floating){position:relative;margin:0;padding:0}
 #profile-editor .profile-live-preview:not(.preview-floating) .creator-page-preview{height:clamp(140px,30dvh,300px)!important}
 #profile-editor .profile-settings-scroll{overflow-y:auto;min-height:0;overscroll-behavior:contain}
 #profile-editor .preview-background-check{float:none;width:auto;margin:0 0 6px}
 #profile-editor .preview-background-note{display:none}
 #preset-variant-picker .preview-background-note{display:none}
}
#preset-variant-picker>.profile-live-preview{height:100%;align-self:stretch;min-height:0}

#add-post-choices,#manual-post-dialog{box-sizing:border-box;width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;background:#201b19;color:#f1ece4;border:1px solid #ffffff30;border-radius:18px;padding:24px;font:14px/1.5 'DM Sans',sans-serif}
.manual-option{display:grid;gap:6px;width:100%;text-align:left;padding:18px;margin:12px 0;white-space:normal;background:#302536;color:#f1ece4;border:1px solid #c9b1fc70;border-radius:12px;box-shadow:none}.manual-option span{font-size:13px;font-weight:400}
#manual-post-form{display:grid;gap:12px}#manual-post-form h2{margin:0}#manual-post-form label{display:grid;gap:6px}#manual-post-form :is(input,select){box-sizing:border-box;width:100%;min-width:0;min-height:44px;font:inherit;padding:10px;background:#131111;color:#f1ece4;border:1px solid #ffffff35;border-radius:8px}#manual-post-form fieldset{min-width:0;border:1px solid #ffffff25;border-radius:10px;padding:14px;display:grid;gap:10px}#manual-cover-preview{width:120px;max-height:180px;object-fit:contain;justify-self:center}#manual-post-form .form-actions{position:sticky;bottom:-24px;background:#201b19;padding:12px 0;margin:0}#manual-post-form button{min-height:44px}#manual-post-error{color:#ffb2b2;margin:0}
