*{box-sizing:border-box}
body{margin:0;background:#fbf7f2;color:#251b29;font:1rem/1.5 system-ui,sans-serif}
main{max-width:65rem;margin:auto;padding:1.5rem clamp(.85rem,4vw,3rem) 4rem}
main>a{color:#52224c;font-weight:700}
h1{font:700 clamp(2.6rem,6vw,4rem)/1.05 Georgia,serif;letter-spacing:-.045em;margin:1.4rem 0}
.project{border:1px solid #cfc2bb;background:white;border-radius:1rem;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
.project-stage{background:#e8dbdf;padding:clamp(.8rem,2vw,1.6rem);min-width:0}
.canvas-box{position:relative;width:min(100%,27rem);aspect-ratio:612/792;margin:auto;background:#fff;box-shadow:0 5px 18px #30182e34;overflow:hidden;touch-action:pan-y}
.project-canvas{position:absolute;top:0;left:0;width:612px;height:792px;transform-origin:top left}
.project-canvas>.kz-page{display:block;position:relative;width:612px!important;height:792px!important;max-width:none!important;aspect-ratio:auto;overflow:hidden;margin:0;container-type:size}
.project-panel{padding:clamp(1rem,3vw,2rem)}
.project-panel h2{font:700 clamp(1.7rem,4vw,2.6rem)/1.05 Georgia,serif;margin:.5rem 0 1rem}
.project-panel small{color:#625058;font-weight:650}
.controls{display:flex;justify-content:space-between;align-items:center;gap:.3rem;max-width:27rem;margin:.9rem auto 0;color:#352433}
.controls span{font-weight:600}
.project button,.project select,.project input,.project textarea{font:inherit}
.project button,.project summary{cursor:pointer}
.project button{border-radius:.45rem;min-height:44px;border:1px solid #745968;padding:.55rem .85rem;background:white;color:#382733}
.project button:disabled{opacity:.5;cursor:default}
.project .primary{background:#482440;color:white;border-color:#482440;font-weight:700}
.project form{margin-top:1rem}.project label{display:block;font-weight:650}
.project input,.project textarea{width:100%;margin:.35rem 0 .7rem;padding:.6rem;border:1px solid #776772;border-radius:.35rem;color:#281d25;background:white}
.project textarea{min-height:6rem}.project summary{padding:.65rem 0;font-weight:650}
.project button+button{margin-left:.4rem}
:focus-visible{outline:3px solid #086475;outline-offset:3px}
[hidden]{display:none!important}
@media(max-width:660px){.project{display:flex;flex-direction:column}.project-panel{order:-1}.project-panel h2{margin:.25rem 0 .6rem}.project-panel p:empty{display:none}}
.project-panel select{width:100%;max-width:100%;min-height:44px;background:white;color:#382733;border:1px solid #776772;border-radius:.35rem;margin:.3rem 0 .7rem;padding:.35rem}
.project-panel input[type=range]{padding:0;margin:.1rem 0;min-height:32px;accent-color:#482440}
.project-panel form>div{margin-bottom:.6rem}
.project-canvas.editing [data-edit-part]{cursor:pointer;pointer-events:auto}
.project-canvas.editing [data-edit-part]:hover,.project-canvas.editing [data-selected-part]{outline:3px dashed #fff;box-shadow:0 0 0 4px #382733;outline-offset:0}
.project-canvas.editing img[data-edit-part]{touch-action:none;cursor:grab}
.project-canvas.editing img[data-edit-part]:active{cursor:grabbing}

/* The page takes the height left over after the title and tools are laid out. */
main{max-width:48rem;padding:1rem clamp(.6rem,3vw,1.5rem) 2rem}
main>h1{font-size:clamp(1.75rem,4vw,2.35rem);margin:.25rem 0 .65rem}
#notice:empty,.project-panel p:empty{display:none}
.project{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(8rem,1fr) auto auto;height:min(56rem,calc(var(--view-height,100dvh) - 7rem));min-height:22rem}
.project:has(.project-panel>details[open]){height:auto;grid-template-rows:auto min(47vh,28rem) auto auto}
.project-heading{padding:.55rem .85rem}
.project-heading h2{font:700 clamp(1.15rem,3.6vw,1.55rem)/1.12 Georgia,serif;margin:0}
.project-stage{position:relative;min-height:0;padding:.35rem;display:grid;place-items:center;container-type:size}
.canvas-box{width:min(100cqw,77.2727cqh);max-width:100%;max-height:100%}
.controls{width:100%;max-width:none;margin:0;padding:.2rem .75rem;background:#f6f0f2}
.project-panel{order:initial;padding:.35rem .75rem .6rem}
.project-panel>details{display:inline-block;vertical-align:middle;margin-left:.6rem}
.project-panel>details[open]{display:block;margin:0}
.project.is-editing{height:var(--view-height,100dvh);max-height:62rem;min-height:min-content;grid-template-rows:auto minmax(4rem,1fr) auto;padding-bottom:env(safe-area-inset-bottom,0px)}
.project.is-editing>.controls{display:none}
main:has(.project.is-editing){padding-top:0;padding-bottom:0}
main:has(.project.is-editing)>:is(a,h1,#notice),#projects:has(.is-editing)>:not(.is-editing){display:none}
.project-panel .part-form{display:grid;grid-template-columns:1fr auto;gap:.3rem .45rem;margin:0}
.part-form>label,.part-form>.part-fields{grid-column:1/-1;min-width:0}
.project .part-form label{font-size:.82rem;line-height:1.2}
.part-form select,.part-form textarea{font-size:16px}
.project .part-form select,.project .part-form textarea{margin:.12rem 0 0;min-height:2.15rem;padding:.25rem .4rem}
.project .part-form textarea{height:3.5rem;resize:vertical}
.project .part-form button{min-height:2.5rem;padding:.3rem .75rem;margin:0}
.project .part-form>div{margin:0}
.photo-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:.2rem .75rem}
.photo-fields>label:first-child{grid-area:1/1}.photo-fields>label:nth-last-child(2){grid-area:1/2}
.photo-fields>details{grid-area:2/1}.photo-fields>button{grid-area:2/2;justify-self:end}
.photo-fields>details[open]{grid-column:1/-1;padding-right:0}
.photo-fields>details[open]+label+button{align-self:start}
.project .photo-fields summary{padding:.32rem 0;font-size:.85rem}
.project .photo-fields input[type=range]{display:block;width:100%;margin:0;min-height:1.8rem}
@media(max-width:660px){main{padding:.4rem .45rem 1rem}.project.is-editing{border-radius:.55rem}.project-heading{padding:.5rem .65rem}.project-panel{padding:.35rem .6rem}.project-panel>p{margin:.25rem 0}}
.canvas-box.spread{width:min(100cqw,154.5454cqh);aspect-ratio:1224/792}
.project-panel .part-form>label{grid-column:1/-1}
.project-panel>details[open] form{max-width:34rem;margin:.35rem auto}
.project:has(.project-panel>details[open]){height:min(55rem,var(--view-height,100dvh));grid-template-rows:auto minmax(5rem,1fr) auto auto}
.project-panel>details[open] textarea{min-height:4rem;height:4rem}
 .project-canvas img[data-edit-part]{cursor:pointer}
.project-canvas.editing img[data-edit-part]{touch-action:pan-y}
.part-fields details[open]{display:grid;grid-template-columns:1fr 1fr;gap:.15rem .65rem}
.part-fields details summary,.part-fields details label:first-of-type{grid-column:1/-1}
.project .part-fields input[type=range]{width:100%;min-height:24px}
.project-canvas [data-edit-part^="t-"]{cursor:text}

.saved-print-proof{width:min(42rem,calc(100% - 1.5rem));padding:0;border:1px solid #4c1730;border-radius:1.25rem;background:#fffaf6;color:#4c1730;font:1rem/1.45 "DM Sans",Arial,sans-serif;box-shadow:0 24px 80px #37122955}
#saved-print-proof::backdrop{background:#32142dbb}
.proof-header{position:relative;display:flex;align-items:center;gap:1.1rem;padding:1.25rem 4.4rem 1.25rem clamp(1rem,4vw,1.8rem);background:#f6bfd4;border-bottom:1px solid #d39cb1}
.proof-heading{flex:1;min-width:0}
.proof-brand{margin:0 0 .55rem;font:700 1.3rem/1 Georgia,serif;letter-spacing:-.045em}
.proof-brand span{display:inline-block;margin-left:.45rem;padding:.2rem .45rem;background:#fbff55;color:#331324;font:700 .84rem/1 "Keepzi Demo Barlow Condensed",Arial,sans-serif;letter-spacing:.06em;text-transform:uppercase;transform:rotate(-4deg)}
.proof-header h2{margin:0;font:700 clamp(1.65rem,5vw,2.6rem)/1.04 Georgia,serif;letter-spacing:-.04em}
.proof-issue{margin:.35rem 0 0;font-size:.92rem;overflow-wrap:anywhere}
.proof-thumbnail{display:block;width:clamp(2.75rem,9vw,4.7rem);height:auto;max-height:6.4rem;border:2px solid #fff9ef;box-shadow:2px 3px 0 #c4879f;transform:rotate(4deg)}
.proof-close{position:absolute;right:.65rem;top:.65rem;width:44px;height:44px;border:1px solid #9f627b;border-radius:50%;background:#fff9ef;color:#4c1730;font:500 1.6rem/1 Arial,sans-serif;cursor:pointer}
.proof-body{padding:1rem clamp(1rem,4vw,1.8rem) 1.3rem}
.proof-order{font-size:.88rem;padding-bottom:.55rem;border-bottom:1px solid #dfc3cf;color:#68324e}
.proof-order summary{cursor:pointer;min-height:44px;align-content:center;font-weight:700}
.proof-order p{margin:.15rem 0 .65rem;overflow-wrap:anywhere}
.proof-status{margin:.85rem 0 .5rem;font-weight:700}
.proof-progress{display:block;width:100%;height:.45rem;margin:.65rem 0;accent-color:#ad205e}
.proof-files{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}
.proof-file{display:block;padding:.7rem .8rem;border:1px solid #cb9bb0;border-radius:.6rem;color:#48203a;background:white;text-decoration:none}
.proof-file strong{font-size:1rem;text-decoration:underline;text-underline-offset:3px}
.proof-file:hover,.proof-file:focus-visible{background:#fce9f1;border-color:#8d2757}
.proof-file small{display:block;margin-top:.22rem;font-size:.82rem;line-height:1.35;color:#65465a}
.proof-file[data-proof-part="final"]{grid-column:1/-1;background:#fbf2ec;border-color:#dfc8c0}
.proof-file[data-proof-part="final"] strong{font-size:.92rem}
@media(max-width:24rem){.proof-header{gap:.55rem;padding-right:3.8rem}.proof-files{grid-template-columns:1fr}.proof-file{padding:.5rem .7rem}}
.proof-approval{display:grid;gap:.8rem;margin-top:1rem;padding-top:1rem;border-top:1px solid #e1beca}
.proof-approval label{display:flex;align-items:flex-start;gap:.55rem}
.proof-approval input{width:1.1rem;height:1.1rem;flex:none;accent-color:#4c1730}
.proof-submit{min-height:48px;padding:.65rem 1rem;border:0;border-radius:999px;background:#4c1730;color:#fff;font:700 1rem/1.2 "DM Sans",Arial,sans-serif;cursor:pointer}
.proof-submit:disabled{background:#e7d6df;color:#5a3d50;cursor:default}

.project-heading{display:flex;align-items:center;justify-content:space-between;gap:.35rem .85rem;flex-wrap:wrap}
.project .project-order-action{display:inline-flex;align-items:center;min-height:44px;padding:.45rem .9rem;border:1px solid #4c1730;border-radius:999px;background:#f8c7d7;color:#4c1730;font-weight:750;text-decoration:none}
.proof-explainer{margin:0;max-width:58ch}
.project-canvas.editing img[data-sticker]{pointer-events:auto!important;cursor:pointer}

.project-canvas .saved-proof-artwork{position:absolute;inset:0;width:100%;height:100%;z-index:50;pointer-events:none}

.saved-print-proof{width:100%;margin:1rem 0 2rem;overflow:hidden;box-shadow:none}
.proof-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));list-style:none;background:#fff9ef;color:#411b35;border:1px solid #d6b4c4;border-radius:1rem;padding:1rem .35rem;margin:1rem 0 .7rem}
.proof-step{display:grid;justify-items:center;align-content:start;position:relative;text-align:center;font-size:.87rem;line-height:1.3}
.proof-step+.proof-step:before{content:"";position:absolute;right:50%;top:1rem;width:100%;border-top:2px solid #78465f}
.step-marker{z-index:1;display:grid;place-items:center;background:#fff9ef;border:2px solid #482039;border-radius:50%;width:2.1rem;height:2.1rem;margin-bottom:.45rem;font-weight:800}
.proof-step[data-done=true] .step-marker{background:#482039;color:white}
.proof-step[aria-current=step] .step-marker{background:#ffe94d;box-shadow:3px 3px #ef95b9}
.proof-step small{font-size:.75rem;color:#624050}.proof-step[aria-current=step] small{font-weight:750}

.magazine-pack{padding:1rem;background:#fff6ed;border-top:2px solid #451b36}.magazine-pack h2{font-family:Georgia,serif}.pack-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}.pack-grid a{color:#451b36;font-weight:700}.pack-grid img{display:block;width:100%;height:auto;margin-bottom:.3rem}
.fold-preview{margin:1rem 0;display:grid;grid-template-columns:1fr 1fr}.fold-preview img{width:100%;display:block}.fold-preview figcaption{grid-column:span 2;text-align:center;font-weight:650}

.print-progress{margin:1rem 0;background:#fff9ef;color:#411b35;border:1px solid #d6b4c4;border-radius:1rem}
.print-progress-status{margin:0;padding:.85rem .9rem 0;font-size:.96rem;font-weight:650}
.print-progress .proof-steps{grid-template-columns:repeat(5,minmax(0,1fr));margin:0;border:0;background:transparent}
.print-progress .proof-step{font-size:clamp(.69rem,2.7vw,.88rem)}
.print-progress .proof-step+.proof-step:before{border-color:#d6b4c4}
.print-progress .proof-step[data-done=true]:before,.print-progress .proof-step[aria-current=step]:before{border-color:#78465f}
.progress-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.trip-project{display:block;height:auto;min-height:0;grid-template-rows:none;padding:1rem;border:1px solid #c6cfdb;border-radius:1rem;background:#fffdf7;color:#172238;margin:1rem 0;max-width:42rem}.trip-project-cover{width:min(100%,330px);height:auto;aspect-ratio:11/8.5;object-fit:cover;border-radius:.5rem}.trip-project a{display:inline-block;padding:.8rem 1rem;min-height:44px;box-sizing:border-box;background:#1037c8;color:white;border-radius:.6rem;margin:.5rem 0;text-decoration:none}.trip-project a:focus-visible{outline:3px solid #8c3f00;outline-offset:3px}
