*{box-sizing:border-box}body{margin:0;color:#192725;background:#fff;font:14px/1.5 Arial,Helvetica,sans-serif}button,input,select{font:inherit}button,a,input,select,summary{ -webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid #becdc7;background:#fff;color:#173a31;padding:10px 12px;font-weight:700;border-radius:4px;min-height:42px}@media (hover:hover) and (pointer:fine){button:hover{border-color:#166951;background:#edf5f1}}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #51ad91;outline-offset:3px}input,select{width:100%;border:1px solid #bdccc6;background:white;border-radius:4px;min-height:42px;padding:9px;color:#192725}input[type=color]{padding:4px;min-width:60px}input[type=range]{padding:0;accent-color:#166951}input[type=checkbox]{width:20px;min-height:20px;accent-color:#166951}h1{font-size:30px;line-height:1.12;letter-spacing:-1px;margin:5px 0 12px}h2{font-size:22px;margin:8px 0}p{margin:8px 0 18px}.top{height:82px;border-bottom:1px solid #dbe4e0;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 32px}.brand{font-size:40px;letter-spacing:-3px;font-weight:900;color:#166951;text-decoration:none;line-height:.85}.brand span{display:block;font-size:8px;letter-spacing:1px;color:#60736c;margin-top:9px}.product{display:flex;flex-direction:column;flex:1;padding-left:25px}.product strong{letter-spacing:1px;font-size:15px}.product span,.hint{font-size:12px;color:#60736c}.quiet{border:0}.steps{display:flex;justify-content:center;gap:12px;padding:15px;background:#fff;border-bottom:1px solid #dbe4e0}.steps button{border:none;background:transparent;color:#77837e;min-width:170px}.steps span{margin-right:7px;font-size:11px}.steps [aria-current=step]{background:#edf5f1;color:#166951}.studio{display:grid;grid-template-columns:320px minmax(0,1fr);max-width:1580px;margin:auto}.inspector{padding:26px 24px 120px;border-right:1px solid #dbe4e0}.intro p{font-size:13px}.eyebrow{color:#166951;font-weight:700;font-size:10px!important;letter-spacing:1.5px;margin-bottom:10px}.inspector details{border-bottom:1px solid #dbe4e0}summary{cursor:pointer;list-style:none;font-weight:700;padding:17px 0;display:flex;justify-content:space-between}summary:after{content:'+'}details[open]>summary:after{content:'−'}.fields{padding:0 0 18px}.fields>*+*{margin-top:12px}label{display:block;font-size:12px;font-weight:700}label input,label select{display:block;margin-top:5px;font-weight:400}.optional{color:#72847c;font-weight:400}.row{display:flex;gap:8px;align-items:end}.row label{flex:1;min-width:0}.row button{font-size:12px;padding:9px}.advanced summary{font-size:12px;color:#60736c;padding:10px 0}.advanced label{margin-top:9px}fieldset{padding:0;border:0;min-width:0;margin:0}fieldset>*+*{margin-top:12px}.danger{color:#963536}.workspace{background:#f3f6f3;position:sticky;top:0;height:calc(100dvh - 165px);min-height:550px;display:flex;flex-direction:column;align-items:center;padding:24px 24px 10px}.viewbar{display:flex;width:100%;align-items:center;justify-content:space-between;gap:10px;z-index:2}.segmented{display:flex;padding:3px;border-radius:5px;background:white;border:1px solid #dbe4e0}.segmented button{border:0;font-size:12px;background:white;min-height:34px;padding:8px 14px}.segmented [aria-pressed=true]{background:#166951;color:white}.viewbar>.row button{background:transparent;font-size:23px;line-height:1;padding:6px 13px}#stage{width:100%;flex:1;min-height:250px;position:relative}#stage canvas{display:block;width:100%;height:100%;touch-action:none}.panel-tabs{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}.panel-tabs button{font-size:11px;background:transparent;border-color:transparent;min-height:35px;padding:6px 9px}.panel-tabs [aria-pressed=true]{border-color:#166951;background:white}.workspace p{margin:8px 0 0;text-align:center;font-size:11px}.notice{background:#fff4df;color:#6b4813;border-left:3px solid #bb862a;padding:10px 12px;border-radius:3px;max-width:100%}.subtle{background:#edf5f1;border-color:#166951;color:#234d3d}.bottom{position:fixed;bottom:0;width:100%;padding:14px 32px;border-top:1px solid #dbe4e0;background:white;display:flex;justify-content:space-between;align-items:center;z-index:10;gap:14px}.bottom strong{font-size:17px}.bottom small{display:block;color:#60736c;font-size:10px}.bottom a{color:inherit}.actions{display:flex;gap:8px}.primary{background:#166951;color:white;border-color:#166951;padding:12px 22px}@media (hover:hover) and (pointer:fine){.primary:hover{background:#0f503c;color:#fff}}.flow{max-width:1000px;margin:auto;padding:36px 28px 120px}.member{border:1px solid #dbe4e0;margin:20px 0;padding:20px;border-radius:6px}.member-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.member-head h2{font-size:16px}.member-fields{display:grid;grid-template-columns:1fr 1fr 1.25fr .7fr;gap:12px;margin-top:14px}.member-names{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.member .remove-member{border:0;color:#963536}.gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.gallery button{font-size:10px;overflow-wrap:anywhere;padding:6px;min-width:0}.gallery img{width:42px;height:42px;object-fit:contain;display:block;margin:0 auto 5px}.upload{padding:12px;border:1px dashed #166951}.upload input{font-size:11px;border:0;padding:0;width:100%}.colors{display:flex;gap:6px;flex-wrap:wrap}.colors label{max-width:75px}.review-line{display:grid;grid-template-columns:100px 1fr;gap:18px;padding:18px 0;border-bottom:1px solid #dbe4e0}.review-line img{width:100px;height:130px;object-fit:contain;background:#f3f6f3}.review-line h2{font-size:17px;margin:0 0 7px}.review-line p{margin:4px 0;font-size:13px;overflow-wrap:anywhere}.totals{max-width:400px;margin:28px 0 28px auto}.totals div{display:flex;justify-content:space-between;margin:8px 0;gap:15px}.totals .total{font-size:20px;font-weight:700;border-top:1px solid #dbe4e0;padding-top:13px}.confirm{display:flex;gap:10px;align-items:center;font-size:13px}.confirm input{flex-shrink:0}.totals .discount{color:#166951}#trial{background:#faf1db;color:#725519;font-size:11px;text-align:center;padding:6px}#message{position:fixed;left:50%;bottom:94px;transform:translateX(-50%);background:#173a31;color:white;padding:14px 22px;border-radius:5px;z-index:30;max-width:90vw;box-shadow:0 4px 20px #0002}dialog{border:1px solid #cbd9d2;border-radius:8px;max-width:520px;width:92vw;padding:24px}dialog::backdrop{background:#1236}#draft-list button{display:block;width:100%;margin:9px 0;text-align:left}.draft-date{display:block;font-size:11px;font-weight:400;color:#60736c}#flat-view{flex:1;width:100%;min-height:200px;display:flex;align-items:center;justify-content:center;padding:18px}#board{position:relative;touch-action:none;max-width:100%;outline-offset:8px}#flat-base{display:block;width:100%;height:100%;pointer-events:none}#art-layers,#handles{position:absolute;inset:0}#art-layers{mask-size:100% 100%;mask-repeat:no-repeat;pointer-events:none}#art-layers img,#handles button{position:absolute;transform:translate(-50%,-50%);object-fit:fill;max-width:none}#handles button{padding:0;min-height:0;border:1px solid transparent;border-radius:0;background:transparent;touch-action:none}@media (hover:hover) and (pointer:fine){#handles button:hover{border:1px dashed #70cba7}}#handles button.selected{border:2px solid #25b98a;box-shadow:0 0 0 1px #fff9}#size-handle{position:absolute;width:28px;height:28px;min-height:0;padding:0;border-radius:50%;background:#166951;color:white;transform:translate(-50%,-50%);touch-action:none}#render-state{color:#60736c}[hidden]{display:none!important}
@media(min-width:1450px){.studio{grid-template-columns:360px minmax(0,1fr)}.inspector{padding:30px 32px 120px}.workspace{height:calc(100dvh - 170px)}}
@media(max-width:760px){.top{height:68px;padding:12px 16px;gap:10px}.brand{font-size:31px}.brand span{font-size:6px}.product{padding:0}.product strong{font-size:12px}.product span{display:none}.top button{font-size:11px;padding:8px 0}.steps{gap:0;padding:8px 10px}.steps button{min-width:0;flex:1;font-size:11px;padding:8px 4px;min-height:38px}.steps span{margin-right:2px}.studio{display:flex;flex-direction:column}.workspace{order:-1;position:relative;top:auto;height:475px;min-height:0;padding:14px 12px 8px}.viewbar>.row button{font-size:21px;padding:4px 10px}.viewbar .segmented button{padding:8px 12px}.inspector{padding:24px 20px 130px;border:0}.intro h1{font-size:28px}.panel-tabs{gap:0}.panel-tabs button{font-size:10px;padding:5px 6px}.workspace p{font-size:10px}.bottom{padding:10px 12px;gap:8px}.bottom strong{font-size:13px}.actions{gap:5px}.actions button{font-size:11px;padding:10px 11px}.actions #save{padding:10px 6px;border:0}.bottom small{font-size:9px}.flow{padding:26px 16px 125px}.flow h1{font-size:28px}.member{padding:14px}.member-fields{grid-template-columns:1fr 1fr}.member-names{grid-template-columns:1fr}.review-line{grid-template-columns:75px 1fr;gap:12px}.review-line img{width:75px;height:104px}.review-line h2{font-size:15px}.review-line p{font-size:12px}.confirm{align-items:start}.gallery{grid-template-columns:repeat(4,minmax(0,1fr))}#message{font-size:12px;bottom:83px;width:90vw}.workspace .notice{max-height:55px;overflow:auto}.row button{flex:1}.viewbar>.row button{flex:0}#flat-view{padding:10px}.totals{max-width:100%}}

@media(min-width:761px){.workspace{height:calc(100dvh - 260px);min-height:400px}}

.brand img{display:block;width:112px;height:auto;max-height:54px;object-fit:contain}.review-line{grid-template-columns:180px 1fr}.review-previews{display:flex;gap:5px;align-items:center;padding:0;background:#f3f6f3;border:1px solid #dbe4e0}.review-previews img{width:50%;max-width:86px;height:125px}@media (hover:hover) and (pointer:fine){.review-previews:hover{border-color:#166951}}#proof-dialog{max-width:840px}#proof-images{display:grid;grid-template-columns:1fr 1fr;gap:14px}#proof-images figure{margin:0;min-width:0}#proof-images img{width:100%;height:auto;background:#f3f6f3}#proof-images figcaption{font-size:12px;text-align:center;color:#60736c;padding-top:8px}
@media(max-width:760px){.brand img{width:82px;max-height:42px}.review-line{grid-template-columns:110px 1fr}.review-previews{gap:0}.review-previews img{width:50%;height:95px}.bottom{display:grid;grid-template-columns:1fr;gap:8px}.bottom>div:first-child{display:flex;justify-content:space-between;align-items:baseline;gap:10px}.bottom .actions{display:grid;grid-template-columns:auto auto 1fr}.bottom .actions #next{grid-column:-2}.bottom .actions button{white-space:nowrap}.flow{padding-bottom:145px}.inspector{padding-bottom:145px}#message{bottom:120px}.workspace{height:455px}}
.brand img{filter:brightness(.68) saturate(1.3) hue-rotate(135deg)}

.flow a{color:#166951;text-underline-offset:3px}

/* Editor v2: generous canvas, focused right tools, short independent scroll areas. */
:root{--ink:#18332d;--green:#176950;--line:#dce5e0;--soft:#f4f7f5;--muted:#697d73}
body{color:var(--ink);font-family:Arial,Helvetica,sans-serif;background:#fff}
button,input,select{border-radius:5px}button{transition:background .15s,border-color .15s;cursor:pointer}@media (hover:hover) and (pointer:fine){button:hover{border-color:var(--green);background:#eaf3ee}}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #167658;outline-offset:3px}button:disabled{cursor:default;opacity:.5}
.top{height:70px;padding:12px 28px;border-bottom:1px solid var(--line)}.product strong{font-size:15px;letter-spacing:.8px}.product span{font-size:11px}.top .brand img{width:105px}.steps{height:57px;padding:7px;gap:8px}.steps button{font-size:12px;min-height:37px}.steps [aria-current=step]{box-shadow:inset 0 -2px var(--green);border-radius:5px 5px 0 0}
.studio{display:grid;grid-template-columns:minmax(0,1fr) 320px 76px;max-width:none;height:calc(100dvh - 232px);min-height:420px;padding:12px 14px 14px;gap:10px}
.workspace{grid-column:1;grid-row:1;position:relative;top:auto;height:100%;min-height:0;min-width:0;border:1px solid #e5ebe7;border-radius:12px;padding:14px 14px 8px;overflow:hidden;background:radial-gradient(ellipse at 50% 40%,#fff 0%,#f4f7f5 72%)}
.inspector{grid-column:2;grid-row:1;min-width:0;padding:20px 18px;height:100%;overflow:auto;border:1px solid var(--line);border-radius:12px;background:#fff;scrollbar-width:thin;scrollbar-color:#c5d4cc transparent}
.inspector-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px}.inspector-heading h1{font-size:21px;line-height:1.1;margin:0;font-weight:700;letter-spacing:-.5px}.inspector-heading .eyebrow{font-size:9px!important;margin:0 0 8px}.polo-badge{border:1px solid var(--line);font-size:9px;letter-spacing:1px;padding:6px;border-radius:4px;color:var(--muted)}
.tool-rail{grid-column:3;grid-row:1;display:flex;flex-direction:column;gap:6px;align-items:stretch;border:1px solid var(--line);border-radius:12px;padding:6px;background:var(--soft)}.tool-rail button{font-size:10px;border:0;padding:10px 3px;color:var(--muted);background:transparent;min-height:59px}.tool-rail button span{display:block;font-size:23px;line-height:24px;margin-bottom:5px;color:var(--ink)}.tool-rail [aria-pressed=true]{color:var(--green);background:#fff;box-shadow:0 2px 8px #184d3410}.tool-rail [aria-pressed=true] span{color:var(--green)}
.tool-page p{font-size:12px;line-height:1.6}.tool-page h2{font-size:12px;margin:0}.tool-page input,.tool-page select{font-size:12px}.fields{padding:0}.fields>*+*{margin-top:16px}.wide{width:100%}.motif-tools{padding-top:18px;border-top:1px solid var(--line);margin-top:20px}.motif-tools>.row{align-items:center;flex-wrap:wrap}.motif-tools .quiet{font-size:11px;padding:6px 0}.motif-tools label{font-size:11px;margin-top:12px}.motif-tools output{float:right;font-weight:400;color:var(--muted)}.motif-tools input[type=range]{padding:0;height:26px;accent-color:var(--green);border:0}.motif-tools .row button{font-size:11px}.hint{font-size:11px!important;line-height:1.5;color:var(--muted)}
#element-section{margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.element-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.element-heading h2{font-size:13px;margin:0}.element-heading button{font-size:24px;line-height:1;padding:0 4px;min-height:24px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.colors{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.colors label{max-width:none;min-width:0;margin:0;font-size:10px}.colors input[type=color]{padding:2px;width:100%;height:29px;min-height:0;margin:0;border-radius:50%;border:1px solid #cddbd2;background:#fff;cursor:pointer}.colors input::-webkit-color-swatch-wrapper{padding:1px}.colors input::-webkit-color-swatch{border:0;border-radius:50%}.colors:empty{display:none}#element-fields>.row button{font-size:10px;padding:8px 7px;flex:1;min-width:0}.advanced summary{font-size:11px}.advanced label{font-size:10px}
.gallery{margin-top:18px;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.gallery-tile{position:relative;min-width:0}.gallery-tile>button:first-child{height:91px;width:100%;border:1px solid var(--line);border-radius:7px;font-size:10px;padding:8px 4px;background:var(--soft)}.gallery-tile img{width:43px;height:45px;object-fit:contain;margin-bottom:7px}.gallery-tile button span{display:block;line-height:1.2;max-height:24px;overflow:hidden}.gallery-tile .delete-upload{position:absolute;right:-4px;top:-4px;padding:0;width:23px;height:23px;min-height:0;background:#fff;border:1px solid #d4dfd8;border-radius:50%;font-size:17px;color:#963536;line-height:1}.uploads-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.uploads-gallery .gallery-tile>button:first-child{height:125px}.uploads-gallery img{width:70px;height:76px}.upload{border:1px dashed #9cbaaa;border-radius:8px;padding:20px 13px;background:#f5f9f6;text-align:center}.upload strong{display:block;font-size:13px;margin-bottom:8px}.upload span{font-size:10px;color:var(--muted);font-weight:400}.upload input{font-size:10px;margin-top:16px}.upload.dragover{background:#dceee3;border-color:var(--green)}#upload-state{font-size:11px;padding:10px;background:#edf6ef;border-radius:5px;margin-top:10px}#layer-list button{display:block;width:100%;text-align:left;margin-top:7px;font-size:12px}#layer-list [aria-pressed=true]{border-color:var(--green);background:#edf6ef}
.viewbar{flex-shrink:0}.viewbar .segmented{box-shadow:0 3px 12px #102a2110;border-radius:7px}.viewbar>.row button{background:#fff;border:1px solid var(--line);width:36px;height:36px;min-height:36px;padding:5px;line-height:1;font-size:22px}.zoom-controls{position:absolute;left:14px;top:78px;display:flex;flex-direction:column;gap:4px;z-index:4;padding:4px;border:1px solid var(--line);border-radius:8px;background:#ffffffea;box-shadow:0 3px 12px #102a210b}.zoom-controls button{border:0;background:transparent;font-size:22px;line-height:1;width:34px;height:34px;min-height:34px;padding:5px}.zoom-controls [aria-pressed=true]{background:#dfeee5;color:var(--green)}.zoom-controls output{font-size:9px;text-align:center;padding:4px 0;color:var(--muted)}
#stage{min-height:120px;flex:1;width:100%}#flat-view{padding:10px 50px;min-height:120px;overflow:hidden;position:relative;touch-action:none;flex:1}#flat-view.panning{cursor:grab}#board{flex-shrink:0;max-width:none;transform-origin:center;will-change:auto}#motif-handle{position:absolute;inset:0;width:100%;height:100%;border:1px dashed #46af8d;border-radius:0;background:transparent;touch-action:none;cursor:move}#handles{pointer-events:none}#handles button{pointer-events:auto}#size-handle{z-index:3;box-shadow:0 2px 8px #0002;width:22px;height:22px;font-size:12px}
.panel-tabs{gap:7px;flex-shrink:0;margin-top:5px}.panel-tabs button{background:#fff;border:1px solid #dce6df;border-radius:6px;min-height:60px;width:65px;padding:4px 2px;font-size:9px;line-height:1.15}.panel-tabs button img{display:block;width:31px;height:35px;object-fit:contain;margin:0 auto 4px}.panel-tabs [aria-pressed=true]{border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}.workspace p{font-size:9px!important;margin-top:5px;flex-shrink:0}.workspace .notice{font-size:10px!important;max-height:50px;overflow:auto;text-align:left;padding:6px 10px;width:100%}
.bottom{height:78px;padding:12px 28px;border-top:1px solid var(--line);box-shadow:0 -4px 18px #152b2106}.bottom strong{font-size:15px}.bottom .actions button{font-size:12px;min-height:43px}.bottom .primary{padding:12px 24px}.flow{padding-bottom:120px}#trial{font-size:10px;padding:5px}.flow .notice{font-size:12px}
@media(min-width:1650px){.studio{grid-template-columns:minmax(0,1fr) 350px 80px}.inspector{padding:24px}.workspace{padding:20px}}
@media(max-width:1000px) and (min-width:761px){.studio{grid-template-columns:minmax(0,1fr) 290px 63px;padding:8px;gap:6px}.inspector{padding:17px 14px}.tool-rail{padding:4px}.tool-rail button{font-size:9px}.panel-tabs{gap:3px}.panel-tabs button{width:53px;font-size:8px}#flat-view{padding:10px 37px}.zoom-controls{left:8px}}
@media(max-width:760px){.top{height:60px;padding:9px 14px}.top .brand img{width:82px}.top .product strong{font-size:11px}.top button{font-size:10px}.steps{height:48px;padding:5px;gap:2px}.steps button{font-size:10px;padding:7px 4px;min-height:34px}.studio{display:flex;height:auto;min-height:0;padding:8px 8px 136px;gap:8px}.workspace{order:0;flex:none;width:100%;height:clamp(340px,51dvh,490px);min-height:0;padding:10px 8px 7px;border-radius:9px}.tool-rail{order:1;flex-direction:row;padding:3px;gap:3px;position:sticky;top:0;z-index:6;border-radius:8px}.tool-rail button{flex:1;min-width:0;min-height:54px;padding:6px 0;font-size:9px}.tool-rail button span{font-size:20px;line-height:21px;margin-bottom:3px}.inspector{order:2;height:auto;max-height:none;width:100%;padding:20px 17px 23px;overflow:visible}.inspector-heading{margin-bottom:20px}.inspector-heading h1{font-size:20px}.gallery{grid-template-columns:repeat(4,minmax(0,1fr))}.uploads-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.colors{grid-template-columns:repeat(8,minmax(0,1fr))}.gallery-tile>button:first-child{height:85px}.uploads-gallery .gallery-tile>button:first-child{height:110px}.uploads-gallery img{height:62px;width:62px}.viewbar .segmented button{font-size:10px;padding:7px 10px;min-height:32px}.viewbar>.row{gap:4px}.viewbar>.row button{font-size:20px;width:32px;height:32px;min-height:32px}.zoom-controls{top:57px;left:7px;padding:3px;gap:0}.zoom-controls button{font-size:20px;width:29px;height:29px;min-height:29px}.zoom-controls output{font-size:8px}.panel-tabs{gap:4px;margin-top:4px}.panel-tabs button{font-size:8px;width:55px;min-height:51px;padding:3px 1px}.panel-tabs button img{width:24px;height:28px;margin-bottom:3px}.workspace p{font-size:8px!important}.workspace #view-hint{max-width:90%;overflow:hidden;white-space:nowrap}#flat-view{padding:5px 36px}.bottom{height:auto;min-height:91px;padding:9px 12px;display:grid;grid-template-columns:1fr;gap:7px}.bottom strong{font-size:13px}.bottom small{font-size:9px}.bottom .actions button{font-size:11px;padding:9px 11px;min-height:38px}.bottom .primary{padding:10px 13px}.flow{padding-bottom:135px}.flow .member-names{grid-template-columns:1fr}#message{bottom:110px}}
@media(prefers-reduced-motion:reduce){*,::backdrop{scroll-behavior:auto!important;transition-property:opacity,color,background-color,border-color,visibility!important}}

/* Contextual controls and AI transfer */
.inspector{overflow-x:hidden}.inspector>*{min-width:0;max-width:100%}.inspector input,.inspector select{min-width:0;max-width:100%}.ai-project{border-top:1px solid #dce5df;padding:18px 0;display:grid;gap:10px}.ai-project img{width:100%;height:170px;object-fit:contain;background:#f4f7f5;border-radius:8px}.ai-project .confirm{font-size:12px;line-height:1.55;align-items:flex-start}.ai-job{width:100%;margin:5px 0}.ai-project select{width:100%}#ai-progress{padding:12px;background:#eef5ef;color:#166951;font-size:13px;line-height:1.55;margin-top:12px}.upload input{font-size:11px}

/* Text tools: fixed circles on every viewport; native picker remains accessible. */
.colors{grid-template-columns:repeat(auto-fill,32px);gap:9px}.colors label.color-swatch{width:32px;height:32px;min-width:32px;max-width:32px;aspect-ratio:1;display:block}.colors input[type=color]{display:block;box-sizing:border-box;width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;max-width:32px;max-height:32px;aspect-ratio:1;padding:3px;margin:0;border-radius:50%;overflow:hidden;appearance:none;-webkit-appearance:none}.colors input::-webkit-color-swatch-wrapper{padding:0}.colors input::-webkit-color-swatch{border:0;border-radius:50%}.colors input::-moz-color-swatch{border:0;border-radius:50%}
textarea{font:inherit;width:100%;max-width:100%;padding:12px;border:1px solid #bdccc6;border-radius:7px;resize:vertical;min-height:68px;line-height:1.4;color:#192725}#element-text{margin-top:7px;font-size:20px;max-height:180px}#text-options{display:grid;gap:12px}#text-options .hint{font-size:11px;line-height:1.5;margin:0}.text-align{display:flex;gap:5px}.text-align button{flex:1;min-width:0;font-size:11px;padding:8px}.text-align [aria-pressed=true]{background:#e8f2ed;border-color:#166951;color:#166951}.outline-toggle{display:flex;align-items:center;gap:9px;padding-top:5px}.outline-toggle input{margin:0;flex:0 0 20px;width:20px}#outline-settings input[type=color]{height:40px;width:100%;min-width:0}#element-section{scroll-margin-top:20px}textarea:focus-visible{outline:3px solid #51ad91;outline-offset:2px}

/* Draft and layer controls: one selected context, compact handles, real font specimens. */
.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px}.dialog-head h2{margin:0;font-size:21px;line-height:1.2}.icon-close{flex:0 0 36px!important;display:grid;place-items:center;border:0;border-radius:50%;width:36px;height:36px;min-height:36px;padding:0!important;font:26px/1 Arial;color:#53635e;background:#f0f4f2}@media (hover:hover) and (pointer:fine){.icon-close:hover{background:#e3ece7}}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}dialog{border:1px solid #dce5df;border-radius:16px;padding:24px;width:min(540px,calc(100vw - 28px));max-height:calc(100dvh - 40px)}#draft-list{max-height:55dvh;overflow:auto;display:grid;gap:10px}#draft-list .draft-card{display:flex;align-items:center;gap:16px;text-align:left;width:100%;padding:12px;margin:0;background:#f6f8f7;border:1px solid #dde6e1;border-radius:10px;min-height:112px}.draft-card>span{min-width:0;overflow-wrap:anywhere}.draft-card strong{display:block;font-size:14px;line-height:1.35}.draft-date{display:block;font-size:11px;font-weight:400;color:#677b72;margin-top:6px}.draft-thumb{width:68px;height:87px;object-fit:contain;flex:0 0 68px;background:white;border-radius:5px}.draft-thumb.loading{visibility:hidden;background:linear-gradient(110deg,#edf2ef,#fff,#edf2ef);color:transparent}#save-dialog label{font-size:14px}#save-dialog input{margin-top:10px}#save-dialog .hint{margin-top:10px}
#layer-list{display:grid;gap:0}#layer-list .layer-row{display:flex;align-items:center;gap:4px;border:1px solid transparent;border-bottom-color:#e1e8e4;min-width:0;padding:7px 2px;position:relative}#layer-list .layer-row.active{border-color:#166951;background:#edf5f0;border-radius:6px}#layer-list .layer-row button{margin:0;border:0;background:transparent;min-height:40px;border-radius:4px}#layer-list .layer-grip{flex:0 0 26px;width:26px;padding:4px;cursor:grab;font-size:22px;line-height:1;touch-action:none;color:#6d7d75}#layer-list .layer-grip:active{cursor:grabbing}#layer-list .layer-select{display:flex;align-items:center;flex:1;min-width:0;width:auto;gap:10px;padding:3px 5px;overflow:hidden;text-align:left;font-weight:400}#layer-list .layer-select img{width:40px;height:38px;object-fit:contain;flex:0 0 40px}#layer-list .layer-select span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}#layer-list .layer-text{font-size:19px;line-height:1.3}#layer-list .layer-delete{width:28px;flex:0 0 28px;padding:3px;font-size:22px;color:#7e8b85}@media (hover:hover) and (pointer:fine){#layer-list .layer-delete:hover{color:#a33838}}#layer-list .base-layer{display:flex;align-items:center;gap:14px;margin:0;border:0;border-bottom:1px solid #e1e8e4;border-radius:0;background:white;padding:12px 8px;font-weight:400;min-height:62px}.base-swatch{width:32px;height:32px;display:block;border:1px solid #d3ded7;border-radius:50%;background-size:cover;background-position:center}#layer-list .sorting{opacity:.55;background:#e8f3ec}#layer-list .drop-before:before,#layer-list .drop-after:after{content:'';position:absolute;left:0;right:0;height:3px;background:#166951;z-index:2}#layer-list .drop-before:before{top:-2px}#layer-list .drop-after:after{bottom:-2px}#element-section{margin-top:20px;border-top:1px solid #dce5df;padding-top:16px}.element-heading{display:flex;justify-content:space-between;align-items:center;gap:10px}.element-heading h2{font-size:15px}.element-heading button{font-size:22px;padding:0;width:32px;height:32px;min-height:32px}
.font-open{display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;width:100%;margin-top:6px;min-height:46px}.font-open>span:first-child{font-size:19px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.font-open>span:last-child{font:25px/1 Arial;color:#6a7e74}#font-dialog{width:min(440px,calc(100vw - 28px));overflow:hidden}#font-list{height:min(60dvh,580px);overflow:auto;margin-top:14px;display:flex;flex-direction:column;gap:3px}#font-list .font-choice{font-size:25px;line-height:1.35;font-weight:400;min-height:52px;text-align:left;padding:10px 12px;border:1px solid transparent;border-radius:6px;flex-shrink:0;overflow-wrap:anywhere}#font-list .font-choice[aria-pressed=true]{border-color:#166951;background:#edf5f0}.font-loading{opacity:.35}.font-error{color:#8b3d34}
/* V5: focused controls and a single, shared 3D renderer on desktop. */
#mini-expand,#mini-shrink,.mini-caption{display:none}
@media(min-width:1000px){.workspace:has(#stage.expanded) .viewbar .segmented{left:67.5%}}
@media(min-width:1000px) and (max-height:800px){.zoom-controls{gap:2px}.zoom-controls button{height:28px;min-height:28px;width:28px}#stage.mini{width:120px!important;height:140px!important;bottom:110px!important}}
.upload{position:relative;padding:23px 15px;border:1px dashed #90b3a2;border-radius:12px;background:linear-gradient(145deg,#f3f9f5,#fff);overflow:hidden;cursor:pointer}
.upload .upload-icon{display:grid;place-items:center;margin:0 auto 12px;border-radius:50%;background:#e5f1e9;color:#176950;width:42px;height:42px;font-size:29px;line-height:1}
.upload strong{font-size:14px;margin-bottom:6px}.upload .upload-button{display:block;margin:12px auto 0;width:fit-content;border-radius:6px;background:#176950;color:white;font-size:12px;font-weight:700;padding:9px 16px}
.upload input.upload-input{position:absolute;inset:0;margin:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:16px}.upload:focus-within{outline:2px solid #176950;outline-offset:3px}@media (hover:hover) and (pointer:fine){.upload:hover{background:#edf6f0}}
.quick-colors{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.quick-colors:empty{display:none}.quick-colors button.quick-color{width:24px;height:24px;min-width:24px;min-height:24px;flex:0 0 24px;aspect-ratio:1;border-radius:50%;padding:0;border:2px solid white;outline:1px solid #cbd7d0;box-shadow:none}.quick-colors button[aria-pressed=true]{outline:2px solid #176950}.quick-colors button:focus-visible{outline:3px solid #176950;outline-offset:3px}
#element-fields output{float:right;font-weight:400;color:#65786e}#element-fields input[type=range]{height:26px;min-height:26px;border:0;cursor:pointer}
#color-dialog{max-width:390px}#color-preview{height:70px;border:1px solid #dce5df;border-radius:9px;margin:16px 0}.ink-inputs{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:15px}.ink-inputs input{font-size:13px;padding:8px;min-width:0}#color-dialog .hint{margin-top:14px}#color-hex{font-family:monospace}#color-apply{margin-top:8px}
#library-breadcrumb{font-size:10px;line-height:1.7;margin-top:15px;color:#718279}#library-breadcrumb button{font-size:10px;line-height:1.4;padding:3px 0;min-height:24px;border:0;background:none;color:#176950}
#library-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}#library-categories:empty{display:none}#library-categories button{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0;text-align:left;background:#f7f9f7;border:1px solid #e0e8e2;border-radius:9px;padding:14px 11px;min-height:104px}@media (hover:hover) and (pointer:fine){#library-categories button:hover{background:#edf5ee;border-color:#8eb5a3}}.category-icon{display:block;font-size:27px;color:#176950;line-height:1.1;font-weight:400}#library-categories strong{font-size:12px;line-height:1.2}#library-categories small{font-size:10px;color:#75857b;font-weight:400}.template-card{min-height:100px;background:#f1f7f3!important}.template-card strong{display:block;font-size:12px;margin-top:9px}
@media(min-width:761px){.viewbar{height:42px;position:relative}.viewbar .segmented{position:absolute;left:50%;top:0;transform:translateX(-50%);white-space:nowrap}.viewbar>.row{margin-left:auto}.zoom-controls{top:14px}}
@media(min-width:1000px){#stage.mini,#stage.expanded{position:absolute;left:14px;bottom:118px;z-index:5;flex:none;border:1px solid #dce5e0;border-radius:12px;background:radial-gradient(ellipse,#fff,#f1f5f2);box-shadow:0 4px 18px #12382713;overflow:hidden}#stage.mini{width:150px;height:186px;min-height:0;cursor:zoom-in}#stage.expanded{top:67px;left:64px;width:min(360px,calc(35% - 50px));height:auto;min-height:140px}#stage.mini canvas,#stage.expanded canvas{position:absolute;inset:0}#stage.mini #mini-expand,#stage.expanded #mini-shrink{display:grid;place-items:center;position:absolute;z-index:2;right:6px;top:6px;width:28px;height:28px;min-height:28px;border:0;border-radius:50%;padding:0;background:#fff9;font-size:21px;color:#4c6d5c}#stage.mini .mini-caption,#stage.expanded .mini-caption{display:block;position:absolute;z-index:1;bottom:7px;width:100%;text-align:center;font-size:9px;font-weight:700;color:#416652;pointer-events:none}.workspace:has(#stage.expanded) #flat-view{margin-left:35%;width:65%}}
@media(max-width:760px){dialog{padding:19px;max-height:calc(100dvh - 24px)}.dialog-head h2{font-size:19px}#draft-list{max-height:58dvh}#font-list{height:56dvh}#layer-list .layer-row{min-height:62px}#layer-list .layer-grip{min-height:44px}.font-open>span:first-child{font-size:20px}}

/* V6: viewport-proportional editor, visible transform controls and CMYK picker. */
.panel-nav{display:flex;gap:5px;flex-shrink:0}.icon-button{display:grid;place-items:center;width:34px;height:34px;min-height:34px;border:0;background:#f0f4f2;border-radius:50%;padding:0;font-size:21px}@media (hover:hover) and (pointer:fine){.panel-nav .icon-button:hover{background:#dfebe4}}.inspector-heading{align-items:center;gap:8px}.inspector-heading h1{font-size:clamp(18px,1.15vw,23px)}
#selection-toolbar{display:flex;align-items:center;justify-content:center;position:absolute;top:65px;left:50%;transform:translateX(-50%);z-index:8;max-width:calc(100% - 95px);overflow-x:auto;padding:4px;border:1px solid #dce5df;border-radius:12px;background:#fffffff2;box-shadow:0 4px 18px #173a3110;gap:2px;scrollbar-width:thin}#selection-toolbar button{flex:0 0 31px;min-height:32px;height:32px;width:31px;padding:0;border:0;background:none;font-size:19px;font-weight:400;white-space:nowrap}@media (hover:hover) and (pointer:fine){#selection-toolbar button:hover{background:#e8f3ec}}#selection-toolbar button:last-child{color:#fff;background:#166951;border-radius:7px}
#transform-handles{pointer-events:none;position:absolute;inset:0;z-index:4}#transform-handles button{pointer-events:auto;position:absolute;display:grid;place-items:center;transform:translate(-50%,-50%);padding:0;min-height:16px;width:16px;height:16px;border:2px solid white;background:#167d60;border-radius:50%;box-shadow:0 0 0 1px #167d60;touch-action:none;color:white;font-size:17px;line-height:1}#transform-handles .rotate-handle,#transform-handles .delete-handle{width:28px;height:28px;min-height:28px;background:#fff;border:1px solid #dae4de;border-radius:6px;box-shadow:0 2px 7px #19372916;color:#176950}#transform-handles .delete-handle{color:#b13d3d}#transform-handles svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6}#size-handle{display:none!important}#handles button.selected{border-color:#1a9871;box-shadow:0 0 0 1px #1a987133}#handles button{opacity:1!important}#height-wrap{margin-top:8px}#art-layers{isolation:isolate}
#gradient-options{border-top:1px solid #dce5df;padding-top:14px;display:grid;gap:12px}#gradient-options h2{font-size:15px;margin:0}.gradient-editor{margin:9px 9px 0;position:relative;padding:17px 0}#gradient-bar{height:34px;border:1px solid #b9cbc1;border-radius:5px}#gradient-stops,#gradient-alpha{height:15px;position:relative}.gradient-stop{position:absolute!important;transform:translateX(-50%);width:15px;height:15px;min-height:15px!important;padding:0!important;border:2px solid white;border-radius:3px;outline:1px solid #9daf9f}.gradient-stop[aria-pressed=true]{outline:2px solid #176950;z-index:1}#gradient-alpha .gradient-stop{top:-3px}#gradient-stops .gradient-stop{top:3px}.gradient-add{justify-content:center}.gradient-add button{font-size:11px;flex:1}.gradient-point{border:1px solid #dce5df;background:#f6f9f7;border-radius:8px;padding:10px}.gradient-point strong{font-size:12px}.gradient-point input[type=color]{min-width:36px;width:100%;height:38px}.gradient-checks{display:flex;flex-wrap:wrap;gap:9px 14px}.gradient-checks label{display:flex;gap:6px;align-items:center;font-weight:400;font-size:11px}.gradient-checks input{display:inline-block;width:16px;min-height:16px;height:16px;margin:0}
#color-dialog{max-width:410px}#color-field{height:165px;position:relative;border-radius:10px;cursor:crosshair;touch-action:none;background:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,transparent),hsl(160 100% 50%);margin:15px 0 12px}#color-cursor{position:absolute;width:15px;height:15px;border:2px solid white;border-radius:50%;box-shadow:0 0 0 1px #0007;transform:translate(-50%,-50%);pointer-events:none}#color-hue{appearance:none;-webkit-appearance:none;min-height:0;height:15px;border:0;border-radius:20px;padding:0;background:linear-gradient(90deg,red,#ff0,#0f0,#0ff,#00f,#f0f,red);margin:0 0 10px}#color-hue::-webkit-slider-thumb{appearance:none;width:22px;height:22px;border:2px solid white;border-radius:50%;background:transparent;box-shadow:0 0 0 1px #668479}.color-preview-row{display:flex;align-items:center;gap:9px;margin:2px 0 10px}#color-preview{height:34px;min-width:50px;flex:1;margin:0;border-radius:6px}.color-preview-row button{font-size:11px;padding:7px;min-height:34px}#color-sample{display:block;width:100%;height:190px;object-fit:contain;cursor:crosshair;background:#f3f6f4;border:1px solid #dce5df;border-radius:8px}#color-sample-hint{margin:5px 0}.ink-inputs{margin-bottom:8px}.ink-inputs input{padding:7px;font-size:12px}#color-dialog .dialog-actions{margin-top:12px}#color-apply{margin:0}#color-dialog .hint{font-size:10px;margin-bottom:9px}#color-dialog .quick-colors{gap:9px;margin:13px 0}
.panel-tabs{width:100%;gap:clamp(5px,.5vw,10px);margin-top:8px}.panel-tabs button{width:clamp(60px,4.4vw,91px);min-height:clamp(61px,5.2vw,96px);font-size:clamp(9px,.62vw,12px);padding:5px}.panel-tabs button img{width:clamp(30px,2.7vw,55px);height:clamp(34px,3.1vw,63px);margin-bottom:5px}
@media(min-width:1000px){#stage.expanded{left:12px;top:62px;bottom:112px;width:calc(40% - 22px);max-width:none;border-radius:14px;background:#f1f4f2}.workspace:has(#stage.expanded) #flat-view{margin-left:40%;width:60%}.workspace:has(#stage.expanded) .panel-tabs,.workspace:has(#stage.expanded) #view-hint,.workspace:has(#stage.expanded) #render-state{margin-left:40%;width:60%}.workspace:has(#stage.expanded) .viewbar .segmented,.workspace:has(#stage.expanded) #selection-toolbar{left:70%}.workspace:has(#stage.expanded) #selection-toolbar{max-width:calc(60% - 25px)}#stage.expanded #mini-shrink{right:9px;top:9px}#flat-view{padding:48px 37px 25px}.workspace:has(#selection-toolbar[hidden]) #flat-view{padding-top:8px}.zoom-controls{z-index:9} }
@media(min-width:1650px){#stage.expanded{bottom:145px}.panel-tabs{margin-top:10px}.viewbar{margin-bottom:7px}}
@media(max-width:760px){.panel-tabs{margin-left:0;width:100%;gap:4px;flex-wrap:nowrap}.panel-tabs button{flex:1;width:auto;max-width:68px;min-width:0;min-height:56px;font-size:8px;padding:3px 1px}.panel-tabs button img{width:28px;height:32px;margin-bottom:3px}.workspace{height:clamp(420px,58dvh,560px)}#selection-toolbar{top:51px;max-width:calc(100% - 66px);left:55%;border-radius:9px;justify-content:flex-start;padding:3px}#selection-toolbar button{width:28px;flex-basis:28px;font-size:17px;min-height:29px;height:29px}#flat-view{padding:42px 37px 21px}.workspace:has(#selection-toolbar[hidden]) #flat-view{padding-top:8px}.zoom-controls{top:54px}#transform-handles button{width:19px;height:19px;min-height:19px}.gradient-point .row{gap:5px}.panel-nav .icon-button{width:35px;height:35px;min-height:35px}#color-field{height:145px}#color-dialog{padding:18px}#color-dialog .dialog-head{margin-bottom:13px}}

#flat-composite{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}#art-layers{visibility:hidden}

.gradient-stop{touch-action:none}

/* Keep oversized object hit areas inside the canvas, below navigation. */
#flat-view{isolation:isolate;overflow:hidden;position:relative;z-index:0}
.panel-tabs{position:relative;z-index:8}
.viewbar{position:relative;z-index:9}
#layer-list .layer-delete{color:#bc3439;width:36px;flex-basis:36px;display:grid;place-items:center}
@media (hover:hover) and (pointer:fine){#layer-list .layer-delete:hover,#transform-handles .delete-handle:hover{color:#a01f2b;background:#fff0f0}}
#layer-list .layer-delete svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#transform-handles .delete-handle{color:#bc3439}
#sleeve-transfer{border-top:1px solid #dce5df;margin-top:20px;padding-top:14px}
#sleeve-transfer h2{font-size:15px}#sleeve-transfer button{font-size:12px;color:#166951;background:#f1f7f3}
#sleeve-transfer .hint{margin:8px 0}
/* Gestures belong to the complete workspace, including the blank canvas margin. */
.workspace,#flat-view{touch-action:none;overscroll-behavior:contain;-webkit-user-select:none;user-select:none}
#board #handles button.selected{border-width:calc(2px * var(--view-inverse,1))}
#board #transform-handles .scale-handle{border-width:calc(2px * var(--view-inverse,1))}
#board #transform-handles .rotate-handle{font-size:calc(20px * var(--view-inverse,1));padding:0}
#board #transform-handles svg{width:65%;height:65%}
#board #transform-handles button{box-shadow:0 0 0 calc(1px * var(--view-inverse,1)) #167d60}

/* V16: direct layer actions, clear visibility and a compact detail status. */
#layer-list .layer-row{flex-wrap:wrap;padding:8px 2px;gap:3px}
#layer-list .layer-select{flex-basis:100px;min-width:70px;gap:6px}
#layer-list .layer-select img{width:30px;height:32px;flex-basis:30px}
#layer-list .layer-grip{width:20px;flex-basis:20px;padding:1px}
.layer-actions{display:flex;align-items:center;gap:1px;margin-left:auto}
#layer-list .layer-actions button{width:30px;height:38px;min-height:38px;flex:0 0 30px;padding:5px;color:#29594b}
#layer-list .layer-actions svg{width:19px;height:19px;display:block}
#layer-list .layer-actions .layer-delete{color:#bb353c}
@media (hover:hover) and (pointer:fine){#layer-list .layer-action:hover{background:#e1eee8}}
#layer-list .layer-hidden .layer-select,#layer-list .layer-hidden .base-layer{opacity:.48}
#layer-list .base-layer{flex:1;min-width:90px;padding:6px 3px;min-height:40px;border:0;background:transparent;font-size:11px;gap:7px}
.base-row .base-swatch{width:28px;height:28px;flex:0 0 28px}
#flat-view{position:relative}
/* Reserve the row even when idle, so status changes never alter zoom or board geometry. */
.workspace #detail-feedback{height:28px;min-height:28px;flex:0 0 28px;width:100%;display:flex;align-items:center;justify-content:center}
.workspace #detail-state{position:static;transform:none;max-width:100%;min-height:28px;height:28px;padding:3px 8px;border:0;border-radius:4px;background:transparent;color:#60736c;font-size:11px;font-weight:400;line-height:22px;box-shadow:none;white-space:nowrap;pointer-events:none;opacity:1}
@media(min-width:1000px){.workspace:has(#stage.expanded) #detail-feedback{margin-left:40%;width:60%}}
#detail-state:before{content:'';display:inline-block;width:10px;height:10px;border:2px solid #b5cfc3;border-top-color:#166951;border-radius:50%;margin-right:6px;vertical-align:-1px;animation:detail-spin .8s linear infinite}
@keyframes detail-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#detail-state:before{animation:none}}
#quality-tools{margin:12px 0;padding:10px;background:#f1f7f4;border-radius:8px}
#upscale-start{width:100%;font-size:12px}#upscale-status{font-size:12px;line-height:1.5;margin:9px 0 0}

.workspace #detail-state.detail-error{pointer-events:auto;cursor:pointer;color:#166951;text-decoration:underline;text-underline-offset:3px}@media (hover:hover) and (pointer:fine){.workspace #detail-state.detail-error:hover{background:#edf5f1}}.workspace #detail-state.detail-error::before{display:none}

/* Shared shirt family: options stay in the inspector, never cover artwork. */
#execution{margin:0 0 20px;padding:0 0 16px;border-bottom:1px solid #dbe4e0}#execution legend{font-size:14px;font-weight:700;margin-bottom:8px}#execution .hint{margin:10px 0 0}.execution-fields{display:grid;gap:10px}.member-execution{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}.member-execution label{min-width:0}.member-execution select{width:100%;min-width:0}@media(max-width:380px){.member-execution{grid-template-columns:1fr}}

/* V36: execution owns garment options and optional working-copy preferences. */
.execution-color{padding:0 0 18px}.execution-color>label{font-size:13px;font-weight:600;margin-bottom:9px}.execution-color>input{width:100%;height:46px;padding:5px;border:1px solid var(--line);border-radius:8px;cursor:pointer}.execution-color .quick-colors{margin-top:10px}#execution-preferences .working-copy{margin-top:0}#execution legend{display:none}

/* Persistent progress through provider work, import and the actual rendered preview. */
#ai-transfer-dialog{width:min(420px,calc(100vw - 40px));max-width:calc(100vw - 40px);box-sizing:border-box;padding:24px;border:1px solid #cbdcd6;border-radius:16px;color:#174c40;box-shadow:0 18px 70px #13392f30}
#ai-transfer-dialog::backdrop{background:#102c2455;backdrop-filter:blur(3px)}
#ai-transfer-dialog .ai-transfer-foot{display:grid;grid-template-columns:1fr;gap:12px}#ai-transfer-dialog .ai-transfer-foot p{margin:0}#ai-transfer-count{white-space:nowrap}
#ai-transfer-dialog h2{font-size:19px;margin:0 0 22px}#ai-transfer-dialog progress{appearance:none;width:100%;height:9px;border:0;border-radius:20px;overflow:hidden;margin:18px 0 12px;background:#e7efeb}#ai-transfer-dialog progress::-webkit-progress-bar{background:#e7efeb}#ai-transfer-dialog progress::-webkit-progress-value{background:#166951;transition:width .4s}#ai-transfer-dialog progress::-moz-progress-bar{background:#166951}
.ai-transfer-line{display:flex;align-items:center;gap:10px;font-size:13px}.ai-transfer-line strong{flex:1;overflow-wrap:anywhere}#ai-transfer-percent{font-weight:700;white-space:nowrap}.ai-transfer-spinner{width:16px;height:16px;flex:none;border:2px solid #d5e5df;border-top-color:#166951;border-radius:50%;animation:ai-transfer-spin .8s linear infinite}.failed .ai-transfer-spinner{display:none}.ai-transfer-foot{font-size:12px;color:#637c74}.ai-transfer-foot p{font-size:12px;line-height:1.5}#ai-transfer-dialog>button{margin-top:20px;width:100%}@keyframes ai-transfer-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.ai-transfer-spinner{animation:none}}

/* V39: compact, independent background dimensions. */
.motif-heading{display:flex;gap:10px;align-items:center}.motif-heading h2{flex:1}.motif-heading .icon-button{width:32px;height:32px;padding:6px}.motif-heading svg{width:18px;height:18px}.motif-info{position:relative;flex:0 0 24px}.motif-info summary{list-style:none;width:22px;height:22px;display:grid;place-items:center;border:1px solid #b4c9c0;border-radius:50%;cursor:pointer;color:var(--green)}.motif-info summary::-webkit-details-marker{display:none}.motif-info p{position:absolute;right:0;top:22px;width:min(240px,70vw);padding:12px;background:white;border:1px solid var(--line);box-shadow:0 4px 14px #0002;z-index:20;font-size:12px!important}.motif-dimensions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.motif-dimensions input{width:100%;min-width:0}.motif-tools label.motif-link{display:flex;align-items:center;gap:8px;font-weight:400}.motif-link input{width:16px;height:16px;accent-color:var(--green)}.motif-scale{display:grid;grid-template-columns:34px minmax(0,1fr) 34px;align-items:center;gap:10px;margin-top:12px}.motif-scale label{margin:0}.motif-scale button{padding:0;height:34px;font-size:20px}.motif-tools .row>label{min-width:0;flex:1}.motif-tools #select-motif{margin-top:12px}.motif-tools .row:last-child{flex-wrap:nowrap}.motif-tools .row:last-child button{flex:1;min-width:0}.position-locked #motif-handle{cursor:default}#layer-list .base-layer{min-width:0;overflow:hidden;text-align:left}
.motif-info summary{padding:0;min-height:22px;line-height:20px}.motif-info summary:after{display:none}.inspector details.motif-info{border:0}.tool-page[data-page=fill]:has(#motif-tools:not([hidden]))>.panel-intro{display:none}
.inspector .motif-info summary{display:flex;align-items:center;justify-content:center;padding:0}.motif-tools{border:0;padding-top:0;margin-top:12px}

/* Independent collar faces and direct background-layer handles. */
#collar-editor{border-bottom:1px solid #dce5df;padding:0 0 14px;margin-bottom:14px}.collar-colors{display:grid;gap:9px}.collar-colors label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0}.collar-colors input{width:36px;height:32px;padding:2px;cursor:pointer}#collar-split{width:100%}.layer-grip svg{width:18px;height:18px}.collar-color-row .base-layer{width:100%}
@media(max-width:760px){.mobile-design #mobile-canvas-actions #collar-areas-toggle{grid-column:1/-1;justify-self:center;font-size:10px;min-height:28px;padding:4px 8px;border:1px solid #dbe5df;background:white;color:#49665a;border-radius:6px}}

/* Give the two collar guide switches their own row without overlapping the hint. */
@media(max-width:760px), (max-width:980px) and (max-height:600px){
 .mobile-design #mobile-canvas-actions:has(#collar-areas-toggle:not([hidden])){height:auto;min-height:70px;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:34px 30px;gap:4px;flex-shrink:0}
 .mobile-design #mobile-canvas-actions:has(#collar-areas-toggle:not([hidden])) #mobile-add{grid-column:2/6;grid-row:1;justify-self:center}
 .mobile-design #mobile-canvas-actions:has(#collar-areas-toggle:not([hidden])) #collar-help{grid-column:1;grid-row:1}
 .mobile-design #mobile-canvas-actions:has(#collar-areas-toggle:not([hidden])) #checks-open{grid-column:6;grid-row:1;justify-self:end}
 .mobile-design #mobile-canvas-actions:has(#collar-areas-toggle:not([hidden])) #collar-guide-toggle{grid-column:1/4;grid-row:2;justify-self:end}
 .mobile-design #mobile-canvas-actions:has(#collar-areas-toggle:not([hidden])) #collar-areas-toggle{grid-column:4/7;grid-row:2;justify-self:start;white-space:nowrap;font:500 10px/1.2 'Segoe UI',Arial,sans-serif;min-height:28px;padding:4px 6px;border:1px solid #dbe5df;background:white;color:#49665a;border-radius:6px}
 .mobile-design #mobile-canvas-actions:has(#collar-guide-toggle[hidden]) #collar-areas-toggle{grid-column:1/-1;justify-self:center}
 .mobile-design #mobile-canvas-actions:has(#collar-areas-toggle:not([hidden])) #render-state{display:none}
}

/* Cross-panel copy chooser; no persistent explanatory paragraph in the editor. */
.copy-panel-open{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin:8px 0;font-size:12px}.copy-panel-open svg{width:19px;height:19px;flex:none}
#layer-copy-dialog{width:min(500px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto}#layer-copy-dialog form{margin:0}#layer-copy-title{font-size:20px}.layer-copy-label{font-size:13px;overflow-wrap:anywhere;color:#52695e}.layer-copy-targets{display:grid;grid-template-columns:1fr 1fr;gap:9px}.layer-copy-target{display:grid;grid-template-columns:22px 36px 1fr;align-items:center;gap:8px;padding:10px;border:1px solid #becdc7;border-radius:7px;margin:0;min-width:0;cursor:pointer;font-size:12px}.layer-copy-target:has(input:checked){border-color:#166951;background:#edf5f1}.layer-copy-target input{margin:0;width:20px;height:20px;min-height:20px}.layer-copy-target img{width:36px;height:46px;object-fit:contain}.layer-copy-target span{overflow-wrap:anywhere}.layer-copy-target small{grid-column:2/-1}.layer-copy-target.unavailable{opacity:.55}.layer-copy-info{margin:10px 0;font-size:12px}.layer-copy-info summary{cursor:pointer;border:1px solid #9bb7ab;border-radius:50%;width:24px;height:24px;text-align:center;list-style:none;font-weight:bold}.layer-copy-info p{margin:8px 0}.layer-copy-replace{display:flex;gap:8px;align-items:center;font-size:13px;margin:14px 0}.layer-copy-replace[hidden]{display:none}.layer-copy-error{font-size:13px;color:#9a302e;overflow-wrap:anywhere}#layer-copy-dialog .dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}@media(max-width:380px){.layer-copy-targets{grid-template-columns:1fr}#layer-copy-title{font-size:18px}}

#layer-copy-dialog [data-close]{width:36px;height:36px;padding:8px;display:grid;place-items:center;flex:none}#layer-copy-dialog [data-close] svg{width:18px;height:18px}.layer-copy-info summary{display:flex;align-items:center;justify-content:center;padding:0;min-height:24px;line-height:1}.layer-copy-info summary::after,.layer-copy-info summary::before{display:none}.layer-copy-info summary::-webkit-details-marker{display:none}

/* Background editing uses the graphic workspace; no zoom-dependent layout gutter. */
#motif-handle{inset:auto;min-width:0;min-height:0;padding:0;border:1px solid #16846d;box-shadow:none;background:transparent;border-radius:0;transform-origin:center}
#motif-handle:focus-visible{outline:2px solid #16846d;outline-offset:3px}
.motif-heading{gap:8px;margin-bottom:16px}.motif-heading h2{font-size:12px;font-weight:600}.motif-heading .background-lock{background:#f0f6f3;border-color:#dce7e1;border-radius:8px}
.background-size-card{display:grid;grid-template-columns:54px minmax(0,1fr);gap:10px;align-items:center;margin:14px 0}
#background-thumbnail{width:54px;height:64px;object-fit:contain;background:#f2f5f3;border-radius:8px;padding:3px}
.background-cm{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 16px;gap:8px;align-items:end}.background-cm label{margin:0;font-size:10px}.background-cm input{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:6px 2px;text-align:right;width:100%;min-width:0;height:34px}.background-cm>span{font-size:10px;padding-bottom:11px}
.background-rotation{display:grid;grid-template-columns:48px minmax(0,1fr) 52px 8px;align-items:center;gap:8px;padding:14px 0;border-top:1px solid var(--line);margin-top:14px}.background-rotation label{margin:0}.background-rotation input[type=number]{width:100%;padding:4px 0;text-align:right;border:0;border-bottom:1px solid var(--line);border-radius:0}.background-rotation>span{font-size:11px}
.background-movement{display:grid;grid-template-columns:1fr repeat(4,34px);gap:5px;align-items:center;padding:4px 0 14px;border-bottom:1px solid var(--line);font-size:11px}.background-movement button{border:0;background:transparent;min-height:34px;padding:0;font-size:18px;color:var(--green)}
#motif-tools>.copy-panel-open{margin:12px 0;width:100%;min-height:38px;border-radius:8px;background:#fff;justify-content:center}
.background-quick{display:flex;justify-content:space-between;gap:4px;padding-bottom:12px;border-bottom:1px solid var(--line)}.background-quick button{width:34px;min-height:34px;padding:7px;border:0;border-radius:8px;background:#f2f7f4;color:var(--green)}.background-quick svg{width:18px;height:18px}.background-quick button[aria-pressed=true]{background:var(--green);color:#fff}
.background-image-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin:16px 0}
.background-image-tools .background-image-tool{display:flex;align-items:center;gap:9px;padding:12px 10px;min-height:58px;margin:0!important;border:1px solid #dce7e1;border-radius:10px;text-align:left;background:#f2f7f4;color:#185e4c;font-weight:600;font-size:11px;line-height:1.35}
.background-image-tool svg{width:21px;height:21px;flex:0 0 21px}@media (hover:hover) and (pointer:fine){.background-image-tool:hover,.background-quick button:hover{background:#e2efe8;border-color:#87b7a6}}.background-image-tool:focus-visible,.background-quick button:focus-visible{outline:2px solid #16715a;outline-offset:2px}
.background-extra{margin:10px 0 16px;border:0!important}.background-extra>summary{padding:10px 0!important;font-size:11px}.background-extra .row{display:flex;gap:12px}.background-extra label{min-width:0;flex:1}
.motif-tools .row:last-child{gap:8px}.motif-tools .row:last-child button{border-radius:8px;min-height:36px}
#selection-toolbar button[hidden]{display:none!important}
@media(max-width:760px){.background-image-tools .background-image-tool{min-height:56px}.background-quick button{min-height:42px;width:40px}.background-movement button{min-height:42px}.background-cm input{min-height:42px}.background-rotation input[type=number]{min-height:42px}}
/* Match the compact graphic inspector, overriding legacy fill-panel spacing. */
.tool-page[data-page=fill]:has(#motif-tools:not([hidden])) .fill-panel-row{display:none}
#motif-tools{margin:0;padding:0;border:0}
#motif-tools .motif-heading{margin:0 0 10px}
#motif-tools .background-size-card{margin:10px 0}
#motif-tools .motif-scale{margin:10px 0;grid-template-columns:28px minmax(0,1fr) 28px;gap:8px}
#motif-tools .motif-scale label{margin:0}
#motif-tools input[type=range]{min-height:24px;height:24px;margin:0;padding:0}
#motif-tools .motif-scale button{min-height:30px;height:30px;border:0;background:transparent}
#motif-tools .background-rotation{padding:8px 0;margin:8px 0 0}
#motif-tools .background-rotation label{margin:0}
#motif-tools .background-rotation input[type=number]{min-height:32px;height:32px}
#motif-tools .background-movement{padding:3px 0 8px}
#motif-tools>.copy-panel-open{margin:9px 0;min-height:36px}
#motif-tools .background-quick{padding:0 0 8px}
#motif-tools .background-image-tools{margin:12px 0;gap:8px}
#motif-tools .background-image-tool{min-height:54px}
#motif-tools .background-extra{margin:8px 0 12px}
@media(max-width:760px){#motif-tools .background-rotation input[type=number],#motif-tools .motif-scale button{min-height:42px;height:42px}}

/* Startup failures remain actionable without exposing incomplete editor controls. */
main[hidden],.steps[hidden],.bottom[hidden]{display:none!important}
#initial-load.load-error{max-width:560px;margin:48px auto!important;padding:28px!important;background:#fff;border:1px solid #d8e5df;border-radius:14px;line-height:1.5}
#initial-load.load-error strong,#initial-load.load-error span{display:block}
#initial-load.load-error strong{font-size:20px;margin-bottom:10px}
#initial-load.load-error a{display:inline-block;margin-top:20px;padding:12px 20px;background:#166951;color:white;border-radius:6px;text-decoration:none;font-weight:700}
@media(max-width:760px){#initial-load.load-error{margin:28px 16px!important;padding:22px!important}}
/* Respect unavailable background actions even inside the mobile tool dock. */
.mobile-design #mobile-tool-dock #selection-toolbar.background-selected .toolbar-strip button[hidden]{display:none!important}
@media(max-width:760px){.mobile-design #mobile-tool-dock #selection-toolbar.background-selected .toolbar-strip button:is([data-action=copy-panel],[data-action=rotate]){display:grid!important;place-items:center}}

/* Detailvorschau-Status gut lesbar (Kay 21.10.2026, Claude): Desktop 15 px, Handy 14 px statt 11/9 px. Zeile bleibt fest hoch, Status ändert die Zeichenfläche nicht. */
.workspace #detail-feedback{height:42px;min-height:42px;flex:0 0 42px}
.workspace #detail-feedback #detail-state{position:static;right:auto;bottom:auto;transform:none;max-width:100%;height:34px;min-height:34px;margin:0;padding:0 18px;border:1px solid #cfe0d8;border-radius:999px;background:#f1f7f4;color:#17443a;font-size:15px;font-weight:600;line-height:32px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:none;opacity:1}
.workspace #detail-feedback #detail-state:before{width:13px;height:13px;margin-right:8px;vertical-align:-2px}
.workspace #detail-feedback #detail-state.detail-error{background:#fff;border-color:#166951;color:#166951}
@media (hover:hover) and (pointer:fine){.workspace #detail-feedback #detail-state.detail-error:hover{background:#edf5f1}}
.mobile-design .workspace #detail-feedback{height:36px;min-height:36px;flex-basis:36px}
.mobile-design .workspace #detail-feedback #detail-state{height:32px;min-height:32px;padding:0 14px;font-size:14px;line-height:30px}
.mobile-design .workspace #detail-feedback #detail-state:before{width:12px;height:12px;margin-right:7px}
/* 22.10.2026: Info statt Warnung, wenn Bilder erst nach der Bestellung verbessert werden */
#checks.info{background:#eef6f3;border-color:#cfe3dc;color:#1f5a4b}#checks.info .print-help-open{color:#1f6b57}
/* Etappe 3 (Claude, 22.10.2026): Ladeanzeigen, Upload-Gruppen, Grafiksuche, Modellwahl in Stufen */
.upload-groups{margin-top:14px}.upload-groups>.gallery{margin-top:0}
.upload-group{margin-top:16px;border-top:1px solid var(--line);padding-top:8px}
.upload-group>summary{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:13px;font-weight:700;color:#173a31;list-style:none;min-height:40px}
.upload-group>summary::-webkit-details-marker{display:none}
.upload-count{background:#eef5ef;color:#166951;border-radius:10px;padding:1px 8px;font-size:11px;font-weight:700}
.upload-group>.gallery{margin-top:6px}.upload-empty{margin:4px 0 0}
.gallery-section{grid-column:1/-1;margin:6px 0 -2px;font-size:11px;font-weight:700;color:#60736c;letter-spacing:.03em}
img.thumb-loading{background:linear-gradient(90deg,#e9f0ec 25%,#f7faf8 50%,#e9f0ec 75%);background-size:200% 100%;animation:thumb-shimmer 1.2s linear infinite;border-radius:6px}
img.thumb-failed{background:#eef2f0;border-radius:6px}
@keyframes thumb-shimmer{to{background-position:-200% 0}}
.gallery-tile>button.placing{border-color:#166951;box-shadow:0 0 0 2px #1669512e}
#handles button.pending{border:calc(2px * var(--view-inverse,1)) dashed #166951b3}
#handles button.pending::after{content:'';position:absolute;left:50%;top:50%;width:calc(28px * var(--view-inverse,1));height:calc(28px * var(--view-inverse,1));transform:translate(-50%,-50%);box-sizing:border-box;background:#ffffffeb;border:calc(4px * var(--view-inverse,1)) solid #cfe3da;border-top-color:#166951;border-radius:50%;box-shadow:0 0 0 calc(1px * var(--view-inverse,1)) #0003,0 1px 4px #0004;animation:pending-spin .9s linear infinite}
@keyframes pending-spin{to{transform:translate(-50%,-50%) rotate(360deg)}}
#next.working{cursor:progress}
#next.working::before{content:'';display:inline-block;width:12px;height:12px;margin-right:8px;vertical-align:-1px;border:2px solid #ffffff66;border-top-color:#fff;border-radius:50%;animation:ai-transfer-spin .8s linear infinite}
#model-chooser{display:grid;gap:14px;margin:2px 0 12px}
.model-step{display:grid;gap:7px}.model-step-label{font-size:12px;font-weight:700;color:#4e625b}
.model-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(98px,1fr));gap:7px}
.model-tiles button{min-height:44px;padding:8px 6px;border:1px solid #cfdcd5;border-radius:8px;background:#fff;font-size:12px;line-height:1.2;color:#173a31}
.model-tiles button[aria-pressed=true]{border-color:#166951;background:#eaf4ee;box-shadow:inset 0 0 0 1px #166951;font-weight:700}
.model-tiles button:disabled{opacity:.55;cursor:not-allowed}
@media(prefers-reduced-motion:reduce){img.thumb-loading,#handles button.pending::after,#next.working::before{animation:none}}
.draft-item{position:relative}
#draft-list .draft-item>.draft-card{padding-right:58px}
#draft-list button.draft-delete{position:absolute;right:8px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;margin:0;padding:10px;border:1px solid #e3cfcf;border-radius:50%;background:#fff;color:#963536}
#draft-list button.draft-delete svg{width:20px;height:20px}
#draft-list button.draft-delete:focus-visible{background:#fbefef;border-color:#c98f8f}@media (hover:hover) and (pointer:fine){#draft-list button.draft-delete:hover{background:#fbefef;border-color:#c98f8f}}
/* Ampel für hochgeladene Bilder (Claude, 22.10.2026) */
#checks.soft{background:#fff8e6;border-color:#f0d79b;color:#6b4d00}
#checks.soft .print-help-open{color:#7a5600;font-weight:700}
.print-issue.print-soft{border-left:4px solid #e0a800}
.print-issue.print-soft.accepted{opacity:.75}
.print-soft-accepted{align-self:center;font-size:12px;color:#5d6f67}
#quality-light{display:grid;gap:8px;margin:0 0 12px;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:#f7faf8;font-size:13px}
#quality-light .quality-text{font-weight:700}
#quality-light .quality-dot{display:inline-block;width:11px;height:11px;border-radius:50%;margin-right:8px;vertical-align:-1px;background:#1f9d55}
#quality-light.quality-yellow{background:#fff8e6;border-color:#f0d79b}#quality-light.quality-yellow .quality-dot{background:#e0a800}
#quality-light.quality-red{background:#fdeeee;border-color:#e8b9b9}#quality-light.quality-red .quality-dot{background:#c62828}
#quality-light .quality-actions{display:flex;flex-wrap:wrap;gap:8px}#quality-light .quality-actions button{min-height:40px;font-size:12px;padding:8px 12px}
.proof-dialog{max-width:min(520px,calc(100vw - 24px))}
.proof-dialog .proof-frame{display:flex;justify-content:center;align-items:center;min-height:160px;padding:10px;background:repeating-conic-gradient(#eef1ef 0 25%,#fff 0 50%) 0 0/16px 16px;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.proof-dialog .proof-frame img{display:block;max-width:none;image-rendering:auto}
.proof-dialog .proof-info{font-size:13px;margin:10px 0 0}
.soft-confirm{margin-top:12px;padding:12px;border:1px solid #f0d79b;border-radius:9px;background:#fff8e6}
.soft-confirm p{margin:0 0 8px;font-size:13px;color:#6b4d00}.soft-confirm .confirm{margin:0}
/* KI-Übertragung: fertige Flächen und Benachrichtigung (Claude, 22.10.2026) */
#ai-transfer-dialog .ai-transfer-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:8px;margin:4px 0 14px;max-height:220px;overflow:auto}
#ai-transfer-dialog .ai-transfer-thumbs figure{margin:0;display:grid;gap:3px;justify-items:center;animation:ai-thumb-in .22s cubic-bezier(.23,1,.32,1) both}
#ai-transfer-dialog .ai-transfer-thumbs img{width:64px;height:72px;object-fit:contain;background:#eef2f0;border:1px solid var(--line);border-radius:6px}
#ai-transfer-dialog .ai-transfer-thumbs figcaption{font-size:10px;line-height:1.2;color:#5d6f67;text-align:center;max-width:72px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#ai-transfer-dialog .ai-transfer-notify{width:100%;margin-top:14px;min-height:44px}
@keyframes ai-thumb-in{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){#ai-transfer-dialog .ai-transfer-thumbs figure{animation:none}}
/* Erklärvideo in der KI-Übertragung (Claude, 22.10.2026) */
#ai-transfer-dialog{width:min(560px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);overflow:auto}
#ai-transfer-dialog .ai-transfer-video{position:relative;margin:4px 0 14px;border-radius:12px;overflow:hidden;background:#0f3d2e}
#ai-transfer-dialog .ai-transfer-video[hidden]{display:none}
#ai-transfer-dialog .ai-transfer-video video{display:block;width:100%;height:auto;aspect-ratio:1280/816;background:#0f3d2e}
#ai-transfer-dialog .ai-transfer-sound{position:absolute;top:8px;right:8px;min-height:44px;padding:8px 14px;border:0;border-radius:22px;background:#fffffff0;color:#174c40;font-weight:700;font-size:13px;line-height:1;box-shadow:0 2px 10px #0003;cursor:pointer}
#ai-transfer-dialog .ai-transfer-sound:focus-visible{outline:3px solid #f26a1b;outline-offset:2px}
@media(max-width:480px){#ai-transfer-dialog{padding:18px}#ai-transfer-dialog h2{margin-bottom:14px}}
#notice-dialog{max-width:600px;overflow:auto}#notice-dialog ul{margin:0 0 12px;padding-left:20px}#notice-dialog li{margin:0 0 6px}#notice-dialog h3{margin:14px 0 4px;font-size:15px}#notice-dialog p{margin:0 0 8px}#notice-dialog .dialog-actions{display:flex;justify-content:center}#notice-dialog .dialog-actions button{flex:0 0 auto;width:auto;min-width:160px;margin:0 auto}
.color-swatch>input[type=button]{width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;padding:0!important;margin:0!important;border-radius:50%!important;font-size:0!important;display:block;box-sizing:border-box}
.color-swatch>.color-edit-marker{right:-5px!important;bottom:-5px!important;width:15px;height:15px;display:grid;place-items:center;border:1px solid #cadbd6;border-radius:50%!important;font-size:10px!important;line-height:1!important;box-shadow:0 1px 2px rgba(0,0,0,.15)}
.top-actions{display:flex;align-items:center;gap:18px;margin-left:auto}#new-design{white-space:nowrap}#new-design .nd-short{display:none}@media(max-width:760px),(max-width:980px) and (max-height:600px){.top .top-actions{grid-area:1/3;justify-self:end;gap:12px;margin:0}#new-design .nd-long{display:none}#new-design .nd-short{display:inline}}
.nd-dialog{max-width:640px;width:calc(100vw - 32px);overflow:auto}.nd-lead{margin:-4px 0 14px;color:#4c5f58;font-size:14px}.nd-kinds{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}.nd-kind{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 8px 10px;border:1px solid #dce5df;border-radius:12px;background:#fff;cursor:pointer;font-weight:700;color:#192725;min-height:0;transition:border-color .15s,box-shadow .15s}.nd-kind img{width:100%;aspect-ratio:1;object-fit:contain;background:#fff;border-radius:8px}@media (hover:hover) and (pointer:fine){.nd-kind:hover{border-color:#9fbfb2}}.nd-kind.active{border-color:#166951;box-shadow:0 0 0 2px #166951 inset;background:#f2f8f5}.nd-kind.active span{color:#166951}.nd-body{display:grid;grid-template-columns:1fr 190px;gap:16px;align-items:start;padding:14px;border:1px solid #e3ebe7;border-radius:12px;background:#f8faf9}.nd-body.solo{grid-template-columns:1fr;justify-items:center}.nd-options[hidden]{display:none}.nd-group{margin-bottom:12px}.nd-group:last-child{margin-bottom:0}.nd-label{display:block;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#166951;margin-bottom:6px}.nd-chips{display:flex;flex-wrap:wrap;gap:6px}.nd-chip{border:1px solid #cfdcd6;background:#fff;border-radius:999px;padding:7px 14px;min-height:0;font-size:13px;color:#192725;cursor:pointer}@media (hover:hover) and (pointer:fine){.nd-chip:hover{border-color:#166951}}.nd-chip.active{background:#166951;border-color:#166951;color:#fff}.nd-preview{margin:0;text-align:center}.nd-preview img{width:100%;max-width:190px;aspect-ratio:1;object-fit:contain;background:#fff;border-radius:10px;border:1px solid #e3ebe7}.nd-body.solo .nd-preview img{max-width:220px}.nd-preview figcaption{margin-top:6px;font-size:12px;font-weight:700;color:#166951}.nd-foot{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.nd-foot .nd-go{min-width:180px}.nd-cancel{background:none;border:0;color:#4c5f58;text-decoration:underline;min-height:0;padding:8px}.nd-hint{margin:10px 0 0;font-size:12px;color:#6b7c75;text-align:right}@media(max-width:600px){.nd-kinds{grid-template-columns:repeat(2,minmax(0,1fr))}.nd-kind img{aspect-ratio:auto;height:92px}.nd-body{grid-template-columns:1fr}.nd-preview{display:none}.nd-body.solo .nd-preview{display:block}.nd-foot{flex-direction:column-reverse}.nd-foot .nd-go{width:100%}.nd-hint{text-align:left}}
/* Druckampel orange und Vorschau „So sieht es gedruckt aus“ (Joe, 09.11.2026) */#quality-light.quality-orange{background:#fff1e6;border-color:#f3c39b}#quality-light.quality-orange .quality-dot{background:#e8590c}.print-issue.print-soft.print-strong{border-left-color:#e8590c}.proof-dialog .proof-mode{display:flex;gap:6px;margin:0 0 10px}.proof-dialog .proof-mode[hidden]{display:none}.proof-dialog .proof-mode button{flex:1;min-height:40px;font-size:13px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:inherit;cursor:pointer}.proof-dialog .proof-mode button[aria-pressed=true]{background:#166951;border-color:#166951;color:#fff}
