:root{
    color-scheme:light;
    --paper:#fbf9f3;
    --ink:#29263c;
    --muted:#615d69;
    --line:#dfdbd3;
    --orange:#f16c45;
    --lavender:#e6dcf5;
    font-family:"Segoe UI",Arial,sans-serif;
    color:var(--ink);
    background:var(--paper);
}
*{
    box-sizing:border-box;
}
body{
    margin:0;
}
button,input,select{
    font:inherit;
    color:inherit;
}
button,a,input,select{
    touch-action:manipulation;
}
button{
    cursor:pointer;
}
button{
    border:0;
    background:transparent;
}
a{
    color:inherit;
    text-decoration:none;
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{
    outline:3px solid #6f49a6;
    outline-offset:3px;
}
.mast{
    border-bottom:1px solid var(--line);
}
.nav,main,footer{
    width:min(1440px,100%);
    margin:auto;
    padding-inline:clamp(20px,4.8vw,82px);
}
.nav{
    min-height:76px;
    display:flex;
    align-items:center;
    gap:clamp(25px,5vw,90px);
}
.footer-brand{
    font:italic bold 34px/.95 Georgia,serif;
    letter-spacing:-2.5px;
}
.brand{
    display:block;
    width:min(19rem, 48vw);
    min-width:0;
}
.brand img{
    display:block;
    width:100%;
    aspect-ratio:4.8;
    object-fit:cover;
    /* Frame the lettering within the original photograph of the sketch. */
    object-position:50% 46%;
    filter:brightness(1.54) contrast(1.2);
    mix-blend-mode:multiply;
}
.nav nav{
    display:flex;
    align-self:stretch;
    gap:28px;
}
.nav nav>*{
    display:grid;
    place-content:center;
    font-weight:600;
    font-size:14px;
    padding:0 2px;
}
.nav .current{
    box-shadow:inset 0 -3px var(--orange);
}
.saved-link,.guide,.primary,.switch button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}
.saved-link{
    margin-left:auto;
    font-weight:650;
    font-size:14px;
}
.saved-link #saved-count{
    padding:2px 7px;
    border-radius:12px;
    background:#ede9e0;
}
.icon{
    width:18px;
    height:18px;
    vertical-align:middle;
    display:inline-block;
    fill:none;
    stroke:currentColor;
    stroke-width:1.7;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.intro{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    padding:42px 0 30px;
    gap:16px;
}
.kicker,.panel-strip-title,.view-caption{
    font:700 .73rem/1.4 "Segoe UI",Arial,sans-serif;
    letter-spacing:.14em;
}
.kicker,.panel-strip-title,.view-caption{
    text-transform:uppercase;
}
.kicker{
    display:flex;
    gap:9px;
    align-items:center;
}
.short-rule{
    width:23px;
    height:3px;
    background:var(--orange);
}
h1,h2,h3,p{
    margin:0;
}
h1{
    font:normal clamp(48px,5.4vw,79px)/1.08 Georgia,serif;
    letter-spacing:-.065em;
    margin:7px 0;
}
h1 em{
    font-weight:normal;
    color:#aa462f;
}
.intro p{
    color:var(--muted);
    font-size:1.04rem;
}
.guide{
    font-weight:650;
    font-size:.9rem;
    text-decoration:underline;
    text-decoration-color:#aaa3a1;
    text-underline-offset:5px;
    padding:8px 0;
}
.workspace{
    display:grid;
    grid-template-columns:minmax(0,1.65fr) minmax(315px,1fr);
    gap:22px;
    align-items:start;
}
.preview,.editor{
    border:1px solid var(--line);
    border-radius:20px;
    overflow:hidden;
    background:#fffef9;
}
.stage{
    width:100%;
    overflow:hidden;
    position:relative;
    background-color:var(--lavender);
    background-image:radial-gradient(#9586a54d .8px,transparent .9px);
    background-size:12px 12px;
    min-height:390px;
    aspect-ratio:1.74;
    display:flex;
    flex-direction:column;
    isolation:isolate;
}
.stage-head,.stage-foot{
    display:flex;
    justify-content:space-between;
    align-items:center;
    position:relative;
    z-index:1;
}
.stage-head{
    padding:18px 20px 0;
}
.stage-head h2{
    font:650 .89rem/1.2 "Segoe UI",Arial,sans-serif;
    display:flex;
    align-items:center;
    gap:8px;
}
.live-dot{
    background:#5c4774;
    width:8px;
    height:8px;
    border-radius:50%;
}
.switch{
    display:flex;
    background:#f9f5f990;
    border:1px solid #ab9ab58c;
    padding:3px;
    border-radius:22px;
}
.switch button{
    padding:6px 11px;
    font-weight:600;
    font-size:.8rem;
    border-radius:20px;
}
.switch button[aria-pressed=true]{
    background:var(--ink);
    color:white;
}
.switch .icon{
    width:15px;
    height:15px;
}
#art{
    flex:1;
    min-height:0;
    display:grid;
    place-items:center;
    position:relative;
}
#art>.wide-preview{
    position:absolute;
    width:100%;
    height:100%;
    overflow:visible;
}
.stage-foot{
    padding:0 20px 14px;
    color:#585064;
}
.view-caption{
    font-size:.71rem;
    letter-spacing:.1em;
}
.woven-label{
    display:inline-flex;
    gap:3px;
    align-items:center;
    font:bold italic 16px Georgia;
    color:#635671;
}
.woven-label span{
    color:#8a71a4;
    font-size:14px;
}
.panel-strip{
    padding:18px 20px 20px;
}
.panel-strip-title{
    color:var(--muted);
    margin-bottom:10px;
}
.panel-buttons{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
}
.panel-btn{
    border:1px solid var(--line);
    border-radius:11px;
    padding:8px;
    display:flex;
    align-items:center;
    gap:9px;
    text-align:left;
    background:#fffdfa;
    font-weight:650;
    font-size:.9rem;
}
.panel-btn small{
    display:block;
    font-size:.74rem;
    color:var(--muted);
    font-weight:450;
    margin-top:2px;
}
.panel-btn svg{
    width:35px;
    height:39px;
    border-radius:5px;
    flex:none;
}
.panel-btn[aria-pressed=true],.artwork-card[aria-pressed=true]{
    border-color:var(--ink);
    box-shadow:inset 0 0 0 1px var(--ink);
    background:#f6f0fb;
}
.editor-title{
    padding:23px 24px 15px;
}
.editor-title .kicker{
    color:#766776;
    font-size:.69rem;
}
.editor-title h2,.dialog-head h2{
    font:normal 34px/1.15 Georgia,serif;
    letter-spacing:-1.7px;
    margin-top:4px;
}
.steps{
    flex-wrap:wrap;
    display:flex;
    border-bottom:1px solid var(--line);
    padding:0 24px;
    gap:4px;
}
.steps button{
    flex:1;
    font-size:.91rem;
    font-weight:650;
    padding:8px 4px 13px;
    color:var(--muted);
}
.steps button[aria-pressed=true]{
    color:var(--ink);
    box-shadow:inset 0 -3px var(--orange);
}
#options{
    padding:18px 24px 20px;
    min-height:255px;
}
fieldset{
    border:0;
    padding:0;
    margin:0 0 21px;
    min-width:0;
}
fieldset:last-child{
    margin-bottom:0;
}
legend,.field-label{
    font-weight:700;
    font-size:.95rem;
    margin:0 0 10px;
    padding:0;
}
.artwork-picker{
    position:relative;
}
.artwork-picker legend{
    padding-right:5rem;
    min-height:1.65rem;
    margin-bottom:.25rem;
}
art-carousel{
    display:block;
    position:relative;
}
.carousel-nav:not([hidden]){
    display:flex;
    gap:.25rem;
    position:absolute;
    right:0;
    bottom:calc(100% + .25rem);
}
.carousel-nav button{
    width:2rem;
    height:1.75rem;
    border:1px solid var(--line);
    border-radius:6px;
    font:1.3rem/1 Arial,sans-serif;
}
.carousel-nav button:disabled{
    opacity:.35;
    cursor:default;
}
.carousel-track{
    display:flex;
    gap:.5rem;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    scroll-snap-type:x proximity;
    scrollbar-width:thin;
    padding:.2rem .15rem .45rem;
}
.artwork-card{
    flex:0 0 clamp(5.8rem, 31%, 8rem);
    min-width:0;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    padding:4px;
    gap:.3rem;
    background:#fffdfa;
    border:1px solid var(--line);
    border-radius:10px;
    scroll-snap-align:start;
    font-size:.83rem;
    font-weight:600;
}
.artwork-card:focus-visible{
    outline-offset:-3px;
}
.artwork-sample{
    display:block;
    width:100%;
    height:4.4rem;
    background:white;
    border-radius:6px;
    overflow:hidden;
}
.artwork-label{
    margin-block:auto;
    padding:.1rem .15rem .25rem;
    line-height:1.15;
}
.color-picker,.check-field{
    display:inline-flex;
    align-items:center;
    gap:.55rem;
    font-size:.9rem;
    cursor:pointer;
}
.hair-options h3,.testicle-options h3{
    margin:0 0 .85rem;
    font-size:1rem;
}
.hair-options + .hair-options,.testicle-options{
    margin-top:1.25rem;
    padding-top:1rem;
    border-top:1px solid var(--line);
}
.color-picker{
    margin-top:.8rem;
}
.color-picker input{
    width:2.3rem;
    height:1.8rem;
    padding:2px;
    border:1px solid var(--line);
    border-radius:5px;
    background:white;
    cursor:pointer;
}
.check-field input{
    width:1.1rem;
    height:1.1rem;
    accent-color:var(--ink);
}
.base-note{
    margin:-.8rem 0 1rem;
    color:var(--muted);
    font-size:.85rem;
}
.swatches{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}
.swatch{
    width:32px;
    height:32px;
    border-radius:50%;
    background:var(--swatch);
    border:1px solid #32283635;
    position:relative;
}
.swatch[aria-pressed=true]{
    outline:2px solid var(--ink);
    outline-offset:2px;
}
.selection{
    font-weight:450;
    color:var(--muted);
    font-size:.84rem;
    margin-left:8px;
}
.help{
    font-size:.84rem;
    line-height:1.5;
    color:var(--muted);
    margin:8px 0 0;
}
.pill{
    border:1px solid var(--line);
    border-radius:20px;
    padding:7px 12px;
    font-size:.86rem;
    font-weight:600;
}
.editor-bottom{
    padding:15px 24px 19px;
    border-top:1px solid var(--line);
}
.primary{
    background:var(--ink);
    color:var(--paper);
    border-radius:10px;
    padding:13px 18px;
    font-weight:650;
    width:100%;
}
.primary:hover{
    background:#423956;
}
.guide:hover,.nav nav button:hover,.saved-link:hover{
    text-decoration:underline;
}
.artwork-card:hover,.panel-btn:hover,.pill:hover{
    border-color:#8c8191;
}
footer{
    margin-top:35px;
    border-top:1px solid var(--line);
    padding-block:18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    color:var(--muted);
    font-size:.85rem;
}
.footer-brand{
    font-size:22px;
    letter-spacing:-1.5px;
}
dialog{
    background:var(--paper);
    color:var(--ink);
    border:1px solid var(--line);
    border-radius:18px;
    padding:24px;
    width:min(470px,calc(100% - 32px));
    max-height:85dvh;
    box-shadow:0 20px 80px #2922383b;
}
dialog::backdrop{
    background:#28213566;
}
.dialog-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:20px;
}
.dialog-head h2{
    font-size:29px;
}
.close{
    font:26px/1 Arial;
    padding:6px;
}
.field-label{
    display:block;
}
.input{
    border:1px solid #a9a1a5;
    background:#fffefa;
    border-radius:8px;
    padding:10px 12px;
    width:100%;
}
.dialog-copy{
    color:var(--muted);
    line-height:1.55;
    margin:0 0 15px;
}
.save-form .primary{
    margin-top:16px;
}
.library-item{
    display:flex;
    gap:10px;
    align-items:center;
    padding:10px 0;
    border-top:1px solid var(--line);
}
.library-item > svg{
    width:72px;
    height:auto;
    flex:none;
}
.print-download{
    margin-top:16px;
}
.library-item strong{
    flex:1;
    overflow-wrap:anywhere;
}
.guide-figure{
    background:var(--lavender);
    border-radius:10px;
    padding:12px 24px;
    margin-bottom:16px;
}
.guide-figure svg{
    display:block;
    width:100%;
}
.toast{
    position:fixed;
    bottom:16px;
    left:50%;
    transform:translateX(-50%);
    background:var(--ink);
    color:white;
    border-radius:12px;
    z-index:5;
    max-width:90vw;
    font-size:14px;
}
.toast:not(:empty){
    padding:12px 18px;
}
.secondary{
    width:100%;
    border:1px solid var(--line);
    padding:10px;
    border-radius:8px;
    font-weight:600;
    margin-top:15px;
}
@media(max-width:980px){
    .workspace{
        grid-template-columns:minmax(0,1.35fr) minmax(290px,1fr);
        gap:14px;
    }
    .panel-btn{
        flex-direction:column;
        gap:4px;
        text-align:center;
    }
    .editor-title,.editor-bottom,#options{
        padding-inline:18px;
    }
    .stage{
        min-height:375px;
    }
    .nav,main,footer{
        padding-inline:24px;
    }
}
@media(max-width:820px){
    .nav,main,footer{
        padding-inline:16px;
    }
    .nav{
        min-height:62px;
        gap:10px;
    }
    .nav nav{
        display:none;
    }
    .saved-link{
        gap:5px;
    }
    .intro{
        padding:25px 0 20px;
        align-items:flex-start;
        flex-direction:column;
        gap:7px;
    }
    .intro p{
        font-size:.94rem;
    }
    .guide{
        font-size:.82rem;
    }
    .workspace{
        grid-template-columns:1fr;
    }
    .stage{
        min-height:280px;
        aspect-ratio:1.6;
    }
    .stage-head{
        padding:12px 12px 0;
    }
    .stage-foot{
        padding:0 12px 8px;
    }
    .panel-strip{
        padding:12px;
    }
    .panel-btn{
        flex-direction:row;
        text-align:left;
    }
    .panel-btn small{
        display:none;
    }
    .panel-btn svg{
        width:27px;
        height:32px;
    }
    .editor-title{
        padding-top:17px;
    }
    #options{
        min-height:0;
    }
    .panel-buttons{
        gap:5px;
    }
    .panel-btn{
        font-size:.8rem;
    }
    .switch button{
        padding:5px 8px;
    }
    .guide-figure{
        padding:10px;
    }
    .saved-link{
        font-size:.83rem;
    }
}
@media(max-width:480px){
    .brand{
        width:min(16rem, 70vw);
    }
    .saved-label{
        display:none;
    }
}
@media(max-width:375px){
    .stage-head{
        gap:4px;
    }
    .switch .icon{
        display:none;
    }
    .panel-btn{
        gap:4px;
        padding:6px 3px;
    }
}
h1[tabindex="-1"]:focus{
    outline:none;
}

.sr-only{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip-path:inset(50%);
    white-space:nowrap;
}
.builder-app{
    height:100vh;
    height:100dvh;
    display:grid;
    grid-template-rows:auto minmax(0,1fr);
    padding-top:env(safe-area-inset-top);
    padding-bottom:env(safe-area-inset-bottom);
}
.app-bar{min-height:66px;justify-content:space-between;gap:12px}
.app-bar .brand{width:clamp(110px,28vw,228px)}
.app-bar .app-tools{display:flex;align-items:center;gap:12px}
.app-tools button{display:flex;align-items:center;gap:7px;min-width:46px;min-height:44px}
.cart-icon{display:inline-flex;position:relative}
.cart-icon b{position:absolute;left:65%;bottom:55%;background:var(--ink);color:white;border-radius:12px;font-size:10px;padding:1px 4px}
.builder-app main{min-height:0;height:100%;margin:0 auto;padding-block:clamp(8px,2.5vh,26px)}
.builder-app .workspace{height:100%;align-items:stretch}
.builder-app .preview,.builder-app .editor{min-height:0;min-width:0;display:grid}
.builder-app .preview{grid-template-rows:minmax(0,1fr) auto}
.builder-app .stage{min-height:0;aspect-ratio:auto}
.wrap-help{border:1px solid #ad9fb8;border-radius:50%;width:32px;height:32px;font-weight:700}
.builder-app .editor{grid-template-rows:minmax(0,1fr)}
.edit-controls{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:0;min-width:0}
.preview-definitions{position:absolute;pointer-events:none}
.mobile-modes,panel-pager,sheet-handle{display:none}
.builder-app .steps{padding-top:8px;flex-wrap:nowrap}
.builder-app #options{display:block;min-height:0;overflow:auto;overscroll-behavior:contain}
.setting-select{display:none}
.editor-bottom{display:grid;grid-template-columns:auto 1fr;align-items:stretch;gap:10px}
.save-action{display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--line);padding:8px 16px;border-radius:10px;font-weight:650}
.cart-row,.order-row{padding-block:14px;border-top:1px solid var(--line)}
.cart-row .library-item{border:0;padding-top:0}
.library-item small{display:block;font-size:.84rem;font-weight:400;color:var(--muted)}
.cart-actions{display:flex;gap:12px;align-items:center;justify-content:space-between}
.cart-actions .primary{width:auto;padding:8px 14px}
.order-row p{margin-block:6px;color:var(--muted)}
.order-row small{display:block;margin-top:4px;color:var(--muted)}
.tracking-link{display:inline-block;text-decoration:underline;padding-block:6px}
.primary:disabled{opacity:.55;cursor:default}
.builder-app ~ .toast{bottom:80px;pointer-events:none}
@media(max-width:820px), (max-height:530px) and (max-width:1000px){
    .app-bar{min-height:54px}
    .app-bar .app-tools{gap:6px}
    .app-tools button{flex-direction:column;justify-content:center;gap:2px;font-size:11px;line-height:1.15}
    .builder-app main{padding:0}
    .builder-app .workspace{
        --sheet-open:min(clamp(278px,43dvh,364px),100%);
        --sheet-peek:48px;
        --sheet-height:var(--drag-height,var(--sheet-open));
        position:relative;display:block;overflow:hidden;background:var(--lavender)
    }
    .workspace[data-sheet=closed]{--sheet-height:var(--drag-height,var(--sheet-peek))}
    .builder-app .preview,.builder-app .editor{border:0;border-radius:0}
    .builder-app .preview{position:absolute;inset:0 0 var(--sheet-height);grid-template-rows:minmax(0,1fr);transition:bottom .22s ease-out}
    .builder-app .editor{
        position:absolute;top:calc(100% - var(--sheet-height));inset-inline:0;height:var(--sheet-open);
        grid-template-rows:var(--sheet-peek) minmax(0,1fr);border-radius:20px 20px 0 0;
        box-shadow:0 -3px 16px #30203e24;transition:top .22s ease-out
    }
    .workspace[data-dragging] :is(.preview,.editor){transition:none}
    .workspace[data-sheet=closed] .edit-controls{visibility:hidden}
    .workspace[data-dragging] .edit-controls{visibility:visible}
    sheet-handle{display:block}
    sheet-handle button{
        width:100%;height:100%;display:flex;gap:8px;align-items:center;justify-content:center;
        position:relative;padding:13px 12px 2px;font-size:.83rem;font-weight:650;
        cursor:grab;touch-action:none;user-select:none
    }
    sheet-handle button:active{cursor:grabbing}
    sheet-handle .grip{position:absolute;top:7px;width:36px;height:4px;border-radius:4px;background:#b8afbd}
    sheet-handle svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8}
    [data-sheet=closed] sheet-handle svg{transform:rotate(180deg)}
    sheet-handle button:focus-visible{outline-offset:-4px}
    .builder-app .desktop-modes,.builder-app .panel-strip{display:none}
    .mobile-modes{display:flex}
    #art:not(.show-overview)>.wide-preview{display:none}
    #art:not(.show-overview)>panel-pager{
        position:absolute;inset:0;display:grid;grid-template-rows:minmax(0,1fr) auto
    }
    .panel-track{
        display:flex;min-width:0;min-height:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;
        overscroll-behavior-x:contain;scrollbar-width:none
    }
    .panel-track::-webkit-scrollbar{display:none}
    .panel-track:focus-visible{outline:2px solid #735886;outline-offset:-3px}
    .panel-slide{
        flex:0 0 100%;height:100%;min-width:0;padding:8px 12px 0;
        scroll-snap-align:start;scroll-snap-stop:always
    }
    .panel-slide>svg{width:100%;height:100%;display:block;filter:drop-shadow(0 2px 3px #51405a30)}
    .panel-dots{display:flex;justify-content:center}
    .panel-dots button{width:38px;height:34px;display:grid;place-items:center}
    .panel-dots span{width:7px;height:7px;background:#a89ab4;border-radius:8px}
    .panel-dots [aria-pressed=true] span{width:19px;background:var(--ink)}
    .stage-head{padding:6px 12px 0}
    .builder-app .steps{padding:0 6px}
    .steps button{min-height:42px;padding:5px 2px}
    .builder-app #options{display:flex;flex-direction:column;overflow:hidden;padding:8px 14px}
    .setting-select:not([hidden]){display:block;flex:none;height:38px;padding:4px 10px;margin-bottom:7px}
    .setting-fields{min-height:0;overflow:auto;overscroll-behavior:contain;padding:2px}
    setting-deck[ready] .setting-fields :is(fieldset,[data-setting]):not([data-current]){display:none}
    .setting-fields fieldset{margin:0}
    .setting-fields .hair-options,.setting-fields .testicle-options{margin:0;padding:0;border:0}
    .setting-fields h3{display:none}
    .setting-fields .artwork-picker legend{font-size:.84rem}
    setting-deck:has(.setting-select:not([hidden])) fieldset:has(.carousel-nav[hidden]) legend{
        position:absolute;width:1px;height:1px;min-height:0;overflow:hidden;clip-path:inset(50%);padding:0;margin:0
    }
    .setting-fields .artwork-card{flex-basis:clamp(78px,26%,120px)}
    .setting-fields .artwork-sample{height:clamp(35px,7dvh,65px)}
    .builder-app .editor-bottom{padding:7px 12px;gap:8px}
    .editor-bottom button{min-height:43px;padding-block:7px}
    .builder-app ~ dialog{overscroll-behavior:contain;max-height:88dvh}
}
@media(orientation:landscape) and (max-height:530px) and (max-width:1000px){
    .builder-app .workspace{--sheet-open:100%;--sheet-width:48%}
    .builder-app .editor{left:auto;width:var(--sheet-width)}
    .builder-app .preview{inset:0 var(--sheet-width) 0 0;transition:right .22s ease-out}
    .workspace[data-sheet=closed] .preview{right:0;bottom:var(--sheet-peek)}
}
@media(prefers-reduced-motion:reduce){
    .builder-app .workspace :is(.preview,.editor){transition:none}
}
