@font-face{font-family:Readex;src:url("assets/readex-regular.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:Readex;src:url("assets/readex-semibold.woff2") format("woff2");font-weight:600 800;font-display:swap}
:root{font-family:Readex,Tahoma,Arial,sans-serif;color:#24282a;background:#f7f6f2;--green:#185d49;--dark:#134a3a;--line:#d7d9d3;--muted:#59645e}
*{box-sizing:border-box}
body{margin:0;min-width:280px}
button,input{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.55;cursor:wait}
button:focus-visible,a:focus-visible,input:focus-visible+.design-card{outline:3px solid #2f826c;outline-offset:3px}
[hidden]{display:none!important}
.icon-library{position:absolute;width:0;height:0;overflow:hidden}
.icon{width:1.2rem;height:1.2rem;display:inline-block;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.masthead{position:relative;isolation:isolate;background:linear-gradient(110deg,#153d37,#124b3d 57%,#113e34);color:white;overflow:hidden;border-bottom:4px solid #bda679}
.mast-inner,.workspace,.footer{width:min(1232px,calc(100% - 7vw));margin-inline:auto}
.mast-inner{position:relative;min-height:164px;padding:26px 0 28px;display:flex;align-items:center;justify-content:space-between}
.mast-pattern{position:absolute;z-index:-1;width:440px;height:440px;object-fit:contain;left:0;top:-182px;opacity:.12;pointer-events:none}
.brand{width:89px;height:55px;object-fit:contain}
.mast-copy>*{margin:0}
.event-name{font-size:.86rem;color:#e5ceb0}.event-name span{margin:0 4px}
h1{font-size:clamp(2.1rem,3.5vw,3.25rem);font-weight:600;line-height:1.4}
.workspace{display:grid;grid-template-columns:minmax(320px,.9fr) minmax(0,1.5fr);gap:20px;align-items:start;margin-block:28px 22px;scroll-margin-top:12px}
.editor,.preview{min-width:0;border:1px solid var(--line);border-radius:14px;background:white}
.editor{overflow:hidden}
.step-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid var(--line);background:#f8faf7}
.step-nav button{border:0;border-bottom:3px solid transparent;background:transparent;color:var(--muted);padding:12px 2px 10px;font-size:.85rem;display:flex;align-items:center;justify-content:center;gap:6px;min-height:48px}
.step-nav button:hover{background:#edf3ee}.step-nav button:focus-visible{outline-offset:-4px}
.step-nav button[aria-current]{color:var(--dark);background:#edf3ee;border-bottom-color:var(--green);font-weight:600}
.step-nav b{display:grid;place-items:center;border:1px solid #bbc9bf;border-radius:100%;width:23px;height:23px;font-size:.85rem}
.step-nav button[aria-current] b{background:var(--dark);color:white;border-color:var(--dark)}
.panels{padding:21px}
h2{font-size:1.18rem;font-weight:600;line-height:1.6;margin:0}
h2[tabindex]:focus{outline:0}
.dropzone{margin:13px 0 9px;border:1.5px dashed #8cae9b;border-radius:10px;width:100%;display:flex;align-items:center;justify-content:center;gap:12px;text-align:start;padding:28px 12px;background:#f5f9f5;color:var(--dark);min-height:108px}
.dropzone:hover,.dropzone.dragging{border-color:var(--green);background:#e7f1e9}
.dropzone{position:relative}
#file-input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:1}
.dropzone:focus-within{outline:3px solid var(--green);outline-offset:3px}
.dropzone strong,.dropzone small{display:block}
.dropzone>span:last-child{min-width:0}
#source-caption{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dropzone small{color:var(--muted);font-size:.8rem;margin-top:4px}
.dot{padding-inline:2px}
.upload-icon{height:40px;width:40px;display:grid;place-items:center;background:#e6eee6;border-radius:10px;flex-shrink:0}
.mode{border:0;padding:0;margin:12px 0 15px;min-width:0}
.mode legend,#pan-label{display:block;margin-bottom:6px;font-size:.89rem;color:var(--muted)}
.segments{display:grid;grid-template-columns:1fr 1fr;padding:4px;background:#eef1eb;border-radius:9px}
.segments label,.choice{position:relative;cursor:pointer;min-width:0}
.segments input,.choice input{position:absolute;opacity:0;width:1px;height:1px}
.segments span{display:block;text-align:center;padding:8px;color:#45574c;font-size:.9rem;border-radius:6px}
.segments input:checked+span{background:white;color:var(--dark);box-shadow:0 1px 4px #123f3425;font-weight:600}
.segments input:focus-visible+span{outline:2px solid var(--green)}
.choices{display:grid;grid-template-columns:repeat(auto-fill,minmax(91px,1fr));gap:8px;margin:4px 0 16px}
.design-card{display:flex;flex-direction:column;height:100%;background:white;border:1px solid var(--line);border-radius:8px;overflow:hidden;color:#263e33}
.design-image{display:grid;place-items:center;height:63px;background:#edf0e9;padding:4px}
.thumb{display:block;width:55px;height:55px;object-fit:contain}
.round-gallery .thumb{border-radius:50%}
.design-name{margin-block:auto;display:block;padding:5px 3px;text-align:center;font-size:.8rem;line-height:1.55}
.choice input:checked+.design-card{outline:2px solid var(--green);outline-offset:0}
.choice:hover .design-card{border-color:#7b9e8e}
.selection-mark{display:none;position:absolute;top:4px;left:4px;width:16px;height:16px;border:1px solid white;border-radius:50%;align-items:center;justify-content:center;background:var(--green);color:white}
.selection-mark .icon{width:11px;height:11px;stroke-width:3}.choice input:checked+.design-card .selection-mark{display:flex}
#crop-tools{padding:12px 18px;border-top:1px solid var(--line)}
.zoom-label{display:flex;justify-content:space-between;align-items:center;color:var(--dark)}
#zoom-value{font-variant-numeric:tabular-nums}
.pan-range button{width:44px;height:44px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--green);font-size:1.25rem}
#continue-frame{margin-top:8px}
.pan-range{display:flex;align-items:center;gap:8px;color:var(--dark);font-size:.82rem}
.pan-range input{flex:1;min-width:0;min-height:38px;accent-color:var(--green);cursor:pointer}
.hint,.status{font-size:.86rem;line-height:1.7;color:var(--muted);margin:.5rem 0}
.status{color:var(--green);margin-bottom:0}.status:empty{margin:0}.status.error{color:#9a3333}
.exports{display:grid;gap:7px;margin-top:14px}
.primary,.secondary,.file-share{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;border:0;border-radius:8px}
.primary{background:var(--green);color:white;font-weight:600;padding:10px}
.primary:hover{background:var(--dark)}
.primary bdi{font-size:.74rem;font-weight:400;border-inline-start:1px solid #ffffff55;padding-inline-start:9px}
.secondary{background:transparent;color:var(--dark);font-size:.87rem}
.secondary:hover,.file-share:hover{background:#e8f1e8}
.secondary .icon{width:1rem;height:1rem}
.file-share{border:1px solid #9bb7a7;background:#f7faf7;color:var(--dark);font-weight:600}
.preview{display:flex;flex-direction:column;overflow:hidden;container-type:inline-size;align-self:start;position:sticky;top:12px}
.preview-bar,.caption{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-inline:18px}
.preview-bar{min-height:55px;border-bottom:1px solid var(--line)}
.preview-bar h2,.preview-bar button{display:inline-flex;align-items:center;gap:7px}
.preview-bar h2 .icon{color:var(--green)}
.preview-bar button{background:white;border:1px solid var(--line);color:#3e4b45;border-radius:6px;font-size:.82rem;padding:6px 9px;white-space:nowrap;min-height:36px}
.preview-bar button:hover,.preview-bar button[aria-pressed="true"]{background:#e9f1ec;color:var(--dark)}
.preview-bar button .icon{width:1rem}
.stage{height:clamp(310px,35vw,465px);display:grid;place-items:center;background-color:#eceee8;background-image:radial-gradient(#bfcbc1 .85px,transparent .85px);background-size:10px 10px;overflow:hidden}
.photo-wrap{position:relative;box-shadow:0 5px 18px #27382d26;line-height:0;background:repeating-conic-gradient(#eceeea 0% 25%,white 0% 50%) 0 0/16px 16px}
.photo-wrap.round{border-radius:50%;overflow:hidden}
.workspace[data-step="2"] .photo-wrap[data-axis="x"]{touch-action:pan-y;cursor:grab}.workspace[data-step="2"] .photo-wrap[data-axis="y"]{touch-action:pan-x;cursor:grab}
.workspace[data-step="2"] .photo-wrap[data-axis="xy"]{touch-action:none;cursor:grab}
.workspace[data-step="3"] #compare{display:none}
.photo-wrap.dragging{cursor:grabbing}
#photo,.overlay{display:block;width:100%;height:100%;user-select:none}
.overlay{position:absolute;inset:0;pointer-events:none}
.caption{padding-block:10px;border-top:1px solid var(--line);font-size:.78rem;color:var(--muted);flex-wrap:wrap}
.share-label{display:block;font-size:.8rem;margin-bottom:4px}
.share-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.share{display:inline-flex;align-items:center;gap:7px;font-size:.83rem;white-space:nowrap;color:var(--dark);border:1px solid #b1c6bb;background:#f5f9f6;border-radius:20px;text-decoration:none;padding:6px 10px;min-height:36px}
.share:hover{background:#e5efe8}.brand-icon{width:20px;height:20px;flex:none}
#dimensions{white-space:nowrap;font-variant-numeric:tabular-nums}
@container(max-width:405px){.share-prefix{display:none}.preview-bar{padding-inline:10px}.preview-bar h2{font-size:1rem}}
.footer{border-top:1px solid var(--line);padding:14px 1px 24px;font-size:.82rem;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px 16px}
.footer a{color:var(--green);text-underline-offset:4px}
@media(max-width:760px){
  .mast-inner,.workspace,.footer{width:calc(100% - 26px)}
  .mast-inner{min-height:138px;padding-block:17px;gap:10px}.brand{width:62px;height:42px}
  .mast-pattern{width:238px;height:238px;top:-102px}
  .workspace{display:flex;flex-direction:column;gap:12px;margin-block:14px}
  .editor{display:contents}.step-nav,.panels,.preview{width:100%}
  .step-nav,.panels{border:1px solid var(--line);border-radius:11px;overflow:hidden;background:white}
  .step-nav{order:0}.panels{order:1;padding:15px}.preview{order:2;position:static}
  .workspace[data-step="3"] .preview{order:1}.workspace[data-step="3"] .panels{order:2}
  .dropzone{padding:15px 9px;min-height:74px;margin-block:8px 2px}
  .stage{height:clamp(222px,69vw,354px)}
  .preview-bar{min-height:47px}.caption{padding-inline:10px;gap:6px}
  .share{min-height:44px;font-size:.8rem}
  .choices{grid-template-columns:repeat(auto-fill,minmax(77px,1fr))}.design-image{height:54px}.thumb{height:48px;width:48px}
}
@media(max-width:350px){
  .step-nav button{font-size:.76rem;gap:3px}.step-nav b{width:19px;height:19px}
  .preview-bar h2 .icon{display:none}
}
