:root{font-family:Arial,Helvetica,sans-serif;color:#262622;background:#f7f5f0;font-synthesis:none;--accent:#254d43;--line:#dfded6}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,input,select{font:inherit}button,select{cursor:pointer}button{border:1px solid var(--line);border-radius:8px;padding:10px 15px;background:#fff;color:inherit}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d79b31;outline-offset:3px}header{display:flex;justify-content:space-between;align-items:center;padding:24px 5%;border-bottom:1px solid var(--line);font-size:13px}.brand{font-size:20px;font-weight:700;color:inherit;text-decoration:none}main{max-width:1260px;margin:auto;padding:30px 32px 150px}.intro{text-align:center;padding:14px 0 25px}.eyebrow{letter-spacing:2px;font-size:11px}.intro h1{font-family:Georgia,serif;font-weight:400;font-size:48px;letter-spacing:-1.5px;margin:16px 0}.intro p:last-child{color:#73736a}.settings{display:flex;align-items:center;gap:24px;padding:22px;background:#eeeee6;border-radius:12px}.settings>label:first-child{display:flex;flex-direction:column;gap:8px;font-size:12px;flex:1}select{padding:12px;border:1px solid #cecec5;background:#fff;border-radius:7px;max-width:100%}.border-choice{font-size:14px;display:flex;gap:7px;align-items:center}.border-choice small{color:#74746b}.primary{background:var(--accent);color:#fff;border-color:var(--accent);font-weight:600;padding:14px 24px}.collection-heading{display:flex;justify-content:space-between;align-items:center;margin-top:30px}.collection-heading h2{font-size:18px;font-weight:500}#status{font-size:13px;color:#74746b;min-height:18px}.error{color:#a33325;background:#fff0e8;padding:14px;border-radius:8px}.photos{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:25px}.photo-card{min-width:0;border:1px solid var(--line);border-radius:12px;padding:14px;background:#eeeee7}.photo-stage{height:245px;display:flex;align-items:center;justify-content:center;padding:15px 8px;width:100%;background:transparent;border:0}.photo-stage canvas{max-width:100%;max-height:100%;width:auto;height:auto;box-shadow:0 5px 12px #0002}.card-name{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#6c6c63;margin:12px 0 8px}.card-actions{display:flex;justify-content:space-between;gap:5px;align-items:center}.copies{display:flex;gap:8px;align-items:center}.copies button{padding:5px 11px}.copies span{min-width:16px;text-align:center}.edit{padding:6px 10px;font-size:12px}.remove{display:block;border:0;background:none;margin:8px auto 0;font-size:12px;color:#77776d;padding:6px}.quality-badge{font-size:11px;color:#9d4b1d;min-height:14px;text-align:center}.empty{text-align:center;padding:50px 20px}.empty-photo{display:flex;align-items:center;justify-content:center;width:105px;height:125px;background:white;border:8px solid #e9e7de;color:#b5b4a8;margin:0 auto;transform:rotate(-7deg);font-size:40px}.empty h2{font-family:Georgia,serif;font-weight:400;font-size:26px}.empty p{color:#75756c}.small{font-size:12px}.checkout{position:fixed;bottom:0;left:0;right:0;background:#fffefa;border-top:1px solid var(--line);padding:18px max(5%,calc((100% - 1196px)/2));display:flex;gap:20px;align-items:center;justify-content:space-between;z-index:5;box-shadow:0 -4px 24px #00000005}.checkout>div{display:flex;flex-direction:column;gap:5px}.checkout strong{font-size:23px}.checkout span{font-size:13px}.checkout small{font-size:12px;color:#8c6032}dialog{border:0;border-radius:16px;width:min(640px,95vw);max-height:94dvh;padding:22px;background:#faf9f5;color:inherit;overflow:auto}dialog::backdrop{background:#171c1ad9}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.modal-head h2{font-size:18px;font-weight:500}.modal-head button{font-size:12px}.crop-stage{display:flex;align-items:center;justify-content:center;background:#e5e5dd;margin:12px 0;padding:16px;height:39dvh;min-height:180px;border-radius:8px}.crop-stage canvas{max-width:100%;max-height:100%;touch-action:none;box-shadow:0 4px 15px #0002}.hint{text-align:center;font-size:12px;color:#78786d}.zoom{display:flex;align-items:center;gap:12px;font-size:13px}.zoom input{flex:1;min-width:0;accent-color:var(--accent)}.zoom output{width:35px}.crop-actions{display:flex;gap:10px;margin:14px 0}.crop-actions button{font-size:12px;flex:1}.filters{display:flex;gap:8px;overflow:auto;padding:4px 2px 10px}.filters button{min-width:72px;padding:8px 6px;font-size:12px}.filters button.active{background:var(--accent);color:#fff}#quality{font-size:12px;text-align:center}#quality.warn{color:#a33325}dialog>.primary{width:100%}.review-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;max-height:50dvh;overflow:auto;padding:8px}.review-photos figure{margin:0;text-align:center}.review-photos canvas{max-width:100%;max-height:160px}.review-photos figcaption{font-size:12px;padding:7px}.busy{pointer-events:none;opacity:.7}
@media(max-width:950px){.photos{grid-template-columns:repeat(3,minmax(0,1fr))}.settings{gap:14px}.photo-stage{height:220px}}
@media(max-width:650px){header{padding:18px 20px}header>span{font-size:11px}.brand{font-size:17px}main{padding:15px 16px 150px}.intro{padding:6px 0 18px}.intro h1{font-size:34px;letter-spacing:-1px}.intro p{font-size:13px}.settings{display:grid;grid-template-columns:1fr 1fr;padding:16px;gap:16px}.settings>label:first-child{grid-column:1/-1}.settings>.primary{font-size:13px;padding:12px}.border-choice{font-size:12px;flex-wrap:wrap}.photos{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.photo-card{padding:9px}.photo-stage{height:190px;padding:10px 4px}.card-actions{flex-wrap:wrap;justify-content:center;gap:10px}.card-name{text-align:center}.collection-heading{margin-top:22px}.checkout{padding:14px 16px calc(14px + env(safe-area-inset-bottom));gap:8px}.checkout>.primary{padding:14px;font-size:13px}.checkout strong{font-size:19px}dialog{padding:15px}.crop-stage{height:35dvh}.review-photos{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Studio 0.2: product entry, desktop sidebar and mobile bottom panels. */
@font-face{font-family:Photo-sans;src:url('../fonts/sans.ttf')}@font-face{font-family:Photo-serif;src:url('../fonts/serif.ttf')}@font-face{font-family:Photo-mono;src:url('../fonts/mono.ttf')}
:root{--accent:#244e43;background:#f5f2ec}header{position:sticky;top:0;height:72px;background:#fff;z-index:12;padding:12px 28px}header .brand{font-size:14px}header strong{font-size:17px;text-align:center}#save-project{font-size:13px}.studio-sidebar{position:fixed;left:0;top:72px;bottom:0;width:290px;background:#fff;border-right:1px solid var(--line);z-index:8;overflow:auto}.tool-tabs{display:flex;justify-content:space-around;border-bottom:1px solid var(--line);padding:14px 7px;gap:2px}.tool-tabs button{border:0;border-radius:0;padding:12px 8px;font-size:13px;background:transparent}.tool-tabs button[aria-pressed=true]{color:var(--accent);box-shadow:inset 0 -3px var(--accent);font-weight:700}.tool-panel{padding:22px;display:block;background:#fff;border-radius:0}.tool-panel h2{font-size:18px;margin:0}.tool-panel h3{font-size:14px}.tool-panel p,.tool-panel small{font-size:13px;line-height:1.6;color:#74746b}.panel-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.panel-close{display:none}.tool-panel>label{display:flex;flex-direction:column;font-size:13px;gap:10px;margin:16px 0}.tool-panel input[type=text]{width:100%;padding:12px;border:1px solid var(--line);border-radius:6px}.tool-panel .border-choice{flex-direction:row;align-items:center;flex-wrap:wrap}.tool-panel>.primary{width:100%;font-size:13px}.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:24px}.gallery button{padding:0;overflow:hidden;height:70px}.gallery img{width:100%;height:100%;object-fit:cover}.colors{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:6px}.colors button{width:40px;height:40px;border-radius:50%;padding:0}.colors button[aria-pressed=true]{outline:2px solid var(--accent);outline-offset:4px}.patterns{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:25px}.patterns button{font-size:12px;padding:8px}.patterns button[aria-pressed=true]{background:var(--accent);color:white}main{margin:0 0 0 290px;max-width:none;padding:20px 5% 145px}.collection-heading{margin-top:0}.photos{grid-template-columns:repeat(3,minmax(0,1fr));gap:30px}.photo-card{background:transparent;border:1px solid transparent;border-radius:8px;padding:14px 10px}.photo-card.selected{border-color:#c9d0c9}.photo-stage{height:280px;padding:10px}.photo-stage canvas{box-shadow:0 6px 16px #342e2026}.card-name{display:none}.card-actions{justify-content:center}.caption,.style-photo{display:block;background:none;border:0;text-align:center;width:100%;font-size:12px;padding:6px;color:#67675e}.style-photo{font-size:11px;text-decoration:underline}.checkout{left:290px;padding:16px 5%}.add-mobile{display:none}#crop{background:#202522;color:#fff;width:min(820px,98vw)}#crop .crop-stage{background:#171b18;height:45dvh}#crop .hint,#crop #quality{color:#ddd}#crop button:not(.primary){background:#343b36;color:white;border-color:#586057}#crop input{accent-color:#bfd1c0}.settings>label:first-child{display:block}
@media(min-width:1600px){.photos{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1100px) and (min-width:701px){.studio-sidebar{width:250px}main{margin-left:250px;padding-left:25px;padding-right:25px}.checkout{left:250px}.photos{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){header{height:60px;padding:10px 14px;gap:8px}header strong{font-size:14px}header .brand{font-size:12px}#save-project{padding:8px;font-size:12px}.studio-sidebar{position:static;width:auto;border:0;overflow:visible}.tool-tabs{position:fixed;bottom:calc(88px + env(safe-area-inset-bottom));left:0;right:0;height:55px;background:#fff;z-index:15;padding:0 12px;border-top:1px solid var(--line)}.tool-tabs button{flex:1}.tool-panel{display:none;position:fixed;bottom:calc(143px + env(safe-area-inset-bottom));left:0;right:0;max-height:50dvh;overflow:auto;z-index:16;border-radius:18px 18px 0 0;box-shadow:0 -10px 40px #0002;padding:20px 24px}.panel-open .tool-panel:not([hidden]){display:block}.panel-close{display:block;border:0;padding:4px 10px;font-size:22px}.panel-heading{margin-bottom:10px}.tool-panel h2{font-size:17px}.colors{grid-template-columns:repeat(9,1fr);gap:9px;overflow:auto;padding:8px 5px}.colors button{width:28px;height:28px}.patterns{margin-bottom:16px}.gallery{grid-template-columns:repeat(5,1fr);margin-top:14px}.gallery button{height:60px}main{margin:0;padding:12px 28px 235px}.photos{display:flex;flex-direction:column;gap:25px;max-width:360px;margin:auto}.photo-stage{height:330px;padding:14px}.photo-card{padding:10px}.collection-heading h2{font-size:14px}.collection-heading button{padding:7px 12px}#status{font-size:11px}.card-actions{flex-wrap:nowrap}.copies{gap:18px}.copies button{padding:7px 14px}.photo-card .edit{display:none}.checkout{left:0;height:calc(88px + env(safe-area-inset-bottom));padding:10px 18px calc(10px + env(safe-area-inset-bottom));z-index:15;background:#fff}.checkout strong{font-size:17px}.checkout span,.checkout small{font-size:10px}.checkout>.primary{padding:13px;font-size:13px;min-width:160px}.add-mobile{display:block;position:fixed;bottom:calc(159px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:7;border-radius:30px;box-shadow:0 3px 16px #0002;font-size:13px;white-space:nowrap}.panel-open .add-mobile{display:none}#crop{width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;border-radius:0;padding:15px 16px calc(15px + env(safe-area-inset-bottom))}#crop .crop-stage{height:45dvh}#crop .modal-head h2{font-size:16px}.empty{padding:40px 0}.review-photos{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 0.2.1: print and counter only, matching the reference. */
.photo-card,.photo-card.selected{border:0;background:transparent;padding:14px 10px}.print-wrap{position:relative;margin:0 auto 18px;max-width:100%;box-shadow:0 5px 20px #342e2012}.print-wrap .photo-stage{display:block;width:100%;height:100%;padding:0;border:0;border-radius:0}.print-wrap .photo-stage canvas{display:block;width:100%;height:100%;max-height:none;box-shadow:none}.print-wrap .caption{position:absolute;bottom:0;left:0;width:100%;padding:0;background:transparent;border:0;border-radius:0;font-family:Photo-serif,Georgia,serif;font-style:italic;font-size:10px;color:#262622}.quality-badge:empty{display:none}.card-actions{justify-content:center}.copies{gap:20px}.copies button{display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:0;border-radius:50%;background:#242424;color:#fff;font-size:20px;line-height:1}.copies span{font-size:13px;min-width:10px}.photo-card{align-self:start}.photos{align-items:start}.quality-badge{margin-bottom:8px}@media(max-width:700px){.photos{gap:35px}.print-wrap{width:200px!important}.photo-card{width:100%}.copies{gap:20px}.copies button{width:28px;height:28px}.print-wrap .caption{font-size:11px}}
/* 0.3 Monpic studio shell */
:root{--accent:#c65348;--studio-cream:#f7f4ee;--sidebar:400px;--rail:96px}body{background:var(--studio-cream)}.serif-ui{font-family:Georgia,serif}header{height:80px;padding:12px 28px;display:grid;grid-template-columns:minmax(290px,1fr) minmax(140px,1fr) minmax(120px,1fr);gap:12px}.header-start{display:flex;align-items:center;gap:22px;min-width:0}.back{font-size:25px;color:#242424;text-decoration:none}.brand{display:block;white-space:nowrap}header .brand{font-size:34px;letter-spacing:-2px;font-weight:800;color:var(--accent);font-family:Arial,Helvetica,sans-serif}#brand-logo{max-width:140px;max-height:46px;object-fit:contain}#autosave{font-size:12px;max-width:170px;line-height:1.4;color:#57564f}#autosave.save-error{color:#a32424}.header-title{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;text-align:center}.header-title strong{font-size:15px;text-transform:uppercase;letter-spacing:.2px}.header-title #count{font-size:12px;color:#666}#next{justify-self:end;text-transform:uppercase;border-radius:0;min-width:116px;font-size:14px;padding:15px 22px}#next:disabled{background:#a5a5a5;border-color:#a5a5a5;color:#fff;opacity:1}.studio-sidebar{top:80px;width:var(--sidebar);overflow:hidden}.tool-tabs{position:absolute;top:0;left:0;bottom:0;width:var(--rail);display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;padding:0;border:0;border-right:1px solid #eee;gap:0}.tool-tabs button{flex:none;height:102px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:12px 3px;font-size:13px}.tool-tabs button[aria-pressed=true]{box-shadow:none;background:color-mix(in srgb,var(--accent) 13%,white);color:var(--accent)}.tool-tabs svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7}.tool-tabs .color-icon{stroke:none}.font-icon{font-family:Arial,sans-serif;font-size:25px}.tool-panel{position:absolute;top:0;bottom:0;left:var(--rail);right:0;padding:20px 16px;overflow:auto;border-radius:0}.tool-panel .panel-heading{padding-bottom:16px;border-bottom:1px solid var(--accent);margin-bottom:16px}.tool-panel h2{font-size:15px;font-weight:500}#panel-gallery{display:flex;flex-direction:column;overflow:hidden;padding-bottom:16px}#panel-gallery>.panel-heading{flex:none;order:0}#panel-gallery>p{display:none}#gallery{order:1;flex:1;min-height:0;align-content:start;overflow:auto;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 18px;padding:2px}#gallery button{position:relative;height:80px;border-radius:0;border:0}#gallery img{display:block}#add{flex:none;order:2;border-radius:0;background:white;color:#262622;border-color:#262622;text-transform:uppercase;padding:13px;font-weight:600}#add:hover{background:var(--accent);color:#fff;border-color:var(--accent)}.used-mark{position:absolute;right:3px;bottom:3px;border-radius:50%;width:23px;height:23px;background:var(--accent);color:white;display:grid;place-items:center;font-size:15px;font-family:Arial,sans-serif;box-shadow:0 0 0 1px #fff}.tool-panel>label{font-size:12px}.selected-label{margin-top:10px}main{margin-left:var(--sidebar);padding:50px 70px 80px;min-height:calc(100dvh - 80px);background:var(--studio-cream)}.photos{display:grid;grid-template-columns:repeat(auto-fill,200px);justify-content:start;gap:45px 50px}.photo-card{padding:0;min-width:0}.print-wrap{margin-left:0;margin-right:auto}.card-actions{width:160px}.collection-heading{position:absolute;right:25px;top:90px;margin:0;z-index:6}.collection-heading button{padding:5px 10px;background:transparent;border:0;color:#666}#status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}#error{margin:0 0 20px}.checkout{display:none}#minimum-banner{position:fixed;left:var(--sidebar);right:0;top:80px;z-index:9;text-align:center;padding:10px 16px;background:var(--accent);color:white;font-size:13px;line-height:1.4}.has-minimum main{padding-top:85px}.has-minimum .collection-heading{top:125px}.photo-card .copies button{background:#242424}.panel-close{display:none}
@media(min-width:701px) and (max-width:1100px){:root{--sidebar:330px;--rail:80px}header{grid-template-columns:1fr 1fr auto;gap:8px;padding:12px 18px}.header-start{gap:12px}header .brand{font-size:29px}#autosave{max-width:90px;font-size:10px}main{padding-left:35px;padding-right:25px}.photos{grid-template-columns:repeat(auto-fill,170px);gap:40px 20px}#gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){header{height:72px;grid-template-columns:130px minmax(0,1fr);padding:9px 14px;gap:8px}.header-start{gap:10px;flex-wrap:wrap;position:relative;align-content:center}.back{font-size:21px}header .brand{font-size:28px;letter-spacing:-1.5px}#brand-logo{max-width:90px;max-height:32px}#autosave{font-size:9px;max-width:130px;width:100%;margin-left:28px;line-height:1.1}.header-title{flex-direction:column;align-items:flex-end;gap:3px}.header-title strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;max-width:100%;white-space:nowrap}.header-title #count{font-size:10px}#next{display:none}.studio-sidebar{position:static;width:auto;overflow:visible}.tool-tabs{position:fixed;top:auto;bottom:calc(88px + env(safe-area-inset-bottom));left:0;right:0;width:100%;height:62px;flex-direction:row;z-index:15;border-top:1px solid #ddd;background:#fff;padding:0}.tool-tabs button{flex:1;height:62px;font-size:11px;gap:4px;padding:5px}.tool-tabs svg{width:21px;height:21px}.font-icon{font-size:21px}.tool-panel{display:none;position:fixed;top:auto;bottom:calc(150px + env(safe-area-inset-bottom));left:0;right:0;max-height:50dvh;padding:16px 22px;z-index:16;border-radius:16px 16px 0 0;background:#fff;overflow:auto}.panel-open .tool-panel:not([hidden]){display:block}#panel-gallery{display:none}.panel-open #panel-gallery:not([hidden]){display:flex;height:42dvh}.panel-close{display:block}.tool-panel .panel-heading{padding-bottom:8px;margin-bottom:8px}.tool-panel h2{font-size:16px}#gallery{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:12px}#gallery button{height:64px}#add{padding:11px;font-size:12px}main{margin:0;min-height:calc(100dvh - 72px);padding:55px 28px 235px}.photos{display:flex;flex-direction:column;gap:35px;max-width:360px}.photo-card{width:100%}.print-wrap{margin-left:auto;margin-right:auto}.card-actions{width:auto}.collection-heading{top:80px;right:18px}.has-minimum main{padding-top:90px}.has-minimum .collection-heading{top:122px}#minimum-banner{top:72px;left:0;font-size:11px;padding:9px 12px}.checkout{display:flex;left:0;background:#fff}.add-mobile{bottom:calc(166px + env(safe-area-inset-bottom))}.colors{grid-template-columns:repeat(9,1fr)}.tool-panel .panel-heading button{background:white}.selected-label{margin:8px 0}.print-wrap .caption{font-size:11px}}
.photo-card,.photo-card.selected{padding:0}header .brand{max-width:100%}@media(max-width:700px){.header-start{display:grid;grid-template-columns:20px minmax(0,1fr);gap:3px 8px;align-items:center}.header-start .brand{font-size:26px}.header-start #autosave{grid-column:1/-1;width:auto;max-width:130px;margin-left:0;font-size:9px;white-space:normal}.header-start .back{line-height:1}.header-title{align-self:center}}

/* 0.3.1: font samples and direct caption editing */
@font-face{font-family:Photo-arial;src:url('../fonts/arial.woff2') format('woff2');font-weight:400;font-style:normal;font-display:block}
@font-face{font-family:Photo-right-hand;src:url('../fonts/right-hand.woff2') format('woff2');font-weight:400;font-style:normal;font-display:block}
@font-face{font-family:Photo-courier;src:url('../fonts/courier.woff2') format('woff2');font-weight:400;font-style:normal;font-display:block}
@font-face{font-family:Photo-sign-painter;src:url('../fonts/sign-painter.woff2') format('woff2');font-weight:400;font-style:normal;font-display:block}
.font-samples{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0 28px}.font-samples button{font-weight:400;font-size:25px;background:transparent;border:0;border-radius:0;padding:18px 5px;color:#262622}.font-samples button[aria-pressed=true]{color:var(--accent);box-shadow:inset 0 -2px var(--accent)}#text-all{width:100%}.print-wrap input.caption{box-sizing:border-box;cursor:text;font-style:normal;color:transparent;outline:none;text-align:center;padding:0 8.333333%;min-width:0}.print-wrap input.caption::placeholder{color:#666;opacity:1}.print-wrap input.caption:focus{color:#262622;caret-color:#262622;box-shadow:inset 0 -1px var(--accent)}@media(max-width:700px){.colors{grid-template-columns:repeat(8,minmax(0,1fr));gap:7px}.colors button{width:30px;height:30px}}
