/* Tote Studio prototype. Round 4 stylesheet: one type scale, one selected state for product choices,
   one segmented control for switching views, and a studio backdrop for the 3D tote. */
@font-face{font-family:Hanken;src:url('fonts/hanken-grotesk-normal.woff2') format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:Fraunces;src:url('fonts/fraunces-normal.woff2') format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:Fraunces;src:url('fonts/fraunces-italic.woff2') format('woff2');font-weight:100 900;font-style:italic;font-display:swap}

@property --fade-start{syntax:"<length>";inherits:false;initial-value:0px}
@property --fade-end{syntax:"<length>";inherits:false;initial-value:0px}
:root{
 --paper:#f9f5ec;--card:#fffdf8;--stage-light:#f8f7ef;--stage-shade:#dce6db;
 --ink:#263d32;--muted:#535e55;--sage:#3e6b54;--sage-deep:#2e5641;--tint:#edf2e9;
 --line:#dedfd4;--control:#bcc4b4;--track:#e6ede4;--blush:#f7e9df;--blush-line:#dec7b8;
 --warn:#a23e29;--warn-bg:#fcf0df;--focus:#2e5641;
 --font:Hanken,Arial,sans-serif;--display:Fraunces,Georgia,serif;
 --bar:72px;
 --gutter:max(4vw,calc(50vw - 680px + 4vw)); /* one left and right edge for the masthead, the workspace and the action bar */
}
*{box-sizing:border-box}
html{scroll-padding-bottom:calc(var(--bar) + 40px)}
body{margin:0;background:var(--paper);color:var(--ink);font:400 16px/1.5 var(--font);padding-bottom:calc(var(--bar) + 28px);-webkit-font-smoothing:antialiased}
h1,h2,p{margin-top:0}
button,input,textarea{font:inherit;color:inherit}
[hidden]{display:none!important}

/* ---------- buttons and fields ---------- */
button{cursor:pointer;border:1px solid var(--control);background:var(--card);border-radius:10px;padding:0 16px;min-height:42px;font-size:15.5px;line-height:1.2;transition:background-color .15s,border-color .15s,box-shadow .15s}
button:hover{background:var(--tint);border-color:#9fab9a}
button:disabled{cursor:not-allowed;opacity:.45}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,canvas:focus-visible,#stage:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
button.primary{background:var(--sage);border-color:var(--sage);color:#fff;min-height:48px;padding:0 26px;border-radius:999px;font-size:16px;font-weight:600}
button.primary:hover{background:var(--sage-deep);border-color:var(--sage-deep)}
.text-button{background:transparent;border:0;min-height:0;padding:8px 0;border-radius:4px;font-size:14.5px;text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--control)}
.text-button:hover{background:transparent;text-decoration-color:currentColor}
input,textarea{width:100%;min-width:0;border:1px solid var(--control);border-radius:10px;background:#fff;padding:0 13px;font-size:16px}
input{height:46px}
textarea{padding:11px 13px;line-height:1.5;resize:vertical}
input::placeholder,textarea::placeholder{color:#8a9288}
input[type=number]{font-variant-numeric:tabular-nums}
input:invalid,input[aria-invalid=true]{border-color:var(--warn)}
input:disabled{background:var(--track);color:var(--muted)}
label{display:block;font-size:15px;font-weight:600;margin:24px 0 9px}
.optional{font-weight:400;font-size:14px;color:var(--muted);margin-left:4px}
.field-note{font-size:14px;line-height:1.5;color:var(--muted);margin:8px 0 0;max-width:62ch}
.field-error,.field-note.field-error{color:var(--warn)}
.dimension-feedback{display:block;font-size:14px;font-weight:400;line-height:1.4;color:var(--muted);margin-top:6px}

/* Product choices: quantity, weight, handle options. Selected = sage outline on a soft tint, everywhere. */
.pills{display:flex;flex-wrap:wrap;gap:8px}
.pills button[aria-pressed=true],.shape-option[aria-pressed=true],.fabric-options button[aria-pressed=true]{background:var(--tint);border-color:var(--sage);box-shadow:inset 0 0 0 1px var(--sage)}
/* Switching what you look at: units, artwork side, preview angle. A track with a raised thumb. */
.units,.face-tabs,.view-controls{display:flex;gap:2px;background:var(--track);padding:3px;border-radius:12px}
.units button,.face-tabs button,.view-controls button{border:0;background:transparent;border-radius:9px;min-height:36px;font-size:14.5px;color:var(--muted)}
.units button:hover,.face-tabs button:hover,.view-controls button:hover{color:var(--ink);background:#fff8}
.units button[aria-pressed=true],.face-tabs button[aria-pressed=true],.view-controls button[aria-pressed=true]{background:#fff;color:var(--ink);font-weight:600;box-shadow:0 1px 2px #263d3222,0 0 0 1px #263d320d}

/* ---------- masthead ---------- */
.masthead{height:64px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:18px;padding:0 var(--gutter);background:var(--card)}
.wordmark{font-family:var(--display);font-size:30px;font-weight:400;letter-spacing:-.05em;color:var(--ink);text-decoration:none;line-height:1}
.wordmark span{font:11px var(--font);vertical-align:top;letter-spacing:0;margin-left:2px}
.studio-label{margin:0;padding-left:18px;border-left:1px solid var(--line);font-size:15px;display:flex;align-items:center;gap:10px}
.studio-label span{font-size:13px;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:2px 9px}
.masthead-actions{margin-left:auto;display:flex;align-items:center;gap:18px}
.draft-status{font-size:14px;color:var(--muted);white-space:nowrap}

/* ---------- layout: the tote on its stage, the design steps beside it ---------- */
.workspace{padding:28px var(--gutter) 0;display:grid;grid-template-columns:minmax(0,1fr) minmax(420px,500px);grid-template-areas:"preview intro" "preview controls";column-gap:clamp(28px,4vw,60px);align-items:start}
.intro{grid-area:intro;padding-bottom:6px}
h1{font-family:var(--display);font-optical-sizing:auto;font-weight:380;font-size:clamp(34px,3.3vw,46px);line-height:1.05;letter-spacing:-.03em;margin:0 0 10px}
h1 em{color:var(--sage)}
.intro p{font-size:16px;color:var(--muted);margin:0;max-width:44ch}
.preview-panel{grid-area:preview;position:sticky;top:20px;min-width:0}
.controls-panel{grid-area:controls;min-width:0}

/* ---------- stage ---------- */
#stage{--caption:72px;position:relative;overflow:hidden;height:clamp(320px,calc(100dvh - 318px),680px);border-radius:24px;touch-action:pan-y;
 background:radial-gradient(115% 80% at 50% 38%,var(--stage-light) 0%,#edf0e5 55%,var(--stage-shade) 100%);
 box-shadow:inset 0 0 0 1px #cbd9cc}
#stage>canvas{position:absolute;left:0;top:0;width:100%;z-index:1;touch-action:pan-y}
#stage>canvas:not(#fallback){height:calc(100% - var(--caption));cursor:grab}
#stage>canvas:not(#fallback):active{cursor:grabbing}
#fallback{height:100%}
#loading{position:absolute;inset:0;display:grid;place-items:center;color:var(--muted);font-size:14px;z-index:3}
.stage-caption{position:absolute;left:0;right:0;bottom:16px;z-index:2;pointer-events:none;text-align:center;display:flex;flex-direction:column;gap:1px}
#shape-caption{font-size:16px;font-weight:600}
#fabric-caption{font-size:14px;color:var(--muted)}
.preview-top{position:absolute;top:12px;right:12px;z-index:3;display:flex;gap:6px}
.small-button{min-height:34px;padding:0 13px;border-radius:999px;font-size:14px;background:#fffdf8cc;border-color:transparent;color:var(--muted)}
.small-button:hover{background:var(--card);border-color:var(--control);color:var(--ink)}
.small-button[aria-pressed=true]{color:var(--ink);background:var(--card);border-color:var(--control)}
#collapse-preview{display:none}
/* Dimension lines are drawn from the model; their labels are pinned to the lines. Without 3D the labels stack in the corner. */
#dimension-lines{position:absolute;left:0;top:0;width:100%;z-index:2;pointer-events:none;overflow:visible}
#dimension-lines path{fill:none;stroke:#6d7a6b;stroke-width:1}
.measurement{position:absolute;left:14px;top:50px;z-index:2;pointer-events:none;white-space:nowrap;font-size:13.5px;line-height:1;font-variant-numeric:tabular-nums;padding:5px 9px;border-radius:999px;background:#fffdf8ee;box-shadow:0 0 0 1px #263d321f}
#height-measure{top:82px}#depth-measure{top:114px}
.measurement.placed{transform:translate(-50%,-50%)}
.measurement.unplaced,.measurement.none{display:none}
/* Display branding in the corner of the stage. Not part of the tote or its artwork. */
.watermark{position:absolute;left:18px;top:15px;z-index:2;pointer-events:none;user-select:none;font:400 22px/1 var(--display);letter-spacing:-.05em;color:var(--ink);opacity:.36}
.watermark span{font:8px var(--font);vertical-align:top;letter-spacing:0;margin-left:1px}
.view-controls{width:fit-content;margin:14px auto 0;align-items:center;border-radius:999px;padding:4px}
.view-controls button{border-radius:999px;padding:0 14px;white-space:nowrap}
.view-controls #zoom-out,.view-controls #zoom-in{width:34px;padding:0;font-size:17px;color:var(--ink)}
.view-separator{width:1px;height:18px;background:var(--control);margin:0 5px}
.preview-hint,.preview-note{text-align:center;font-size:14px;line-height:1.45;color:var(--muted);margin:10px 0 0}
.preview-note{margin-top:1px}

/* ---------- design steps ---------- */
.entry-paths{display:flex;gap:8px;margin:20px 0 8px}
.entry-paths button{flex:1;min-height:46px}
.preset-undo{background:var(--tint);padding:10px 14px;font-size:14.5px;border-radius:10px;margin-bottom:16px}
.accordions>details{border-top:1px solid var(--line);padding:4px 0}
.accordions>details:last-child{border-bottom:1px solid var(--line)}
summary{cursor:pointer;list-style:none;display:grid;grid-template-columns:34px 1fr 20px;align-items:center;padding:14px 10px;border-radius:10px}
summary::-webkit-details-marker{display:none}
summary:hover,details[open]>summary{background:var(--tint)}
#artwork[open]>summary{background:var(--blush)}
.step{font:italic 400 21px/1 var(--display);color:var(--sage);align-self:start;padding-top:3px}
.step-title{font-size:18px;font-weight:600;line-height:1.3}
.step-title small{display:block;font-size:14.5px;font-weight:400;color:var(--muted);margin-top:2px}
.expand{width:9px;height:9px;border-right:1.5px solid var(--ink);border-bottom:1.5px solid var(--ink);transform:translateY(-3px) rotate(45deg);transition:transform .2s;justify-self:center}
details[open]>summary .expand{transform:translateY(2px) rotate(-135deg)}
.detail-content{padding:8px 0 24px 44px}
.detail-content>:first-child{margin-top:4px}
details[open]>.detail-content{animation:reveal .22s ease-out}
@keyframes reveal{from{opacity:0;transform:translateY(-5px)}}
.next-section{display:block;width:100%;margin-top:28px;min-height:48px;border-radius:999px;border-color:var(--sage);background:transparent;color:var(--sage-deep);font-size:15.5px;font-weight:600}
.next-section:hover{background:var(--tint);border-color:var(--sage-deep)}

.shape-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.shape-option{display:flex;flex-direction:column;align-items:center;gap:2px;padding:14px 4px 12px;border-radius:12px}
.shape-option svg{width:58px;height:54px;fill:#e7dfcc;stroke:currentColor;stroke-width:1.3;margin-bottom:4px}
.shape-option[aria-pressed=true] svg{fill:#dbdfc9}
.shape-option strong{font-size:15.5px;font-weight:600}
.shape-option small{font-size:14px;line-height:1.3;color:var(--muted)}
.label-row{display:flex;justify-content:space-between;align-items:center;margin:24px 0 10px}
.label-row label{margin:0}
.units button{min-width:44px;min-height:30px;padding:0 10px}
.dimensions{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}
.dimensions label{margin:0;font-weight:500;font-size:14.5px;color:var(--muted)}
.dimensions input{margin-top:6px;color:var(--ink)}

.fabric-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.fabric-options button{text-align:left;padding:12px;border-radius:12px;display:block}
.fabric-options strong{display:block;font-size:16px;font-weight:600}
.fabric-options small{display:block;font-size:14px;line-height:1.4;margin-top:3px;color:var(--muted)}
.fabric-options .fabric-min{color:var(--ink);font-weight:500;margin-top:8px}
.fabric-sample{height:54px;border-radius:7px;margin-bottom:10px;display:block;background-color:#ddd0b9;background-image:repeating-linear-gradient(90deg,#897d6933 0 1px,transparent 1px 3px),repeating-linear-gradient(0deg,#fff5 0 1px,transparent 1px 3px)}
.fabric-sample.denim{background-color:#6f7e82;background-image:repeating-linear-gradient(135deg,#ffffff35 0 1px,transparent 1px 3px)}

.swatches{display:flex;flex-wrap:wrap;gap:10px}
.swatches button{width:38px;height:38px;min-height:0;padding:0;border:3px solid var(--card);border-radius:50%;background:var(--swatch);box-shadow:0 0 0 1px var(--control);display:grid;place-items:center}
.swatches button:hover{background:var(--swatch);box-shadow:0 0 0 2px #8e9b8a}
.swatches button[aria-pressed=true]{box-shadow:0 0 0 2px var(--ink)}
.swatches button[aria-pressed=true]::after{content:'';width:11px;height:6px;border-left:2px solid var(--check,#fff);border-bottom:2px solid var(--check,#fff);transform:translateY(-1px) rotate(-45deg)}
#trim-color-name,#base-color-name{font-weight:400;color:var(--muted)}

.face-tabs button{flex:1;min-height:38px}
.art-card{display:flex;align-items:center;gap:12px;padding:12px;margin-top:14px;background:var(--tint);border-radius:12px}
.art-card>div{min-width:0}
#art-thumbnail{height:54px;width:54px;flex-shrink:0;display:grid;place-items:center;background:var(--card);border-radius:8px;border:1px dashed var(--control)}
#art-thumbnail:has(img){border-style:solid;border-color:transparent}
#art-thumbnail img{max-width:86%;max-height:86%}
.art-card strong{display:block;font-size:15.5px;font-weight:600;max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.art-card .field-note{margin-top:1px}
.art-card>.text-button{margin-left:auto}
.upload-button{position:relative;margin:12px 0 0;padding:17px;border:1.5px dashed var(--control);border-radius:12px;text-align:center;font-size:15.5px;font-weight:600;cursor:pointer;transition:background-color .15s,border-color .15s}
.upload-button:hover{background:var(--tint);border-color:var(--sage)}
.upload-button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.upload-button:focus-within{outline:3px solid var(--focus);outline-offset:2px}
.two-buttons{display:flex;gap:8px;margin-top:16px}
.two-buttons button{flex:1;min-height:44px}
.conflict{border-left:3px solid #ab6a3b;background:var(--warn-bg);padding:12px 14px;font-size:14.5px;line-height:1.5;margin-top:14px;border-radius:0 10px 10px 0}
.conflict ul{margin:0;padding-left:18px}.conflict strong+ul{margin-top:4px}.conflict li+li{margin-top:4px}
#review-flags:focus{outline:0}

/* ---------- another design, contact ---------- */
button.another-design{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;text-align:left;padding:14px 46px 14px 16px;margin:16px 0 0;border-radius:12px;background:var(--blush);border-color:var(--blush-line)}
button.another-design:hover{background:#f3e0d4;border-color:#ba9b86}
.another-design strong{font-size:17px;font-weight:600}
.another-design small{font-size:14px;line-height:1.45;color:inherit;font-weight:400}
.another-design::after{content:'';position:absolute;right:20px;top:50%;width:9px;height:9px;border-right:1.5px solid currentColor;border-top:1.5px solid currentColor;transform:translateY(-50%) rotate(45deg)}
#contact-dialog{max-width:620px}
h3{font:600 18px/1.3 var(--font);margin:30px 0 2px}
.contact-list{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:8px}
.contact-list a{display:block;padding:13px 16px;border:1px solid var(--control);border-radius:12px;background:var(--card);color:var(--ink);text-decoration:none;transition:background-color .15s,border-color .15s}
.contact-list a:hover{background:var(--tint);border-color:#9fab9a}
.contact-list strong{display:block;font-size:16px;font-weight:600}
.contact-list small{display:block;font-size:14px;line-height:1.45;color:var(--muted);margin-top:2px}

/* ---------- action bar ---------- */
.bottom-bar{position:fixed;left:0;right:0;bottom:0;z-index:10;min-height:var(--bar);padding:12px var(--gutter);display:flex;align-items:center;justify-content:space-between;gap:16px;background:#e8efe6f5;backdrop-filter:blur(14px);border-top:1px solid #cad8ca}
#live-summary{margin:0;font-size:15.5px;font-variant-numeric:tabular-nums}
.bottom-actions{display:flex;align-items:center;gap:18px}
#conflict-count{background:transparent;border:0;min-height:0;padding:6px 0;border-radius:4px;font-size:14.5px;color:var(--warn);text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
#conflict-count:hover{background:transparent}
.toast{position:fixed;inset:auto auto calc(var(--bar) + 16px) 50%;margin:0;border:0;transform:translateX(-50%);z-index:50;max-width:min(90vw,560px);background:var(--ink);color:#fff;padding:12px 18px;border-radius:12px;font-size:15px;line-height:1.45;box-shadow:0 10px 30px #1a2a2233;animation:toast-in .2s ease-out;pointer-events:none}
@keyframes toast-in{from{opacity:0;transform:translate(-50%,6px)}}

/* ---------- dialogs ---------- */
dialog{background:var(--paper);color:var(--ink);border:0;border-radius:22px;width:calc(100% - 32px);max-width:640px;max-height:90dvh;overflow:auto;padding:36px;box-shadow:0 30px 90px #1a2a2240}
dialog:modal{overscroll-behavior:contain}
dialog::backdrop{background:#1f33287a;backdrop-filter:blur(4px);overflow:hidden;overscroll-behavior:contain}
h2{font-family:var(--display);font-optical-sizing:auto;font-weight:400;font-size:30px;line-height:1.15;letter-spacing:-.02em;margin:0 40px 10px 0}
dialog>p,dialog form>p{font-size:16px;color:var(--muted);max-width:62ch}
.dialog-close{position:absolute;right:14px;top:14px;width:40px;padding:0;border:0;border-radius:50%;background:transparent;font-size:24px;line-height:1}
.review-actions{display:flex;flex-wrap:wrap;gap:10px;margin:26px 0 14px}
.review-actions button:not(.primary){min-height:48px;border-radius:999px;padding:0 22px}
#confirm-dialog{max-width:480px}
.use-cases{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:24px 0}
.use-cases button{text-align:left;padding:18px;border-radius:14px}
.use-cases strong{display:block;font:400 22px/1.2 var(--display);margin-bottom:6px}
.use-cases small{font-size:14.5px;line-height:1.45;color:var(--muted)}

#review-dialog{max-width:980px}
#review-content{display:flex;flex-direction:column;gap:24px;margin:22px 0 6px}
.review-art{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.review-art figure{margin:0;min-width:0;background:#f3f0e6;border:1px solid var(--line);border-radius:16px;padding:10px 10px 14px;text-align:center}
.review-art img{display:block;width:100%;height:auto;border-radius:10px}
.review-art figcaption{display:flex;flex-direction:column;gap:2px;font-size:14.5px;color:var(--muted);margin-top:10px}
.review-art figcaption strong{color:var(--ink);font-weight:600}
.review-table{display:grid;grid-template-columns:154px 1fr;margin:0;font-size:15px;border-top:1px solid var(--line)}
.review-table dt,.review-table dd{margin:0;padding:10px 0;border-bottom:1px solid var(--line);line-height:1.45}
.review-table dt{color:var(--muted)}
.review-main .conflict{margin:0 0 18px}
.review-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}
.review-fields textarea{height:46px;min-height:46px}
.review-next{margin-top:4px;max-width:74ch}
.review-next a{color:var(--sage-deep);text-underline-offset:3px}

#art-dialog{max-width:1000px}
.editor-header{display:flex;justify-content:space-between}
.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:28px;margin-top:16px;align-items:start}
.editor-stage{display:flex;flex-direction:column;gap:12px;min-width:0;align-items:center}
#art-canvas{width:min(100%,480px);height:auto;background:#eceee3;border-radius:16px;touch-action:none;display:block}
.editor-warning{width:100%;font-size:14px;line-height:1.45;color:var(--muted);background:var(--tint);border-left:3px solid var(--sage);border-radius:0 10px 10px 0;padding:10px 14px;margin:0}
.editor-warning.has-flags{background:var(--warn-bg);border-left-color:var(--warn);color:var(--ink)}
.editor-warning strong{display:block;margin-bottom:4px;color:var(--warn)}
.editor-warning ul{margin:0;padding-left:18px}
.editor-warning li+li{margin-top:3px}
.editor-fields label:first-child{margin-top:0}
.editor-fields>button{display:block;width:100%;margin-top:10px}
.editor-fields>button.primary{margin-top:18px}
.editor-fields>#art-field-feedback[hidden]{display:none}

/* ---------- narrower screens ---------- */
@media(max-width:1000px){:root{--gutter:3vw}.workspace{grid-template-columns:minmax(0,1fr) minmax(360px,420px);column-gap:28px}.detail-content{padding-left:0}.view-controls button{padding:0 11px}}
@media(max-width:720px){
 html,body{overflow-anchor:none}
 body{padding-bottom:calc(var(--bar) + 20px)}
 input,textarea{font-size:16px} /* below 16px iOS zooms the page when a field is focused */
 .masthead{height:56px;padding:0 16px;gap:12px}.wordmark{font-size:26px}.studio-label,#contact-us{display:none}.masthead-actions{gap:14px}
 .workspace{display:block;padding:0 16px}
 .intro{padding:18px 0 10px}h1{font-size:32px;margin:0}.intro p{display:none}
 .preview-panel{top:0;z-index:5;margin:0 -16px;padding:4px 16px 10px;background:var(--paper)}
 .preview-panel{border-bottom:1px solid var(--line)}
 .preview-top{position:static;justify-content:space-between;margin-bottom:6px}
 .small-button{background:transparent}
 #collapse-preview{display:block;order:-1;padding-left:0;text-decoration:underline;text-underline-offset:4px;text-decoration-color:var(--control)}
 #collapse-preview:hover{background:transparent;border-color:transparent}
 #stage{height:clamp(172px,28svh,240px);--caption:52px;border-radius:18px}
 .stage-caption{bottom:8px}
 .view-controls{margin-top:8px}.view-controls button{padding:0 11px}.view-controls #zoom-out,.view-controls #zoom-in{width:36px}.preview-hint{margin-top:6px}.preview-note{display:none}
 .preview-panel.preview-hidden #stage,.preview-panel.preview-hidden .view-controls,.preview-panel.preview-hidden .preview-hint,.preview-panel.preview-hidden #toggle-dimensions{display:none}
 .preview-panel.preview-hidden .preview-top{margin-bottom:0}
 .entry-paths{margin-top:14px}.entry-paths button{font-size:15px;padding:0 6px}
 .units button{min-height:34px}
 .bottom-bar{padding:10px 16px;gap:10px}
 #live-summary{font-size:14.5px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
 .bottom-actions{flex-direction:column;align-items:flex-end;gap:0;flex-shrink:0}
 #conflict-count{font-size:13.5px;padding:0 0 3px}
 .bottom-bar .primary{min-height:46px;padding:0 20px;font-size:15.5px}
 .toast{inset:64px auto auto 50%;max-width:calc(100vw - 24px);padding:9px 14px;font-size:14px;animation:toast-in-top .2s ease-out}
 @keyframes toast-in-top{from{opacity:0;transform:translate(-50%,-6px)}}
 dialog{padding:28px 20px;border-radius:18px}
 h2{font-size:26px}
 .review-art{grid-template-columns:1fr;gap:12px}
 .review-table{grid-template-columns:116px 1fr}
 .review-fields{grid-template-columns:1fr}
 .review-fields textarea{height:auto;min-height:72px}
 .use-cases{grid-template-columns:1fr}
 .use-cases button{padding:14px 16px}.use-cases strong{font-size:19px}
 #art-dialog{width:100%;max-height:96dvh;margin:auto 0;border-radius:18px 18px 0 0}
 .editor-layout{grid-template-columns:1fr;gap:14px}
 .editor-fields{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;align-items:center}
 .editor-fields>label{grid-column:1;margin:0}.editor-fields>input{grid-column:2}
 .editor-fields>p,.editor-fields>button{grid-column:1/-1}
 .preview-top{gap:6px;align-items:center}
 .preview-top .small-button{min-height:44px;padding:0 10px;font-size:13.5px}
}
@media(max-width:360px){
 .masthead .draft-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .masthead-actions #reset{white-space:nowrap}
 #stage{--caption:64px}
}
@media(max-width:400px){.view-controls button{font-size:14px;padding:0 8px}.view-controls #zoom-out,.view-controls #zoom-in{width:32px}}
@media(pointer:coarse){.pills button{min-height:44px}.units button{min-height:36px}.view-controls button{min-height:38px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Local fabric references; independent of weight and 3D textures. */
.fabric-options{grid-template-columns:repeat(2,minmax(0,1fr))}
.fabric-options button{min-width:0;overflow-wrap:break-word}
.fabric-sample{position:relative;width:100%;height:auto;aspect-ratio:16/10;min-height:84px;overflow:hidden;border-radius:8px}
.fabric-sample img{display:block;width:100%;height:100%;position:absolute;inset:0;object-fit:cover}
.fabric-sample img[hidden],#fabric-reference[hidden]{display:none}
#fabric-closeup{margin:18px 0 0}
.fabric-tinted{height:180px;border-radius:12px;background-size:cover;background-position:center;background-blend-mode:multiply;position:relative;overflow:hidden}
#fabric-closeup figcaption,.fabric-comparison figcaption{font-size:14px;line-height:1.5;margin-top:8px;color:var(--muted)}
#enlarge-fabric{margin-top:8px;min-height:44px}
#fabric-dialog{max-width:880px}
#fabric-dialog-title{padding-right:30px}
.fabric-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.fabric-comparison figure{margin:0;min-width:0}
.fabric-reference-wrap{position:relative;height:220px;background:#ddd0b9;border-radius:12px;overflow:hidden}
#fabric-reference{display:block;width:100%;height:100%;object-fit:cover}
.fabric-comparison .fabric-tinted{height:220px}
.fabric-comparison .watermark{color:white;text-shadow:0 1px 3px #30322f;opacity:.75;pointer-events:none}
@media(max-width:720px){.fabric-tinted{height:150px}.fabric-comparison{grid-template-columns:minmax(0,1fr);gap:16px}.fabric-reference-wrap,.fabric-comparison .fabric-tinted{height:150px}.fabric-options button{padding:9px}}

/* ---------- product range (November 25, 2026) ---------- */
.product-picker{margin:18px 0 0}
.picker-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:8px}
.picker-label{margin:0;font-size:15px;font-weight:600}
.picker-hint{display:none;font-size:13px;color:var(--sage-deep);font-weight:500}
.product-scroll{position:relative}
.product-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.product-option{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 4px 9px;border-radius:12px;min-height:86px;text-align:center}
.product-option svg{width:34px;height:34px;fill:#e7dfcc;stroke:currentColor;stroke-width:3.2;stroke-linejoin:round;stroke-linecap:round}
.product-option span{font-size:14px;line-height:1.2;font-weight:500}
.product-option[aria-pressed=true]{background:var(--tint);border-color:var(--sage);box-shadow:inset 0 0 0 1px var(--sage)}
.product-option[aria-pressed=true] svg{fill:#dbdfc9}
.product-option[aria-pressed=true] span{font-weight:600}
.shape-options[data-count="2"]{grid-template-columns:repeat(2,1fr)}
#handle-group[hidden],#closure-group[hidden],#base-group[hidden],#shape-options[hidden],#trim-note[hidden],#closure-note[hidden]{display:none}
#closure-group,#base-group{margin-top:2px}
@media(max-width:720px){
 .product-picker{margin:14px -16px 0}
 .picker-head{padding:0 16px}
 .picker-hint{display:inline}
 .picker-hint[hidden]{display:none}
 .product-scroll::before,.product-scroll::after{content:'';position:absolute;top:0;bottom:4px;width:36px;pointer-events:none;z-index:2;opacity:0;transition:opacity .18s}
 .product-scroll::before{left:0;background:linear-gradient(90deg,var(--paper) 15%,transparent)}
 .product-scroll::after{right:0;background:linear-gradient(270deg,var(--paper) 15%,transparent)}
 .product-scroll.can-left::before,.product-scroll.can-right::after{opacity:1}
 .product-options{display:flex;overflow-x:auto;gap:8px;scroll-snap-type:x proximity;scroll-padding-inline:36px;padding:0 16px 4px;scrollbar-width:none}
 .product-options::-webkit-scrollbar{display:none}
 .product-option{flex:0 0 auto;flex-direction:row;min-height:44px;padding:0 13px 0 9px;gap:6px;scroll-snap-align:start}
 .product-option svg{width:26px;height:26px}
 .product-option span{white-space:nowrap}
}
@media(max-width:720px) and (prefers-reduced-motion:no-preference){
 @supports (animation-timeline:scroll(self inline)){
  .product-scroll::before,.product-scroll::after{display:none}
  .product-options{--fade-size:36px;mask:linear-gradient(black,black) no-clip subtract,linear-gradient(to right,black,transparent) 0 0/var(--fade-start) 100% no-repeat no-clip,linear-gradient(to right,transparent,black) 100% 0/var(--fade-end) 100% no-repeat no-clip;animation:reveal-fade-start linear both,hide-fade-end linear both;animation-timeline:scroll(self inline);animation-range:0 var(--fade-size),calc(100% - var(--fade-size)) 100%}
 }
}
@keyframes reveal-fade-start{to{--fade-start:var(--fade-size)}}
@keyframes hide-fade-end{from{--fade-end:var(--fade-size)}}

/* ---------- decoration & artwork tools (November 25, 2026) ---------- */
.art-links{display:flex;flex-wrap:wrap;gap:6px 18px;align-items:center;margin-top:4px}
.art-hint{background:var(--tint);border:1px solid var(--line);border-left:3px solid var(--sage);border-radius:0 10px 10px 0;padding:10px 13px;font-size:14px;line-height:1.45;color:var(--ink);margin:0 0 12px}
.art-hint strong{font-weight:600}
.art-hint .hint-sub{display:block;color:var(--muted);font-size:13px;margin-top:4px}
#look-closer[aria-pressed=true]{background:var(--sage);border-color:var(--sage);color:#fff}
#decoration-block{margin-top:22px}
#decoration-label{margin-top:0}
.decoration-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.decoration-options[hidden]{display:none}
.decoration-options[data-count="1"]{grid-template-columns:minmax(0,1fr)}
.decoration-options button{text-align:left;padding:11px 12px;border-radius:12px;display:block;min-width:0}
.decoration-options button[aria-pressed=true]{background:var(--tint);border-color:var(--sage);box-shadow:inset 0 0 0 1px var(--sage)}
.decoration-options strong{display:block;font-size:15.5px;font-weight:600}
.decoration-options small{display:block;font-size:14px;line-height:1.35;color:var(--muted);margin-top:2px}
button.compare-decoration{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;text-align:left;margin-top:12px;padding:12px 40px 12px 14px;border-radius:12px;position:relative;background:var(--card)}
.compare-decoration strong{font-size:15.5px;font-weight:600}
.compare-decoration small{font-size:14px;color:var(--muted)}
.compare-decoration::after{content:'';position:absolute;right:18px;top:50%;width:8px;height:8px;border-right:1.5px solid currentColor;border-top:1.5px solid currentColor;transform:translateY(-50%) rotate(45deg)}
#decoration-dialog{max-width:1040px}
.decoration-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:22px 0 6px}
.decoration-compare article{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:12px 14px 16px;min-width:0}
.decoration-compare article.offered{border-color:var(--sage);box-shadow:inset 0 0 0 1px var(--sage)}
.decoration-compare canvas{display:block;width:100%;height:auto;aspect-ratio:16/9;border-radius:10px;background:#e8e2d2}
.decoration-compare h3{margin:14px 0 2px;font:400 22px/1.2 var(--display)}
.decoration-compare .tag{display:inline-block;font-size:13px;font-weight:600;color:var(--sage-deep);background:var(--tint);border-radius:999px;padding:2px 10px;margin-top:6px}
.decoration-compare .tag.no{color:var(--muted);background:var(--track);font-weight:500}
.decoration-compare p{font-size:14.5px;line-height:1.5;margin:8px 0 0;color:var(--ink)}
.decoration-compare h4{font-size:14px;font-weight:600;margin:12px 0 2px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.decoration-compare ul{margin:0;padding-left:18px;font-size:14.5px;line-height:1.45}
.decoration-compare li+li{margin-top:3px}
@media(max-width:860px){.decoration-compare{grid-template-columns:minmax(0,1fr)}}
.decoration-compare p.choose{margin-top:4px;font-size:15px}
#thread-block[hidden]{display:none}
#thread-block label{margin-top:14px}

/* ---------- print-ready one-page design brief ---------- */
.print-sheet{display:none}
@media print{
 @page{size:auto;margin:11mm 12mm}
 body{background:#fff!important;color:#1b2c24!important;padding:0!important;margin:0!important;font:400 10.5pt/1.38 Hanken,Arial,sans-serif!important}
 body>:not(#print-sheet){display:none!important}
 #print-sheet{display:block!important}
 .print-head{display:flex;justify-content:space-between;align-items:baseline;border-bottom:1.5px solid #263d32;padding-bottom:6px;margin-bottom:10px}
 .print-brand{font:400 20pt/1 Fraunces,Georgia,serif;letter-spacing:-.05em;color:#263d32}
 .print-brand span{font:8pt Hanken,Arial,sans-serif;vertical-align:top;margin-left:1px}
 .print-meta{font-size:9.5pt;color:#4a564c}
 .print-images{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:10px}
 .print-images figure{margin:0;text-align:center;border:1px solid #d8d9ce;border-radius:8px;padding:6px 6px 8px;background:#faf8f2}
 .print-images img{display:block;width:100%;max-height:225px;object-fit:contain;margin:0 auto}
 .print-images figcaption{font-size:8.5pt;color:#4a564c;margin-top:4px}
 .print-flags{border-left:3px solid #a23e29;background:#fcf3e6;padding:6px 10px;margin-bottom:10px;font-size:9pt}
 .print-flags ul{margin:3px 0 0;padding-left:16px}
 .print-spec{display:grid;grid-template-columns:120px 1fr;border-top:1px solid #d8d9ce;margin:0 0 10px;font-size:9.2pt}
 .print-spec dt,.print-spec dd{margin:0;padding:4px 0;border-bottom:1px solid #e4e5dc;line-height:1.35}
 .print-spec dt{color:#4a564c;font-weight:600}
 .print-foot{border-top:1px solid #263d32;padding-top:7px;font-size:8.8pt;line-height:1.4;color:#263d32}
 .print-foot p{margin:0 0 3px}
 .print-note{color:#5a665c;font-size:8pt}
}
