.cfg-wrap{max-width:1280px;margin:0 auto;padding:0 40px 70px}.cfg-wide{max-width:1440px}.cfg-top{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:25px 0;border-bottom:1px solid var(--line);margin-bottom:44px}.cfg-back{font-size:11px;color:var(--muted);display:flex;gap:8px;align-items:center}.cfg-top-note{font-size:10px;color:var(--muted)}.cfg-progress{display:flex;gap:28px}.cfg-step{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:500;border:0;background:transparent;padding:4px 0;color:#8a847c;opacity:1;cursor:default}.cfg-step span{display:grid;place-items:center;width:23px;height:23px;border:1px solid #c9c2b9;border-radius:50%;font-size:10px}.cfg-step.active{color:var(--ink)}.cfg-step.active span{background:var(--ink);border-color:var(--ink);color:#fff}.cfg-step.complete{color:var(--accent-ink);cursor:pointer}.cfg-step.complete span{background:var(--soft);border-color:transparent}.cfg-upload-layout{display:grid;grid-template-columns:1.05fr .85fr;gap:100px;max-width:1050px;margin:auto}.cfg-upload-main h1{font-size:56px;letter-spacing:-.05em;margin:16px 0 22px;line-height:1.02}.cfg-lead{font-size:15px;line-height:1.65;color:var(--muted);margin-bottom:27px}.cfg-drop{display:flex;flex-direction:column;align-items:center;text-align:center;border:1px dashed #aaa095;background:#ece7e0;padding:27px 22px 23px;border-radius:4px;transition:background .2s}.cfg-drop.dragging{background:var(--accent);outline:2px solid var(--accent-ink)}.cfg-drop.has-file{border-style:solid;border-color:#9e8b7c}.cfg-drop-icon{color:var(--accent-ink);margin-bottom:15px}.cfg-drop>strong{font-size:16px;font-weight:600;overflow-wrap:anywhere;max-width:100%}.cfg-drop>span{font-size:12px;color:var(--muted);margin:5px 0 19px}.cfg-file-button{background:var(--surface);border:1px solid #c9c0b5;cursor:pointer;font-size:13px;min-height:42px;padding:12px 20px}.cfg-drop>small{font-size:10px;color:var(--muted);line-height:1.6;margin-top:16px}.cfg-track-names{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:23px 0 20px}.cfg-track-names label,.cfg-panel label:not(.cfg-checkbox){display:block;font-size:12px;font-weight:500;color:#4d4843}.cfg-track-names input,.cfg-panel input:not([type=checkbox]),.cfg-panel textarea,.cfg-panel select{display:block;width:100%;background:transparent;border:0;border-bottom:1px solid #bdb4a9;border-radius:0;min-height:43px;padding:9px 0;color:var(--ink);font-size:14px;font-weight:400;resize:vertical}.cfg-track-names input::placeholder,.cfg-panel input::placeholder,.cfg-panel textarea::placeholder{color:#91887d}.cfg-checkbox{display:flex;align-items:flex-start;gap:11px;font-size:12px;line-height:1.6;cursor:pointer}.cfg-checkbox input{width:17px;height:17px;min-width:17px;margin:1px 0 0;accent-color:var(--accent-ink)}.cfg-rights{margin:21px 0 22px;color:#58514a}.cfg-analyze{width:100%}.cfg-demo{border-top:1px solid var(--line);padding-top:23px;margin-top:28px}.cfg-demo>span{font-size:12px;font-weight:500;display:block;margin-bottom:13px}.cfg-demo-track{display:flex;width:100%;justify-content:space-between;align-items:center;padding:13px 0;text-align:left;border:0;background:transparent;border-bottom:1px solid var(--line);gap:15px}.cfg-demo-track strong{display:block;font-size:12px;font-weight:500}.cfg-demo-track small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.cfg-demo-track:hover strong{text-decoration:underline;text-underline-offset:3px}.cfg-upload-aside{padding-top:11px}.cfg-sample-wall{background:#e3ddd4;position:relative;padding:35px 70px 80px;display:flex;justify-content:center;min-height:420px}.cfg-sample-wall img{width:100%;object-fit:contain;box-shadow:3px 7px 13px #34221129;transform:rotate(4deg)}.cfg-sample-wall>span{position:absolute;bottom:18px;left:23px;font-size:10px;color:var(--muted)}.cfg-sample-wall strong{display:block;font-size:14px;color:var(--ink);margin-top:2px;font-weight:500}.cfg-privacy{padding:25px 5px}.cfg-privacy .eyebrow{display:flex;align-items:center;gap:8px;font-size:10px;letter-spacing:.07em;margin-bottom:15px}.cfg-privacy p{font-size:12px;line-height:1.75;color:var(--muted);margin-bottom:12px}.cfg-privacy strong{font-weight:600;color:#4e473f}.cfg-privacy a{font-size:11px;display:flex;align-items:center;gap:8px;text-decoration:underline;text-underline-offset:4px}.cfg-error{font-size:12px;line-height:1.6;color:var(--error);background:#8c39390b;border-left:2px solid var(--error);padding:11px 14px;margin:15px 0}.cfg-analysis-progress{padding:19px 0}.cfg-analysis-progress>div{display:flex;justify-content:space-between;gap:12px;font-size:11px;align-items:center}.cfg-analysis-progress strong{font-weight:500}.cfg-analysis-progress progress{display:block;width:100%;height:5px;margin:15px 0;accent-color:var(--accent-ink)}.cfg-analysis-progress progress::-webkit-progress-bar{background:var(--line);border-radius:4px}.cfg-analysis-progress progress::-webkit-progress-value{background:var(--accent-ink);border-radius:4px}.cfg-link-button{font-size:11px;font-weight:400;display:inline-flex;align-items:center;gap:7px;border:0;background:transparent;color:var(--muted);padding:0;border-bottom:1px solid #aaa095;line-height:1.8;border-radius:0;cursor:pointer}.cfg-link-button:hover{color:var(--ink)}.cfg-notice{padding:15px;background:var(--soft);font-size:12px;margin:20px 0}.cfg-notice strong{font-weight:600}.cfg-notice p{margin:7px 0 0}.cfg-choice-heading{display:flex;justify-content:space-between;gap:45px;align-items:center}.cfg-choice-heading h1{font-size:46px;line-height:1.05;letter-spacing:-.045em;margin:15px 0 18px}.cfg-choice-heading p{font-size:13px;color:var(--muted);margin:0}.cfg-track-chip{display:flex;gap:16px;align-items:center;max-width:440px;background:#e9e4dd;padding:20px 21px}.cfg-track-chip strong{font-size:12px;font-weight:600;display:block}.cfg-track-chip span:not(.cfg-signal){display:block;font-size:11px;color:var(--muted);margin-top:3px}.cfg-track-chip small{display:block;font-size:9px;color:#8a7d70;margin-top:6px}.cfg-track-chip button{margin-left:10px}.cfg-signal{display:flex;gap:2px;height:34px;align-items:center;color:var(--accent-ink)}.cfg-signal i{width:2px;background:currentColor;display:block}.cfg-choice-toolbar{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:22px 0;margin-top:35px}.cfg-choice-toolbar>span{font-size:11px;color:var(--muted)}.cfg-choice-toolbar .button-quiet{font-size:12px;min-height:39px;padding:10px 14px}.cfg-candidate-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:27px 20px}.cfg-candidate{padding:0;border:0;border-radius:0;background:transparent;text-align:left;min-width:0;opacity:1}.cfg-candidate:disabled,.cfg-zoom:disabled{cursor:wait}.cfg-candidate-art{background:#e2ddd5;padding:21px 28px;aspect-ratio:.81;display:flex;justify-content:center;align-items:center;overflow:hidden;transition:background .2s}.cfg-candidate-art svg{height:100%;width:auto;max-width:100%;display:block;box-shadow:2px 5px 10px #35281720;transition:transform .2s}.cfg-candidate:hover:not(:disabled) .cfg-candidate-art{background:#d9d1c6}.cfg-candidate:hover:not(:disabled) .cfg-candidate-art svg{transform:translateY(-3px)}.cfg-skeleton{font-size:36px;font-weight:400;color:#b9b0a3}.cfg-candidate-caption{display:flex;justify-content:space-between;gap:10px;padding-top:11px}.cfg-candidate-caption strong{display:block;font-size:13px;font-weight:600}.cfg-candidate-caption small{display:block;font-size:10px;margin-top:3px;color:var(--muted)}.cfg-candidate-caption>span{background:#e8e2da;width:26px;height:26px;display:grid;place-items:center;border-radius:50%}.cfg-footnote{font-size:11px;color:var(--muted);text-align:center;margin:35px 0 0}.cfg-editor{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(330px,.8fr);gap:70px;align-items:start}.cfg-stage{position:sticky;top:24px;min-width:0}.cfg-stage-top{display:flex;justify-content:space-between;align-items:center;padding-bottom:16px}.cfg-stage-top .eyebrow{font-size:10px}.cfg-zoom{border:0;background:transparent;display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted);padding:5px 0}.cfg-stage-wall{background:#e3ddd4;min-height:570px;height:min(68vh,740px);display:flex;align-items:center;justify-content:center;padding:36px 55px;overflow:hidden}.cfg-frame{height:100%;max-width:100%;position:relative;display:flex;transition:padding .2s}.cfg-frame-none{filter:drop-shadow(3px 7px 7px #30201124)}.cfg-frame-black{border:9px solid #282522;padding:13px;background:#f1eee7;box-shadow:4px 9px 17px #35271d30}.cfg-frame-oak{border:10px solid #b59c76;padding:13px;background:#f1eee7;box-shadow:4px 9px 17px #35271d30;outline:1px solid #927c60;outline-offset:-4px}.cfg-poster{height:100%;max-width:100%;display:flex;align-items:center;justify-content:center}.cfg-poster svg{height:100%;width:auto;max-width:100%;display:block}.cfg-preview-loading{font-size:12px;color:var(--muted)}.cfg-stage-bottom{display:flex;justify-content:space-between;gap:20px;padding:14px 0;color:var(--muted);font-size:10px}.cfg-panel>.eyebrow{font-size:10px;padding-top:4px}.cfg-panel-heading{display:flex;gap:10px;justify-content:space-between;align-items:end;margin:14px 0 12px}.cfg-panel-heading h1{font-size:37px;line-height:1.04;letter-spacing:-.04em}.cfg-panel-heading .cfg-link-button{font-size:10px;white-space:nowrap}.cfg-panel-description{font-size:12px;color:var(--muted);line-height:1.65;margin:0 0 25px}.cfg-panel-description .cfg-link-button{margin-top:6px}.cfg-field-block{border-top:1px solid var(--line);padding-top:22px;margin-top:22px}.cfg-field-block h2{font-size:13px;letter-spacing:0;font-weight:600;margin-bottom:16px;line-height:1.4}.cfg-field-block>label+label{margin-top:16px}.cfg-palettes{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.cfg-palette{border:1px solid transparent;padding:8px 7px;background:transparent;text-align:left;display:flex;flex-direction:column;align-items:start;gap:8px;min-width:0}.cfg-palette>span{display:flex;width:100%;height:27px;border:1px solid #00000018;overflow:hidden}.cfg-palette i{flex:1}.cfg-palette small{font-size:10px;line-height:1.3;width:100%;min-height:2.6em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere}.cfg-palette.selected{border-color:#756455;background:#eee8df}.cfg-segments{display:flex;background:#e8e3db;padding:3px;gap:3px;border-radius:4px}.cfg-segments button{flex:1;background:transparent;border:0;padding:10px 8px;min-height:38px;font-size:11px;font-weight:500;border-radius:3px}.cfg-segments button[aria-pressed=true]{background:var(--surface);color:var(--ink)}#bpm-field{margin-top:18px}.cfg-note{font-size:10px;line-height:1.65;color:var(--muted);margin:7px 0 0}.cfg-details{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:25px}.cfg-details summary{list-style:none;display:flex;align-items:center;justify-content:space-between;padding:17px 0;font-size:12px;font-weight:500;cursor:pointer}.cfg-details summary::-webkit-details-marker{display:none}.cfg-details[open] summary>svg{transform:rotate(45deg)}.cfg-details>div{padding-bottom:20px}.cfg-details>div>label{margin-top:17px}.cfg-two{display:grid;grid-template-columns:1fr 1fr;gap:20px}.cfg-detail-option{margin-top:18px}.cfg-detail-option>span{font-size:12px;font-weight:500;display:block;margin-bottom:8px}.cfg-mobile-zoom{display:none}.cfg-panel-footer{display:flex;justify-content:space-between;align-items:center;margin-top:28px;gap:15px}.cfg-panel-footer>div span{display:block;font-size:10px;color:var(--muted)}.cfg-panel-footer strong{font-size:25px;letter-spacing:-.04em}.cfg-panel-footer .button{font-size:13px;padding:13px 18px}.cfg-order .cfg-panel-heading h1{font-size:42px}.cfg-sizes{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.cfg-sizes button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;background:transparent;border:1px solid var(--line);padding:17px 8px 13px;min-height:144px;gap:9px}.cfg-sizes button[aria-pressed=true]{border-color:#776555;background:#e8e0d6}.cfg-size-drawing{display:block;border:1px solid #968472;background:#f6f3ee;margin-bottom:3px}.cfg-sizes strong{font-size:14px;font-weight:500;letter-spacing:-.03em;line-height:1.2}.cfg-sizes strong small{font-size:10px;display:block;font-weight:400;color:var(--muted);margin-top:2px}.cfg-sizes button>span:last-of-type{font-size:11px;color:#665c52}.cfg-sizes em{font-style:normal;font-size:8px;text-transform:uppercase;letter-spacing:.04em;position:absolute;top:-6px;background:var(--bg);padding:0 5px;color:var(--accent-ink)}.cfg-frames{display:flex;flex-direction:column;gap:7px}.cfg-frames button{display:flex;align-items:center;gap:14px;background:transparent;border:1px solid var(--line);padding:11px 13px;min-height:58px;text-align:left}.cfg-frames button[aria-pressed=true]{border-color:#776555;background:#e8e0d6}.cfg-frame-swatch{display:block;width:28px;height:36px;background:#eee9e1;flex-shrink:0}.cfg-frame-swatch.none{border:1px solid #c3b7a7}.cfg-frame-swatch.black{border:4px solid #272524}.cfg-frame-swatch.oak{border:4px solid #b59c76}.cfg-frames strong{display:block;font-size:12px;font-weight:500}.cfg-frames small{display:block;font-size:10px;color:var(--muted);margin-top:2px}.cfg-frames svg{margin-left:auto}.cfg-share{margin:24px 0;background:#e9e3da;padding:15px}.cfg-share strong{font-size:11px;font-weight:600;display:block}.cfg-share small{display:block;font-size:10px;line-height:1.65;color:var(--muted);margin-top:4px}.cfg-share>p{font-size:9px;color:#7d7062;line-height:1.6;margin:9px 0 0;padding-left:28px}.cfg-total{padding-top:20px;border-top:1px solid var(--line)}.cfg-total>span{display:flex;justify-content:space-between;align-items:center;font-size:13px;font-weight:500}.cfg-total strong{font-size:32px;font-weight:700;letter-spacing:-.04em}.cfg-total p{font-size:10px;color:var(--muted);line-height:1.7;margin:2px 0 20px}.cfg-total p small{font-size:9px}.cfg-total a,.cfg-return-note a{text-decoration:underline;text-underline-offset:3px}.cfg-add,.cfg-go-cart{width:100%;font-size:14px}.cfg-go-cart{margin-top:10px}.cfg-delivery{font-size:10px;display:flex;gap:8px;align-items:center;justify-content:center;margin-top:15px}.cfg-order-notes{display:flex;gap:18px;justify-content:center;font-size:9px;color:var(--muted);margin-top:12px}.cfg-order-notes span{display:flex;gap:5px;align-items:center}.cfg-return-note{font-size:9px;color:var(--muted);line-height:1.6;text-align:center;margin:17px 0 0}
@media(max-width:1150px){.cfg-upload-layout{gap:55px}.cfg-progress{gap:16px}.cfg-editor{gap:40px;grid-template-columns:minmax(0,1.15fr) minmax(310px,.9fr)}.cfg-stage-wall{padding:28px 35px;min-height:500px}.cfg-sample-wall{padding:35px 50px 80px}.cfg-top-note{display:none}.cfg-panel-heading{align-items:start;flex-direction:column;gap:8px}.cfg-choice-heading h1{font-size:42px}.cfg-track-chip{max-width:380px}}
@media(max-width:920px){.cfg-wrap{padding:0 28px 60px}.cfg-upload-layout{gap:35px;grid-template-columns:1.1fr .85fr}.cfg-upload-main h1{font-size:45px}.cfg-upload-aside{padding-top:10px}.cfg-sample-wall{padding:35px 35px 70px;min-height:340px}.cfg-editor{gap:28px;grid-template-columns:minmax(0,1fr) minmax(290px,.95fr)}.cfg-stage-wall{padding:25px;min-height:440px;height:56vh}.cfg-panel-heading h1{font-size:32px}.cfg-panel-heading .cfg-link-button{font-size:10px}.cfg-candidate-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.cfg-track-chip{max-width:310px;padding:16px}.cfg-signal{display:none}.cfg-choice-heading{gap:25px}.cfg-choice-heading h1{font-size:36px}.cfg-sizes strong{font-size:12px}.cfg-order .cfg-panel-heading h1{font-size:36px}.cfg-progress{gap:15px}.cfg-step{font-size:10px}.cfg-top{gap:12px}}
@media(max-width:680px){.cfg-wrap{padding:0 20px 45px}.cfg-top{flex-direction:column;align-items:stretch;padding:15px 0 19px;margin-bottom:29px;gap:19px}.cfg-back{font-size:10px}.cfg-progress{justify-content:space-between;gap:5px}.cfg-step{font-size:9px;gap:5px}.cfg-step span{width:19px;height:19px;font-size:9px}.cfg-upload-layout{grid-template-columns:1fr;gap:35px}.cfg-upload-main h1{font-size:46px;margin:13px 0 18px}.cfg-lead{font-size:14px}.cfg-drop{padding:24px 18px}.cfg-drop>strong{font-size:15px}.cfg-track-names{gap:18px}.cfg-track-names label{font-size:11px}.cfg-rights{font-size:11px}.cfg-upload-aside{display:flex;flex-direction:column}.cfg-sample-wall{display:none}.cfg-privacy{padding:23px 20px;background:#e9e3da}.cfg-privacy p{font-size:11px}.cfg-privacy .eyebrow{font-size:9px}.cfg-choice-heading{display:block}.cfg-choice-heading h1{font-size:38px}.cfg-choice-heading p{font-size:12px}.cfg-track-chip{margin-top:24px;max-width:none;padding:15px}.cfg-track-chip>div{flex:1}.cfg-signal{display:flex}.cfg-track-chip strong{font-size:11px}.cfg-track-chip span:not(.cfg-signal){font-size:10px}.cfg-choice-toolbar{margin-top:25px;padding:17px 0;gap:12px}.cfg-choice-toolbar>span{font-size:10px}.cfg-choice-toolbar .button-quiet{font-size:10px;padding:9px 11px;gap:7px;min-height:36px}.cfg-choice-toolbar svg{width:14px}.cfg-candidate-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 12px}.cfg-candidate-art{padding:15px 18px;aspect-ratio:.8}.cfg-candidate-caption strong{font-size:11px}.cfg-candidate-caption small{font-size:9px}.cfg-candidate-caption>span{width:22px;height:22px}.cfg-candidate-caption>span svg{width:14px;height:14px}.cfg-footnote{font-size:10px;text-align:left}.cfg-editor{grid-template-columns:1fr;gap:30px}.cfg-stage{position:relative;top:auto}.cfg-stage-top{padding-bottom:12px}.cfg-stage-wall{height:440px;min-height:0;padding:25px 45px}.cfg-stage-bottom{font-size:9px;padding-top:11px}.cfg-panel{padding-bottom:12px}.cfg-panel-heading{align-items:center;flex-direction:row}.cfg-panel-heading h1{font-size:34px}.cfg-panel-description{font-size:12px;margin-bottom:22px}.cfg-field-block{padding-top:20px;margin-top:22px}.cfg-field-block h2{font-size:13px}.cfg-palette>span{height:32px}.cfg-palette small{font-size:10px}.cfg-panel label:not(.cfg-checkbox){font-size:12px}.cfg-panel input:not([type=checkbox]),.cfg-panel textarea,.cfg-panel select{font-size:16px}.cfg-segments button{font-size:12px;min-height:42px}.cfg-note{font-size:11px}.cfg-panel-footer{background:var(--bg);position:fixed;bottom:0;left:0;right:0;margin:0;padding:13px 20px;border-top:1px solid var(--line);z-index:25}.cfg-mobile-zoom{display:flex;align-items:center;justify-content:center;width:42px;height:44px;border:1px solid var(--line);background:transparent;margin-left:auto}.cfg-editor:not(.cfg-order) .cfg-panel{padding-bottom:80px}.cfg-panel-footer .button{font-size:14px}.cfg-panel-footer>div span{font-size:11px}.cfg-panel-footer strong{font-size:25px}.cfg-order .cfg-stage-wall{height:390px}.cfg-order .cfg-panel-heading h1{font-size:37px}.cfg-sizes button{min-height:145px}.cfg-sizes strong{font-size:15px}.cfg-sizes button>span:last-of-type{font-size:12px}.cfg-frames strong{font-size:13px}.cfg-frames small{font-size:11px}.cfg-share strong{font-size:12px}.cfg-share small{font-size:11px}.cfg-share>p{font-size:10px}.cfg-total>span{font-size:14px}.cfg-total strong{font-size:34px}.cfg-total p{font-size:11px}.cfg-total p small{font-size:10px}.cfg-delivery{font-size:11px}.cfg-order-notes{font-size:10px}.cfg-return-note{font-size:10px}.cfg-frame-black{border-width:7px;padding:10px}.cfg-frame-oak{border-width:8px;padding:10px}}
@media(max-width:360px){.cfg-progress{gap:3px}.cfg-step{font-size:8px}.cfg-step span{width:17px;height:17px}.cfg-stage-wall{padding:23px 29px;height:390px}.cfg-signal{display:none}}

.cfg-drop:focus-within{outline:2px solid var(--accent-ink);outline-offset:3px}
/* Flat controls like Campus and the SINEE shop: 4 px radius, no frame at rest,
   a slightly darker area on hover, the chosen state as a filled area. */
.cfg-chips{display:flex;flex-wrap:wrap;gap:6px}
.cfg-chips button{display:inline-flex;align-items:center;gap:6px;border:0;border-radius:4px;background:#ebe6df;padding:10px 14px;min-height:40px;font-size:12px;font-weight:500;color:var(--muted);transition:background .16s}
.cfg-chips button svg{display:block;visibility:hidden;flex:0 0 13px}
.cfg-chips button:hover:not(:disabled){background:#e2dbd2}.cfg-chips button:disabled{cursor:default;opacity:.42}
.cfg-chips button[aria-pressed=true]{background:var(--accent);color:var(--ink)}
.cfg-chips button[aria-pressed=true] svg{visibility:visible}
#cfg-facts .cfg-chips~div{margin-top:14px}
#cfg-motif .cfg-detail-option{margin-top:16px}
.cfg-segments button{transition:background .16s}
.cfg-segments button[aria-pressed=false]:hover{background:#ded7cd}
.cfg-palette{border:0;border-radius:4px;transition:background .16s}
.cfg-palette:hover{background:#ece6de}
.cfg-palette.selected{border:0;background:#e3dad0}
.cfg-sizes button,.cfg-frames button{border:0;border-radius:4px;background:#efeae4;transition:background .16s}
.cfg-sizes button:hover,.cfg-frames button:hover{background:#e6e0d8}
.cfg-sizes button[aria-pressed=true],.cfg-frames button[aria-pressed=true]{border:0;background:var(--accent)}
.cfg-mobile-zoom,.cfg-file-button{border:0;border-radius:4px;background:#ebe6df;transition:background .16s}
.cfg-mobile-zoom:hover,.cfg-file-button:hover{background:#e2dbd2}

/* Motion like the Campus: the segment slider glides over, overshoots slightly and
   settles (460 ms spring); buttons give a little when pressed. */
.cfg-segments{position:relative;isolation:isolate}
.cfg-segments::before{content:'';position:absolute;z-index:-1;top:3px;bottom:3px;left:3px;width:calc((100% - 6px - (var(--n,1) - 1) * 3px) / var(--n,1));background:var(--surface);border-radius:3px;transform:translateX(calc(var(--i,0) * (100% + 3px)));transition:transform 460ms cubic-bezier(.34,1.56,.64,1)}
.cfg-segments button[aria-pressed=true]{background:transparent}
.cfg-segments button,.cfg-chips button,.cfg-palette,.cfg-sizes button,.cfg-frames button,.button-quiet{transition:background .16s,color .2s,transform .14s cubic-bezier(.34,1.56,.64,1)}
.cfg-segments button:active,.cfg-chips button:active,.cfg-palette:active,.cfg-sizes button:active,.cfg-frames button:active{transform:scale(.96)}
@media (prefers-reduced-motion:reduce){.cfg-segments::before,.cfg-segments button,.cfg-chips button,.cfg-palette,.cfg-sizes button,.cfg-frames button{transition:none}}
/* Sign bar for the drawings: equal cells, stroked signs, muted until chosen. */
.cfg-signs button{padding:0;min-height:40px;display:flex;align-items:center;justify-content:center;color:var(--muted)}
.cfg-signs button[aria-pressed=true]{color:var(--ink)}
.cfg-signs svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
#cfg-motif-detail .cfg-note strong{color:var(--ink);font-weight:600}
@media (max-width:640px){.cfg-signs button{min-height:42px}.cfg-signs svg{width:20px;height:20px}}
/* Extra palettes: a fourth chosen field next to the three recommended ones, and a flat dialog with all gradients. */
.cfg-palettes.has-extra{grid-template-columns:repeat(4,1fr)}
.cfg-palette-extra{box-shadow:inset 0 0 0 2px var(--ink)}
.cfg-extra>span{display:flex;width:100%;height:32px;border:1px solid #00000018;overflow:hidden}
.cfg-extra i{flex:1}
.cfg-palette-tools{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 18px;margin-top:12px}.cfg-palette-tools .cfg-more-colors{margin-top:0}
.cfg-invert{display:inline-flex;align-items:center;gap:6px}.cfg-invert[aria-pressed=true]{color:var(--ink);font-weight:600}.cfg-invert:disabled{opacity:.42;cursor:default}
.cfg-more-colors{margin-top:12px}
.cfg-palette-dialog{width:min(92vw,640px);max-height:86svh;border:0;border-radius:4px;background:var(--bg);color:var(--ink);padding:26px 26px 30px;overflow:auto}
.cfg-palette-dialog::backdrop{background:#12100ecc}
.cfg-palette-dialog[open]{animation:cfg-dialog-in .42s cubic-bezier(.34,1.56,.64,1)}
@keyframes cfg-dialog-in{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
.cfg-palette-dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.cfg-palette-dialog-head h2{font-size:15px;margin:0}
.cfg-dialog-close{border:0;background:transparent;font-size:22px;line-height:1;color:var(--muted);cursor:pointer;padding:4px 8px;border-radius:4px}
.cfg-dialog-close:hover{background:#e6dfd6;color:var(--ink)}
.cfg-extra-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:8px}
.cfg-extra{display:flex;flex-direction:column;gap:8px;border:0;border-radius:4px;background:transparent;padding:8px 7px;text-align:left;color:inherit;font:inherit;cursor:pointer;transition:background .16s,transform .14s cubic-bezier(.34,1.56,.64,1)}
.cfg-extra:hover{background:#ece6de}
.cfg-extra:active{transform:scale(.96)}
.cfg-extra[aria-pressed=true]{background:#e3dad0;box-shadow:inset 0 0 0 2px var(--ink)}
.cfg-extra small{font-size:10px;line-height:1.3}
.cfg-extra:focus-visible,.cfg-dialog-close:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
@media (prefers-reduced-motion:reduce){.cfg-palette-dialog[open]{animation:none}.cfg-extra{transition:none}}
@media (max-width:640px){.cfg-palettes.has-extra{grid-template-columns:repeat(4,1fr);gap:6px}.cfg-palette-dialog{padding:20px 16px 24px}}
/* With 24 gradients the dialog scrolls inside itself; the page behind stays put. */
.cfg-palette-dialog{overscroll-behavior:contain}
html:has(.cfg-palette-dialog[open]){overflow:hidden}
.cfg-extra-grid{grid-template-columns:repeat(auto-fill,minmax(118px,1fr))}
@media (max-width:640px){.cfg-palette-dialog{max-height:82svh}.cfg-extra-grid{grid-template-columns:repeat(2,1fr)}}
