:root{--blue:#163a5f;--green:#2f7d5a;--cyan:#69b9d0;--paper:#f4f7f8;--ink:#202a33;font-family:Inter,Arial,sans-serif;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{min-height:44px;border:1px solid #cfdce5;border-radius:12px;background:white;color:var(--blue);padding:10px 14px;cursor:pointer;touch-action:manipulation}button:disabled{opacity:.48;cursor:default}button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid var(--cyan);outline-offset:3px}button[aria-pressed=true]{border:2px solid var(--blue);background:#eaf3f8}.primary{background:var(--blue);color:white;border-color:var(--blue);font-weight:600}[hidden]{display:none!important}.editor-shell{max-width:768px;margin:auto;background:white;min-height:100dvh}.editor-header{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 20px;border-bottom:1px solid #e3eaee}.editor-brand{display:flex;align-items:center;gap:8px;text-decoration:none;color:var(--blue);font-size:20px;font-weight:700}.test-label{font-size:11px;max-width:120px;text-align:right;color:#526775}main{padding:12px 20px calc(110px + env(safe-area-inset-bottom));max-width:580px;margin:auto}.steps{display:flex;gap:8px;margin:0 0 24px;font-size:12px;color:#526570}.steps span{flex:1;padding:9px 0;border-top:3px solid #e3eaee}.steps [aria-current=step]{color:var(--blue);border-color:var(--cyan);font-weight:700}h1{color:var(--blue);font-size:clamp(24px,5vw,34px);line-height:1.12;margin:8px 0 20px;letter-spacing:-.7px}h2{font-size:19px;color:var(--blue)}.eyebrow{font-size:10px;letter-spacing:1.6px;color:var(--green);font-weight:700}.hint{color:#627584;font-size:12px;line-height:1.5}.color-switch,.source-actions,.compare-actions{display:flex;gap:8px;margin:12px 0}.color-switch>*,.source-actions>*{flex:1}.sizes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:14px 0}.sizes button{padding:14px 3px}.sizes strong{display:block;font-size:14px}.sizes small{display:block;margin-top:5px;color:#687d8d;font-size:11px}.photo-card{margin:14px 0;text-align:center;border:1px solid #dce7ed;border-radius:18px;background:var(--paper);overflow:hidden}.photo-card img{display:block;max-width:100%;max-height:clamp(180px,34dvh,350px);width:auto;min-height:80px;object-fit:contain;margin:auto}.photo-card figcaption{font-size:11px;padding:8px 12px;color:#526775}.main-photo{background:#eaf0f3}.variants{display:flex;gap:6px}.variants button{flex:1;font-size:11px;padding:8px 4px}.variants small{display:block;margin-top:5px}.compare-actions{justify-content:center}.compare-actions button{font-size:12px}.tool-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:12px 0}.tool-tabs button{padding:8px 3px;font-size:11px}details{margin:14px 0;border-top:1px solid #e3eaee;padding:12px 0}summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--blue);font-size:13px}label{display:block;margin:12px 0;color:var(--blue);font-size:13px}input:not([type=checkbox]),select,textarea{display:block;min-height:44px;border:1px solid #cbdbe5;border-radius:10px;background:white;padding:10px;width:100%;margin-top:7px;color:var(--ink)}textarea{min-height:76px;resize:vertical}.fields{display:flex;gap:8px}.fields>*{flex:1;min-width:0}.consent{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.5;color:#536b7c}.consent input{min-width:22px;min-height:22px;accent-color:var(--blue)}.editor-bottom{position:fixed;bottom:0;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;justify-content:space-between;width:min(100%,768px);padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:#ffffffed;backdrop-filter:blur(12px);border-top:1px solid #dce7ed;z-index:10}.editor-bottom button{font-size:12px;white-space:nowrap}.editor-bottom span{font-size:14px;font-weight:700;white-space:nowrap;color:var(--blue)}.editor-footer{margin-top:24px;color:#6a7f8b;font-size:10px;line-height:1.6}.transition{position:fixed;inset:0;z-index:30;background:linear-gradient(150deg,#163a5f,#245d7c);color:white;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px}.transition h2{color:white;font-size:26px}.transition p{max-width:340px;color:#d3edf3;font-size:14px}.orbit{height:54px;width:54px;border:3px solid #ffffff30;border-top-color:#69b9d0;border-radius:50%;animation:spin 1.4s linear infinite;margin-top:28px}@keyframes spin{to{transform:rotate(360deg)}}dialog{border:0;border-radius:20px;padding:26px;max-width:calc(100vw - 32px);width:400px;color:var(--blue)}dialog::backdrop{background:#163a5f99}.dialog-close{float:right}.sheet-photo{max-height:360px;max-width:100%;display:block;margin:auto}.payment-note{padding:14px;border-radius:12px;background:#edf5f8;font-size:13px;line-height:1.6}.order-summary{background:var(--paper);padding:18px;border-radius:16px;margin:16px 0;font-size:13px}.clothing-choices{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}#status{font-size:13px;line-height:1.6;overflow-wrap:anywhere}#tools-panel{border:1px solid #dce7ed;padding:14px;border-radius:14px;background:var(--paper)}@media(max-width:360px){main{padding-left:12px;padding-right:12px}.editor-header{padding:12px}.editor-bottom{gap:6px;padding-left:8px;padding-right:8px}.editor-bottom button{padding:10px}.sizes strong{font-size:12px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}body.busy #editor-main{visibility:hidden}
.source-actions>*{min-width:0;overflow-wrap:anywhere;font-size:13px}.sizes button{min-width:0}.editor-shell{overflow-x:clip}.editor-footer{margin-bottom:8px}.variants>*{min-width:0}#status:empty{display:none}

.source-actions button{font-size:11px;padding:10px 8px}
/* Approved Natigora first screen, 21 October: preserve the generated reference layout. */
:root{--blue:#163a5f;--green:#2f7d5a;--cyan:#69b9d0;--paper:#f4f7f8}body{background:var(--paper)}.editor-shell{background:#f9fbfc;max-width:900px}.editor-header{border:0;padding:26px 30px 14px;max-width:768px;margin:auto}.editor-brand{gap:14px}.editor-brand img{width:60px;height:60px}.editor-brand span{display:flex;flex-direction:column;gap:3px}.editor-brand strong{font-size:30px;letter-spacing:-.8px}.editor-brand small{font-size:15px;font-weight:400;color:#60738a}.editor-account{display:grid;place-items:center;width:46px;height:46px;border:1px solid #dae4ec;border-radius:50%;background:#edf3f7;color:#202a33}.editor-account svg{width:24px;height:24px}main{max-width:768px;padding:12px 30px 130px}.steps{gap:20px;margin:10px 0 28px;align-items:center;font-size:15px}.steps span{border:0;display:flex;align-items:center;gap:10px;white-space:nowrap;padding:0;position:relative}.steps span:not(:last-child):after{content:'';height:2px;background:#dce5eb;flex:1;min-width:14px;margin-left:8px}.steps b{display:grid;place-items:center;background:#e9eff3;border:1px solid #d9e3eb;border-radius:50%;width:34px;height:34px;flex-shrink:0;font-weight:500}.steps [aria-current=step] b{background:var(--blue);color:white;border-color:var(--blue)}.photo-entry h1{font-size:clamp(27px,4vw,38px);font-weight:750;letter-spacing:-1.2px;color:#111e2d;margin:0 0 10px;line-height:1.15}.entry-subtitle{font-size:clamp(15px,2.7vw,21px);line-height:1.4;color:#5c6e82;margin:0 0 22px}.photo-entry .color-switch{border:1px solid #d4dfe7;border-radius:12px;gap:0;margin:0 0 22px;background:white;overflow:hidden}.photo-entry .color-switch button{border:0;border-radius:10px;font-size:17px;min-height:52px;font-weight:600;background:transparent;color:var(--blue)}.photo-entry .color-switch button[aria-pressed=true]{background:var(--blue);color:white}.field-title,.entry-select{font-size:18px;font-weight:600;color:#192a3d;margin:18px 0 10px}.sizes{margin:0 0 18px;gap:8px}.sizes button{min-height:66px;border-radius:11px;background:white;position:relative;padding:10px 7px}.sizes button strong{font-size:15px;font-weight:500;white-space:nowrap}.sizes button[aria-pressed=true]{background:#e5f4fc;border:2px solid var(--blue)}.sizes button[aria-pressed=true]:after{content:'✓';position:absolute;right:6px;top:4px;border-radius:50%;background:var(--blue);color:white;width:17px;height:17px;font-size:12px}.sizes button[data-size=custom]{display:flex;align-items:center;justify-content:center;gap:7px}.sizes svg{width:20px;height:20px;color:#64788a;flex-shrink:0}.entry-select{display:block;margin:18px 0 0}.entry-select select{font-size:17px;font-weight:400;min-height:54px;background:white;border:1px solid #cfdae3;padding:10px 14px;border-radius:10px}.upload-area{margin-top:22px;border:1.5px dashed #69b9d0;border-radius:14px;background:#f0faff;overflow:hidden}.upload-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;width:100%;min-height:210px;border:0;background:transparent;border-radius:0}.upload-drop svg{width:70px;height:70px;color:#40abd0}.upload-drop strong{font-size:22px}.upload-drop small{font-size:16px;color:#5b7186}.upload-area .photo-card{border:0;border-radius:0;margin:0;background:transparent}.upload-area .photo-card img{max-height:350px;max-width:100%;object-fit:contain}.upload-area .photo-card figcaption{font-size:12px}.source-actions{gap:10px;margin:14px 0}.source-actions button{min-height:62px;border:0;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:11px;font-size:16px!important;font-weight:600;padding:12px 10px!important}.source-actions svg{width:26px;height:26px;flex-shrink:0}#camera{background:var(--green);color:white}.photo-advice{padding:16px 20px;background:#e8f6fc;border-radius:12px;margin-top:16px}.photo-advice h2{font-size:18px;margin:0 0 12px}.photo-advice ul{margin:0;padding:0;list-style:none;display:grid;gap:10px}.photo-advice li{display:flex;gap:12px;align-items:center;font-size:15px;color:#465d73}.photo-advice li:before{content:'✓';display:grid;place-items:center;background:var(--green);color:white;min-width:22px;height:22px;border-radius:50%;font-size:14px}.photo-entry .consent{font-size:13px;margin-top:17px;align-items:flex-start}.editor-bottom{width:min(100%,900px);padding:16px max(20px,calc((min(100vw,900px) - 708px)/2)) calc(16px + env(safe-area-inset-bottom));backdrop-filter:none;background:white;gap:20px}.editor-bottom button{min-height:50px;border-radius:11px;font-size:16px;padding:12px 22px}.editor-bottom #next{background:var(--green);color:white;border-color:var(--green)}.editor-bottom #back{background:#f2f7fa;border-color:#dce5eb}.editor-bottom #total{font-size:20px;color:#14273e}.editor-footer{font-size:10px;text-align:center}.fields label{min-width:0}#custom-dimensions{padding:0 12px;background:#edf5f9;border-radius:12px}#status:not(:empty){padding:12px;border-radius:10px;background:#fff4df;color:#594322}
@media(max-width:600px){.editor-header{padding:18px 18px 10px}.editor-brand img{width:44px;height:44px}.editor-brand strong{font-size:25px}.editor-brand small{font-size:12px}.editor-account{width:38px;height:38px}main{padding:10px 18px 115px}.steps{gap:10px;font-size:12px;margin:10px 0 23px}.steps span{gap:6px}.steps b{width:27px;height:27px}.steps span:not(:last-child):after{min-width:6px;margin-left:3px}.photo-entry h1{font-size:30px}.entry-subtitle{font-size:16px;margin-bottom:18px}.sizes button{min-height:56px;padding:8px 2px}.sizes button strong{font-size:12px}.sizes button[data-size=custom]{gap:3px}.sizes svg{width:16px;height:16px}.field-title,.entry-select{font-size:16px}.entry-select select{font-size:15px;min-height:49px}.upload-drop{min-height:175px}.upload-drop svg{width:57px;height:57px}.upload-drop strong{font-size:20px}.upload-drop small{font-size:13px}.source-actions button{font-size:12px!important;gap:6px;min-height:56px}.source-actions svg{width:23px;height:23px}.photo-advice{padding:14px}.photo-advice h2{font-size:17px}.photo-advice li{font-size:12px;gap:9px}.editor-bottom{padding:12px 16px calc(12px + env(safe-area-inset-bottom));gap:12px}.editor-bottom button{font-size:13px;padding:11px 15px;min-height:47px}.editor-bottom #total{font-size:18px}.photo-entry .color-switch button{font-size:15px;min-height:48px}}
@media(max-width:360px){main{padding-left:12px;padding-right:12px}.editor-header{padding-left:12px;padding-right:12px}.photo-entry h1{font-size:27px}.sizes{gap:5px}.sizes button strong{font-size:11px}.sizes svg{width:13px;height:13px}.sizes button[data-size=custom]{gap:2px}.source-actions button{font-size:11px!important;padding-left:5px!important;padding-right:5px!important}.source-actions svg{width:19px;height:19px}.steps{font-size:11px;gap:7px}.editor-bottom{gap:8px;padding-left:10px;padding-right:10px}.editor-bottom button{padding:10px 12px}}

/* Processing stays on the current screen, without an interstitial. */
.inline-progress{margin:16px 0;padding:14px 16px;border-radius:12px;background:#edf5f8;color:var(--blue);font-size:13px;line-height:1.5}.inline-progress p{margin:6px 0}.inline-progress button{margin-top:6px}

.inline-progress progress{display:block;width:100%;height:12px;margin:12px 0 6px;accent-color:var(--green)}#processing-percent{font-weight:700}#processing-elapsed{font-size:12px;color:#526775}

#network-wait{max-width:728px;margin:12px auto;padding:12px 16px}#status:not(:empty){border-left:3px solid var(--cyan);padding:12px;background:#f4f7f8}

.timing-log{font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto}

.load-error{max-width:728px;margin:12px auto;padding:14px 16px;background:#fff0ed;color:#8f3025;border:1px solid #edb8ad;border-radius:12px;overflow-wrap:anywhere;font-size:13px;line-height:1.5}#login-wait progress{display:block;width:100%;accent-color:var(--green)}

/* Document catalogue and narrow-screen form layout. */
.document-picker{margin-top:18px;min-width:0}.document-picker select{width:100%;max-width:100%;min-height:50px;font-size:16px;overflow:hidden;text-overflow:ellipsis}.document-picker input{font-size:16px;min-height:48px}.document-picker .entry-select{margin:0}.document-picker .hint{margin:6px 0}.document-requirements{margin:16px 0;padding:16px;border:1px solid #cbdde6;border-radius:12px;background:#f0f7fa;font-size:14px;line-height:1.6;overflow-wrap:anywhere}.document-requirements h2{font-size:17px;margin:0 0 8px}.document-requirements p{margin:8px 0}.document-requirements a{color:var(--blue);text-decoration:underline}.sizes button[data-size=custom]{flex-wrap:wrap}.sizes button strong{white-space:normal;line-height:1.25}.sizes button[aria-pressed=true]:after{right:5px;top:4px}.sizes button{padding:17px 7px 9px}.fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}#custom-dimensions{padding:6px 14px}#custom-dimensions input,#custom-dimensions select{font-size:16px;min-width:0}#head-percent{max-width:180px}.source-actions>*{min-width:0}.source-actions span{overflow-wrap:anywhere}section,main,.document-picker,.fields>*{min-width:0}#document-requirements input[type=range]{padding:8px 0;min-height:44px}@media(max-width:480px){.sizes{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.sizes button{min-height:58px;padding:14px 18px 9px}.sizes button strong{font-size:14px}.sizes button[data-size=custom]{gap:8px}.fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.fields>label:last-child{grid-column:1/-1}.fields>label:last-child select{max-width:160px}.editor-bottom{gap:8px;padding-left:12px;padding-right:12px}.editor-bottom button{font-size:13px;padding:10px 12px}.editor-bottom #total{font-size:17px}.document-requirements{padding:13px}.source-actions{flex-wrap:wrap}.source-actions button{font-size:13px!important}}@media(max-width:340px){.editor-bottom button{padding:10px 8px;font-size:12px}.editor-bottom #total{font-size:16px}.source-actions button{flex-basis:100%}.steps{gap:5px}.steps span{gap:4px}.steps span:not(:last-child):after{display:none}}

.dv-source img{width:min(100%,350px)!important;aspect-ratio:1;object-fit:cover!important;height:auto!important;max-height:none!important}

@media(max-width:480px){.source-actions{grid-template-columns:1fr}.source-actions button{overflow-wrap:normal;word-break:normal}#camera{font-size:clamp(12px,3.2vw,15px);padding-inline:8px}}

/* Document entry: quiet studio light and two clear ways to start. */
body.ng-unified{background:radial-gradient(ellipse at 12% 12%,#dfeee9 0,transparent 50%),radial-gradient(ellipse at 94% 50%,#dcecf4 0,transparent 55%),#f4f7f8;background-attachment:fixed}.editor-shell{background:#ffffffdf;box-shadow:0 0 100px #163a5f09}.editor-header{background:#ffffffbf}.photo-entry h1{font-size:clamp(29px,5.5vw,42px);letter-spacing:-1.2px;margin-bottom:12px}.entry-subtitle{color:#536b7c;line-height:1.6;max-width:440px;margin:0 0 22px}.entry-capture-card{background:linear-gradient(145deg,#edf5f2,#f5f9fb);border:1px solid #d7e5e3;border-radius:24px;padding:20px;box-shadow:0 14px 34px #163a5f07;position:relative}.entry-capture-card .eyebrow{display:block;letter-spacing:1.2px;line-height:1.5;font-size:10px}.entry-capture-card .upload-drop{background:#ffffffa8;border-color:#bdd4d4;border-radius:16px;padding:24px 12px;min-height:142px}.entry-capture-card .upload-drop svg{color:#246346}.entry-capture-card .source-actions{margin-bottom:8px}.entry-capture-card .source-actions button{padding:12px 8px;min-height:55px;font-size:13px}.entry-capture-card .primary{background:#2f7d5a;border-color:#2f7d5a}.entry-private{font-size:11px;line-height:1.5;color:#526570;margin:10px 0 0;text-align:center}.entry-format-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:26px 0 10px}.entry-format-heading h2{font-size:17px;margin:0}.entry-format-heading span{color:#246346;font-size:12px;font-weight:600;white-space:nowrap}.photo-entry .photo-advice{background:#f4f7f8;border-radius:16px}.photo-entry .consent{font-size:12px;line-height:1.5}@media(min-width:1000px){.editor-shell{max-width:920px;border-left:1px solid #e3ecec;border-right:1px solid #e3ecec}main{max-width:660px;padding-top:22px}.editor-header{padding:20px 36px}.entry-capture-card .upload-drop{min-height:170px}}@media(max-width:380px){.entry-capture-card{padding:14px}.entry-capture-card .source-actions{flex-direction:column}.entry-format-heading{align-items:flex-start;flex-direction:column;gap:6px}}

@media(min-width:900px){
 body:has(.photo-entry:not([hidden])) .editor-shell{max-width:1180px;min-height:100dvh}
 body:has(.photo-entry:not([hidden])) main{max-width:1100px;padding:12px 28px 90px}
 body:has(.photo-entry:not([hidden])) .editor-header{padding:10px 28px}
 body:has(.photo-entry:not([hidden])) .editor-brand img{width:46px;height:46px}
 body:has(.photo-entry:not([hidden])) .steps{max-width:430px;margin:0 0 14px auto}
 .photo-entry h1{font-size:34px;margin:0 0 8px}.photo-entry .entry-subtitle{max-width:none;margin:0 0 16px;font-size:14px}
 .entry-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:30px;align-items:start}.entry-start,.entry-settings{min-width:0}
 .entry-capture-card{padding:18px}.entry-capture-card .upload-drop{min-height:162px;margin:12px 0;padding:20px}.entry-capture-card .photo-card{margin:10px 0}.entry-capture-card .photo-card img{max-height:190px}
 .entry-capture-card .source-actions{display:flex;gap:8px}.entry-capture-card .source-actions button{font-size:13px!important;min-height:48px;padding:10px 8px}
 .entry-format-heading{margin:0 0 12px}.entry-format-heading h2{font-size:19px}.entry-settings .color-switch{margin:8px 0 12px}.entry-settings .color-switch button{min-height:42px;font-size:13px;padding:8px}
 .entry-settings .field-title{font-size:13px;margin:10px 0 6px}.entry-settings .sizes{margin:6px 0 12px}.entry-settings .sizes button{min-height:48px;padding:12px 5px 8px}.entry-settings .sizes strong{font-size:12px}
 .entry-settings .document-picker{margin-top:10px}.entry-settings label{font-size:12px}.entry-settings .document-picker input,.entry-settings .document-picker select{min-height:42px;font-size:14px;padding:8px 10px}.entry-settings .document-picker .hint{margin:3px 0;font-size:10px}.entry-settings .entry-select{margin:8px 0}.entry-settings .entry-select select{min-height:40px;font-size:13px;padding:8px}
 .photo-entry .photo-advice{margin:12px 0 0;padding:12px 16px}.photo-entry .photo-advice h2{font-size:13px;margin:0 0 6px}.photo-entry .photo-advice ul{display:flex;flex-wrap:wrap;gap:5px 14px;margin:0;padding:0;list-style:none;font-size:11px}.photo-entry .photo-advice li{margin:0}
 .photo-entry>.consent{margin:14px 0 0;font-size:11px}.editor-bottom{max-width:1180px}
 body:has(.photo-entry:not([hidden])) .mission-footer{font-size:10px;padding-block:8px;margin-block:8px}
}
@media(min-width:900px) and (max-height:760px){body:has(.photo-entry:not([hidden])) .editor-header{padding-block:6px}.photo-entry h1{font-size:29px}.photo-entry .entry-subtitle{margin-bottom:12px}.entry-capture-card .upload-drop{min-height:130px;padding:14px}.entry-capture-card{padding:14px}.entry-capture-card .photo-card img{max-height:150px}.entry-capture-card .eyebrow{display:none}.entry-settings .color-switch{margin:4px 0 8px}.entry-format-heading{margin-bottom:6px}.photo-entry .photo-advice{padding:8px 12px}.entry-private{margin:5px 0 0}.photo-entry>.consent{margin-top:10px}}
/* Owner correction: retain approved surfaces and button colours. */
body.ng-unified{background:var(--paper)}.editor-shell{background:#f9fbfc;box-shadow:none}.editor-header{background:transparent}.entry-capture-card{background:#f9fbfc;box-shadow:none;border-color:#d7e3e9}.entry-capture-card .upload-drop{background:transparent}.entry-capture-card .upload-drop svg{color:#40abd0}.entry-capture-card .primary{background:var(--blue);border-color:var(--blue)}.entry-capture-card #camera{background:var(--green);border-color:var(--green);color:white}
@media(min-width:900px){
 body:has(.photo-entry:not([hidden])) .load-error:not([hidden]){position:fixed;top:8px;right:12px;max-width:360px;z-index:20;font-size:11px;line-height:1.3;padding:10px;margin:0;box-shadow:0 4px 20px #163a5f15}
 .photo-entry .upload-area{margin-top:12px}.photo-entry .entry-capture-card .upload-drop{min-height:130px;margin:0;padding:14px}.photo-entry .upload-drop svg{width:44px;height:44px}.photo-entry .upload-drop strong{font-size:18px}.photo-entry .upload-drop small{font-size:12px}.photo-entry .entry-capture-card .source-actions{margin:10px 0 6px}.photo-entry .entry-private{font-size:11px;line-height:1.4;margin:6px 0 0}.photo-entry .photo-advice li{font-size:11px;line-height:1.4}.photo-entry .photo-advice h2{line-height:1.3}.photo-entry .entry-capture-card .eyebrow{font-size:9px;line-height:1.3}
 body:has(.photo-entry:not([hidden])) #status{font-size:11px;line-height:1.3;margin:6px 0}
 body:has(.photo-entry:not([hidden])) main>details{font-size:11px;margin:4px 0;padding:0;min-height:0}
 body:has(.photo-entry:not([hidden])) main>details>summary{padding:4px 0;min-height:0}
 body:has(.photo-entry:not([hidden])) .editor-footer{margin:6px 0 0;padding:0}
 body:has(.photo-entry:not([hidden])) [data-natigora-mission]{font-size:10px!important;line-height:1.4!important;margin:0!important;padding:6px!important}
 body:has(.photo-entry:not([hidden])) main{padding-bottom:90px}
}
@media(min-width:900px){
 body:has(.photo-entry:not([hidden])) .editor-shell{position:relative}
 body:has(.photo-entry:not([hidden])) .editor-header{max-width:none;padding:10px 28px;min-height:64px}
 body:has(.photo-entry:not([hidden])) .editor-brand strong{font-size:24px;line-height:1.2}
 body:has(.photo-entry:not([hidden])) .editor-brand small{font-size:12px;line-height:1.2}
 body:has(.photo-entry:not([hidden])) .steps{position:absolute;top:23px;right:110px;width:380px;margin:0;font-size:12px}
 body:has(.photo-entry:not([hidden])) .steps b{width:28px;height:28px}
 body:has(.photo-entry:not([hidden])) main{padding-top:10px}
 .photo-entry .entry-subtitle{font-size:13px;line-height:1.4;margin-bottom:14px}
 .photo-entry .entry-format-heading h2{font-size:17px;line-height:1.2}
 .photo-entry .entry-settings .color-switch button{min-height:40px;font-size:13px;line-height:1.3}
 .photo-entry .entry-settings .field-title{font-size:12px;line-height:1.3;margin:8px 0 5px}
 .photo-entry .entry-settings .document-picker input,.photo-entry .entry-settings .document-picker select{min-height:38px;padding:6px 10px;font-size:13px}
 .photo-entry .entry-settings .entry-select{font-size:12px;line-height:1.4}
 .photo-entry .entry-settings .entry-select select{min-height:38px;font-size:13px}
 .photo-entry .photo-advice li{font-size:11px!important;line-height:1.4!important}
 .photo-entry .photo-advice h2{font-size:13px!important;line-height:1.3!important}
 body:has(.photo-entry:not([hidden])) #status{padding:0;min-height:0;font-size:11px;line-height:1.3}
 body:has(.photo-entry:not([hidden])) main>details>summary{font-size:11px;line-height:1.3}
}

.document-footnote{display:flex;align-items:center;justify-content:space-between;gap:8px}.document-footnote #open-document-requirements{font-size:11px;min-height:28px;padding:3px 8px;border:0;background:transparent;text-decoration:underline}.entry-settings:has(#document-requirements[hidden]) #open-document-requirements{display:none}.entry-options-dialog{width:min(600px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;border:1px solid #d1dfe6;border-radius:18px;padding:22px;color:var(--blue);background:white}.entry-options-dialog::backdrop{background:#10294199}.entry-options-dialog .document-requirements{margin:0 0 12px;border:0;background:white;padding:0}.entry-options-dialog h2{margin-top:0}.entry-options-dialog [id=custom-dimensions]{padding:0}.entry-options-dialog input,.entry-options-dialog select,.entry-options-dialog textarea{max-width:100%}@media(min-width:900px){body:has(.photo-entry:not([hidden])) main{padding-bottom:78px}.document-footnote .hint{line-height:1.3}.photo-entry .entry-settings .document-footnote{min-height:28px}}

.delivery-photo{max-width:360px;margin:16px auto}.delivery-photo img{max-height:40dvh}.steps{gap:10px}.steps span{font-size:12px}.steps span:not(:last-child):after{min-width:5px;margin-left:3px}@media(min-width:900px){body:has(.photo-entry:not([hidden])) .steps{width:430px;right:98px}.steps span{font-size:11px}}@media(max-width:480px){.steps{gap:6px}.steps span{font-size:10px;gap:5px}.steps b{width:25px;height:25px}.steps span:not(:last-child):after{display:none}}
.mobile-parameters{display:none}
@media(max-width:899px){
 body:has(.photo-entry:not([hidden])) .editor-header{padding:8px 14px;min-height:54px;gap:8px}
 body:has(.photo-entry:not([hidden])) .editor-brand{gap:8px}
 body:has(.photo-entry:not([hidden])) .editor-brand img{width:34px;height:34px}
 body:has(.photo-entry:not([hidden])) .editor-brand strong{font-size:20px;line-height:1.1;letter-spacing:-.4px}
 body:has(.photo-entry:not([hidden])) .editor-brand small{font-size:10px;line-height:1.1}
 body:has(.photo-entry:not([hidden])) .editor-account{width:34px;height:34px}
 body:has(.photo-entry:not([hidden])) main{padding:4px 14px 74px}
 body:has(.photo-entry:not([hidden])) .steps{margin:2px 0 10px;gap:5px}
 body:has(.photo-entry:not([hidden])) .steps span{font-size:10px;gap:5px}
 body:has(.photo-entry:not([hidden])) .steps b{width:24px;height:24px}
 body:has(.photo-entry:not([hidden])) .steps span:after{display:none}
 .photo-entry h1{font-size:25px;line-height:1.08;letter-spacing:-.7px;margin:0 0 6px}
 .photo-entry .entry-subtitle{font-size:12px;line-height:1.35;margin:0 0 10px}
 .photo-entry .entry-grid{display:block}
 .photo-entry .entry-capture-card{padding:10px;border-radius:16px}
 .photo-entry .entry-capture-card>.eyebrow{display:none}
 .photo-entry .upload-area{margin-top:0;border-radius:11px}
 .photo-entry .entry-capture-card .upload-drop{min-height:94px;height:clamp(94px,19dvh,150px);padding:8px;gap:5px;margin:0;border:0}
 .photo-entry .upload-drop svg{width:32px;height:32px}
 .photo-entry .upload-drop strong{font-size:16px;line-height:1.2}
 .photo-entry .upload-drop small{font-size:10px;line-height:1.2}
 .photo-entry .source-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px;margin:8px 0 0!important}
 .photo-entry .source-actions button{min-height:44px;font-size:11px!important;padding:8px 5px!important;gap:5px;flex-direction:row;white-space:nowrap}
 .photo-entry .source-actions svg{width:18px;height:18px}
 .photo-entry .entry-private{font-size:9px;line-height:1.25;margin:7px 0 0}
 .photo-entry .upload-area .photo-card{margin:0}
 .photo-entry .upload-area .photo-card img{height:clamp(94px,19dvh,150px);min-height:0;max-height:none;max-width:100%;object-fit:contain}
 .photo-entry .upload-area .photo-card figcaption{font-size:9px;line-height:1.2;padding:3px}
 .photo-entry .entry-format-heading{display:none}
 .photo-entry .document-picker{margin:9px 0 0}
 .photo-entry .document-picker>.entry-select{font-size:12px;line-height:1.3;margin:0 0 5px}
 .photo-entry .document-picker>select{min-height:44px;height:44px;font-size:14px;padding:8px}
 .photo-entry .document-footnote{min-height:0;justify-content:flex-end}
 .photo-entry .document-footnote .hint{display:none}
 .photo-entry .document-footnote #open-document-requirements{min-height:24px;font-size:10px;padding:2px 0}
 .photo-entry>.mobile-parameters{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;font-size:12px;min-height:40px;padding:8px 10px;margin-top:8px}
 .mobile-parameters span{color:#60738a;font-size:11px;font-weight:400}
 .photo-entry>.consent{font-size:10px;line-height:1.3;margin:8px 0 0;gap:7px;align-items:flex-start}
 .photo-entry>.consent input{width:18px;height:18px;min-width:18px;margin:0}
 body:has(.photo-entry:not([hidden])) #status{font-size:10px;line-height:1.3;margin:5px 0;min-height:0;padding:0}
 body:has(.photo-entry:not([hidden])) main>details{position:absolute;right:14px;top:8px;margin:0;padding:0;z-index:1}
 body:has(.photo-entry:not([hidden])) main>details>summary{font-size:0;min-height:28px;width:28px;padding:0;list-style:none}
 body:has(.photo-entry:not([hidden])) main>details>summary:after{content:'ⓘ';font-size:18px;color:#60738a}
 body:has(.photo-entry:not([hidden])) main>details[open]{position:fixed;inset:65px 14px auto;background:white;border:1px solid #ccdce5;padding:14px;max-height:70dvh;overflow:auto;z-index:25;border-radius:14px}
 body:has(.photo-entry:not([hidden])) main>details[open]>summary{font-size:12px;width:auto}
 body:has(.photo-entry:not([hidden])) main{position:relative}
 body:has(.photo-entry:not([hidden])) .editor-footer{margin:6px 0 0;padding:0}
 body:has(.photo-entry:not([hidden])) [data-natigora-mission]{margin:0!important;padding:4px!important;font-size:8px!important;line-height:1.3!important}
 body:has(.photo-entry:not([hidden])) .editor-bottom{padding:8px 12px max(8px,env(safe-area-inset-bottom));height:auto;gap:8px}
 body:has(.photo-entry:not([hidden])) .editor-bottom button{font-size:12px;min-height:44px;padding:8px 12px}
 body:has(.photo-entry:not([hidden])) .editor-bottom #total{font-size:18px}
 body:has(.photo-entry:not([hidden])) .load-error:not([hidden]){position:fixed;top:8px;left:12px;right:12px;z-index:30;margin:0;font-size:10px;line-height:1.3;padding:8px}
 #entry-parameters-content .color-switch button{min-height:44px;font-size:13px}
 #entry-parameters-content .sizes{grid-template-columns:1fr 1fr}
 #entry-parameters-content .sizes button{min-height:48px}
 #entry-parameters-content>.entry-select{font-size:14px}
 #entry-parameters-content #document-search{width:100%;min-height:44px;font-size:16px;margin:12px 0}
}
@media(max-width:899px) and (max-height:650px){.photo-entry h1{font-size:22px}.photo-entry .entry-subtitle{margin-bottom:7px;font-size:11px}.photo-entry .entry-capture-card .upload-drop,.photo-entry .upload-area .photo-card img{height:94px;min-height:94px}.photo-entry .entry-private{display:none}.photo-entry .entry-capture-card{padding:8px}.photo-entry .document-picker{margin-top:7px}.photo-entry>.mobile-parameters{margin-top:5px}.photo-entry>.consent{margin-top:6px}body:has(.photo-entry:not([hidden])) .steps{margin-bottom:7px}}
@media(max-width:899px){.photo-entry .document-picker>select{display:block;margin:0}.photo-entry .document-picker>.entry-select{display:block}.photo-entry .document-footnote:has(#open-document-requirements){line-height:1}.photo-entry .document-footnote .hint{margin:0}.photo-entry>.consent span{font-size:10px;line-height:1.3}}
@media(max-width:360px) and (max-height:650px){
 body:has(.photo-entry:not([hidden])) .editor-header{padding-block:5px;min-height:46px}
 body:has(.photo-entry:not([hidden])) main{padding-top:2px;padding-bottom:66px}
 .photo-entry h1{font-size:21px;margin-bottom:4px}
 .photo-entry .entry-subtitle{font-size:10px;line-height:1.2;margin-bottom:6px;max-width:260px}
 .photo-entry .entry-capture-card .upload-drop,.photo-entry .upload-area .photo-card img{height:70px;min-height:70px}
 .photo-entry .upload-drop{gap:3px!important}
 .photo-entry .upload-drop svg{width:24px;height:24px}
 .photo-entry .upload-drop strong{font-size:14px}
 .photo-entry .upload-drop small{font-size:9px}
 .photo-entry .source-actions{margin-top:6px!important}
 .photo-entry .entry-capture-card{padding:6px}
 .photo-entry .document-picker{margin-top:6px}
 .photo-entry .document-picker>.entry-select{display:none}
 .photo-entry>.mobile-parameters{margin-top:5px;min-height:44px;padding-block:5px}
 .photo-entry>.consent{margin-top:5px}
 body:has(.photo-entry:not([hidden])) #status{position:fixed;left:10px;right:10px;bottom:65px;z-index:15;background:#fffdf3;border:1px solid #dccf9c;border-radius:8px;padding:5px;margin:0}
 body:has(.photo-entry:not([hidden])) #status:empty{display:none}
}
@media(max-width:360px) and (max-height:650px){.photo-entry .upload-area .photo-card figcaption{display:none}}
@media(max-width:899px){body:has(.photo-entry:not([hidden])) #editor-main>details:not([open]){position:fixed;top:12px;right:54px}}
@media(max-width:360px){.photo-entry .source-actions button{font-size:10px!important;padding:8px 4px!important;gap:3px}.photo-entry .source-actions svg{width:14px;height:14px}}

/* Keep closing actions outside the scrollable parameter body. */
#entry-parameters-dialog{padding:0;width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:hidden}
#entry-parameters-dialog[open]{display:flex;flex-direction:column}
.parameters-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px;border-bottom:1px solid #e3eaee;flex:none}
.parameters-header h2{margin:0!important;font-size:19px!important;line-height:1.2}
#entry-parameters-close{width:44px;height:44px;flex:none;padding:0;font-size:28px;line-height:1}
#entry-parameters-content{padding:10px 14px;overflow-y:auto;min-height:0;overscroll-behavior:contain}
#entry-parameters-done{flex:none;margin:0 14px 12px;min-height:44px}
#entry-parameters-content .color-switch{margin:0 0 10px}
#entry-parameters-content .field-title{margin:8px 0;font-size:14px}
#entry-parameters-content .sizes{margin:8px 0;gap:6px}
#entry-parameters-content .sizes button{padding:8px 4px;min-height:44px}
#entry-parameters-content .sizes small{display:none}
#entry-parameters-content label{margin:8px 0;font-size:13px}
#entry-parameters-content select,#entry-parameters-content input{margin-top:4px;min-height:44px;padding:8px}
#entry-parameters-content .photo-advice{padding:10px;margin:8px 0}
#entry-parameters-content .photo-advice h2,#entry-parameters-content .photo-advice h3{margin:0 0 6px;font-size:14px}
#entry-parameters-content .photo-advice li{font-size:12px;margin:4px 0;line-height:1.3}
#entry-parameters-content #document-search{margin-top:8px;font-size:13px}
/* Step two: photo comparison, choice and extras in the same workspace. */
body:has(.photo-editor-review:not([hidden])) .editor-shell{max-width:1180px}
body:has(.photo-editor-review:not([hidden])) main{max-width:1100px;padding:12px 24px 90px}
.photo-editor-review h1{font-size:30px;margin:4px 0 6px}
.photo-editor-review>.eyebrow{margin:4px 0}
.photo-editor-review #editor-format{margin:4px 0 14px}
.review-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(290px,.9fr);gap:24px;align-items:start}
.review-photos,.review-options{min-width:0}
.review-comparison{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:stretch}
.review-current{order:-1;min-width:0}
.review-comparison .photo-card{margin:0;height:clamp(220px,43dvh,380px);display:flex;flex-direction:column;background:#eef3f5;border:1px solid #d7e3e9}
.review-comparison .photo-card img{width:100%;height:calc(100% - 36px);max-height:none;min-height:0;object-fit:contain;flex:1}
.review-comparison figcaption{min-height:36px;flex:none;background:white;font-size:11px;line-height:1.3;padding:8px}
#retouch-placeholder{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:14px;text-align:center;color:var(--blue)}
#retouch-placeholder>span{font-size:42px;color:var(--cyan)}
#retouch-placeholder strong{font-size:16px}#retouch-placeholder p{font-size:12px;line-height:1.4;margin:0}#retouch-placeholder small{font-size:11px;background:white;border:1px solid #d7e3e9;border-radius:20px;padding:6px 10px}
.review-options{border:1px solid #d7e3e9;border-radius:18px;padding:18px;background:white}
.review-options h2{font-size:16px;margin:0 0 10px}
.review-options .variants{display:grid;grid-template-columns:1fr 1fr;margin:0;gap:8px}
.review-options .variants button{font-size:13px;min-height:58px;padding:8px}
.review-options .variants small{font-size:13px;font-weight:700}
.review-design-note{font-size:11px;line-height:1.45;color:#536b7c;background:var(--paper);padding:10px;border-radius:10px;margin:10px 0 14px}
.review-options .review-extras-title{margin-top:16px}
.review-extras-hint{font-size:11px;line-height:1.4;margin:0 0 8px}
.review-options .tool-tabs{grid-template-columns:1fr 1fr;margin:8px 0;gap:7px}
.review-options .tool-tabs button{font-size:11px;padding:8px 5px;min-height:44px}
.review-options details{margin:8px 0;padding:0;border:0}.review-options summary{font-size:12px;min-height:38px}
.review-estimate{border-top:1px solid #d7e3e9;padding-top:12px;display:grid;grid-template-columns:1fr auto;gap:4px;color:var(--blue);font-size:13px}
.review-estimate strong{font-size:20px}.review-estimate p{grid-column:1/-1;margin:0;font-size:11px;color:#627584;line-height:1.4}
.review-photos #retouch-status{font-size:11px;line-height:1.4;margin:8px 0}
.review-photos .compare-actions{margin:8px 0;gap:8px}.review-photos .compare-actions button{font-size:11px;min-height:44px}
@media(max-width:899px){
 body:has(.photo-editor-review:not([hidden])) main{padding:8px 12px 90px}
 body:has(.photo-editor-review:not([hidden])) .editor-header{padding:8px 14px;min-height:54px}
 body:has(.photo-editor-review:not([hidden])) .steps{margin:0 0 10px}
 .photo-editor-review h1{font-size:25px}.photo-editor-review #editor-format{font-size:11px;margin-bottom:8px}
 .review-layout{grid-template-columns:1fr;gap:10px}.review-comparison{gap:8px}
 .review-comparison .photo-card{height:clamp(180px,31dvh,270px);border-radius:12px}
 #retouch-placeholder{padding:8px;gap:5px}#retouch-placeholder strong{font-size:13px}#retouch-placeholder p,#retouch-placeholder small{font-size:10px}
 .review-options{padding:12px;border-radius:14px}.review-options .review-extras-title{margin-top:12px}
 .review-photos .compare-actions{justify-content:stretch}.review-photos .compare-actions button{flex:1}
}
body:has(.photo-editor-review:not([hidden])) .editor-header{max-width:none;padding:10px 24px;min-height:60px}
body:has(.photo-editor-review:not([hidden])) .editor-brand img{width:40px;height:40px}
body:has(.photo-editor-review:not([hidden])) .editor-brand strong{font-size:23px}
body:has(.photo-editor-review:not([hidden])) .editor-brand small{font-size:11px}
body:has(.photo-editor-review:not([hidden])) .steps{margin:0 0 12px;font-size:11px;gap:12px}
body:has(.photo-editor-review:not([hidden])) .steps b{width:26px;height:26px}
body:has(.photo-editor-review:not([hidden])) #refresh,body:has(.photo-editor-review:not([hidden])) #replace-source{display:none}
body:has(.photo-editor-review:not([hidden])) main>details{margin:8px 0;padding:0;border:0}
body:has(.photo-editor-review:not([hidden])) main>details summary{min-height:24px;font-size:11px}
body:has(.photo-editor-review:not([hidden])) .editor-footer{margin:4px 0}
body:has(.photo-editor-review:not([hidden])) [data-natigora-mission]{margin:0!important;padding:4px!important;font-size:9px!important}
@media(max-width:899px){
 body:has(.photo-editor-review:not([hidden])) .editor-header{padding:6px 12px;min-height:48px}
 body:has(.photo-editor-review:not([hidden])) .editor-brand img{width:32px;height:32px}
 body:has(.photo-editor-review:not([hidden])) .editor-brand strong{font-size:20px}
 body:has(.photo-editor-review:not([hidden])) .editor-brand small{font-size:10px}
 .photo-editor-review>.eyebrow{display:none}
 .review-comparison .photo-card{height:180px}
 .review-photos #retouch-status,.review-extras-hint{display:none}
 .review-layout{gap:6px}.review-options{padding:10px}.review-options>h2:first-child{display:none}
 .review-design-note{font-size:10px;padding:6px;margin:6px 0;line-height:1.3}
 .review-options .variants button{min-height:48px;font-size:12px;padding:4px}
 .review-options .variants small{margin-top:3px;font-size:12px}
 .review-options .review-extras-title{font-size:13px;margin:6px 0}
 .review-options .tool-tabs{margin:4px 0;gap:5px}.review-options .tool-tabs button{font-size:10px;padding:5px;min-height:44px}
 .review-options details{margin:2px 0}.review-options summary{min-height:30px;font-size:11px}
 .review-estimate{display:none}
 body:has(.photo-editor-review:not([hidden])) #total{font-size:14px}
 body:has(.photo-editor-review:not([hidden])) .editor-bottom{padding:8px 10px;gap:6px}
 body:has(.photo-editor-review:not([hidden])) .editor-bottom button{font-size:11px;padding:8px 10px;min-height:44px}
}
@media(min-width:900px){
 body:has(.photo-editor-review:not([hidden])) .editor-shell{position:relative}
 body:has(.photo-editor-review:not([hidden])) .steps{position:absolute;top:18px;right:92px;width:430px;margin:0}
}
@media(min-width:900px) and (max-height:820px){
 .review-extras-hint,.review-estimate{display:none}
 .review-options{padding:14px}.review-options h2{line-height:1.2;font-size:15px;margin-bottom:8px}
 .review-options .review-extras-title{margin-top:10px}
 .review-design-note{padding:8px;margin:8px 0;font-size:10px;line-height:1.3}
 .review-options .variants button{min-height:52px}
}
body:has(.photo-editor-review:not([hidden])) main>details{display:none}
@media(max-width:899px){
 body:has(.photo-editor-review:not([hidden])) .editor-brand span{gap:0}
 body:has(.photo-editor-review:not([hidden])) .editor-brand strong{line-height:1.1}
 body:has(.photo-editor-review:not([hidden])) .editor-brand small{line-height:1.1}
 body:has(.photo-editor-review:not([hidden])) .editor-header{height:48px;min-height:48px}
 .review-comparison .photo-card{height:150px}
 body:has(.photo-editor-review:not([hidden])) main{padding-bottom:72px}
}
@media(max-width:899px){
 .review-comparison .photo-card{height:140px}
 body:has(.photo-editor-review:not([hidden])) main{padding-bottom:60px}
 .photo-editor-review h1{font-size:23px}
 .photo-editor-review #editor-format{margin-bottom:4px}
}
@media(max-width:899px){body:has(.photo-editor-review:not([hidden])) main{padding-bottom:56px}}

/* Retouch-only upsells use the established Natigora palette. */
#retouch-extras[hidden],#magic-panel[hidden]{display:none!important}
.super-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.super-tools button{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:18px;border:2px solid #69B9D0;background:#F4F7F8;color:#163A5F;border-radius:16px;text-align:left;min-width:0}
.super-tools button strong{font-size:1.12rem}.super-tools button span{font-size:.88rem;line-height:1.4}.super-tools button b{color:#246346}.super-tools button:focus-visible{outline:3px solid #2F7D5A;outline-offset:3px}.super-tools button:disabled{opacity:.55}
#magic-panel label{display:block;margin:12px 0}#magic-profile{display:block;width:100%;padding:10px}
@media(max-width:420px){.super-tools{grid-template-columns:1fr}}

/* One large photo, five preserved variants, additions directly beneath it. */
.review-comparison{display:block}.review-comparison .retouch-comparison{display:none}
.review-current .variants{display:flex;gap:6px;overflow-x:auto;margin:0 0 10px;padding:2px 0 6px}
.review-current .variants button{flex:1 0 96px;min-height:54px;font-size:12px;padding:7px 5px}
.review-current .variants small{display:block;font-size:12px;margin-top:3px}
.review-comparison .main-photo{height:clamp(280px,50svh,560px);width:100%}
.review-current #retouch-extras{margin-top:12px}.review-extras-title{font-size:16px;margin:0 0 8px}
.review-current .super-tools{grid-template-columns:repeat(2,minmax(0,1fr));margin:0;gap:8px}
.review-current .super-tools button{padding:12px;gap:5px}.review-current .super-tools strong{font-size:15px}
.review-current .super-tools span{font-size:12px}
@media(max-width:899px){.review-comparison .main-photo{height:50svh;min-height:260px;max-height:520px}.review-current .super-tools span{display:none}.review-current .super-tools button{min-height:64px}.review-current .variants button{flex-basis:96px}.review-photos #retouch-status{display:block}}

.review-current>#compare{font-size:12px;min-height:40px;margin-bottom:6px}

.variant-pager{display:flex;align-items:center;justify-content:center;gap:16px;margin:8px 0}.variant-pager button{min-width:48px;min-height:44px}.variant-pager span{font-size:13px;text-align:center}#editor-photo{touch-action:pan-y}.retouch-reveal{animation:retouch-reveal .85s ease-out}@keyframes retouch-reveal{from{opacity:.15;filter:blur(5px);transform:scale(.985)}to{opacity:1;filter:blur(0);transform:scale(1)}}@media(prefers-reduced-motion:reduce){.retouch-reveal{animation:none}}
/* Photo-first studio: deliberately scoped to step two. */
body:has(#studio:not([hidden])):has(.photo-editor-review:not([hidden])) .editor-header,
body:has(#studio:not([hidden])):has(.photo-editor-review:not([hidden])) .holiday-banner,
body:has(#studio:not([hidden])):has(.photo-editor-review:not([hidden])) #natigora-assistant{display:none!important}
body:has(#studio:not([hidden])):has(.photo-editor-review:not([hidden])) main{max-width:1000px;padding:0 16px 90px}
body:has(#studio:not([hidden])):has(.photo-editor-review:not([hidden])) #editor-main>.payment-note{display:none}
#studio{max-width:860px;margin:auto;color:#163A5F}
.studio-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0}
.studio-heading h1{font-size:22px!important;line-height:1.2;margin:0!important}.studio-heading p{font-size:12px;margin:4px 0 0;color:#617580}
.studio-heading button{font-size:12px;padding:8px 12px;min-height:44px;white-space:nowrap}
.studio-stage{height:clamp(320px,65dvh,720px);position:relative;background:#e9eef0;border-radius:18px;overflow:hidden;display:flex;align-items:center;justify-content:center}
#studio-photo{height:100%;width:100%;object-fit:contain;display:block}#studio-photo[hidden]{display:none}
#studio-badge{position:absolute;bottom:12px;right:12px;padding:5px 9px;border-radius:20px;background:#fffdf0df;color:#435768;font-size:10px}
#studio-wait{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:14px;padding:28px;background:#edf3f6e8}#studio-wait[hidden]{display:none}#studio-wait strong{font-size:21px}#studio-wait p{max-width:320px;font-size:13px;line-height:1.5;margin:0}
.studio-spinner{width:34px;height:34px;border:3px solid #cadce5;border-top-color:#2f7d5a;border-radius:50%;animation:studio-spin 1.2s linear infinite}@keyframes studio-spin{to{transform:rotate(360deg)}}
.studio-caption{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;font-size:12px}.studio-caption button{font-size:11px;padding:6px 10px;min-height:36px}
.studio-results{display:flex;gap:6px;overflow-x:auto;padding:2px 0 8px;scrollbar-width:thin}.studio-result{white-space:nowrap;font-size:11px!important;min-height:36px!important;padding:7px 12px!important;border-radius:22px!important}.studio-result[aria-pressed=true]{background:#163A5F;color:white;border-color:#163A5F}
.studio-toolbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;border-top:1px solid #dbe4e8;padding:8px 0}
.studio-toolbar button{display:flex;flex-direction:column;align-items:center;gap:4px;padding:7px 3px;min-width:0;border:0;background:transparent;border-radius:12px}.studio-toolbar button>span{font-size:28px;line-height:1.1;color:#246346}.studio-toolbar b{font-size:12px;font-weight:500}.studio-toolbar small{font-size:10px;color:#647b87}.studio-toolbar button:hover{background:#eaf2f5}
#studio-panel{position:fixed;z-index:45;left:50%;transform:translateX(-50%);bottom:76px;width:min(560px,calc(100vw - 20px));max-height:56dvh;overflow:auto;padding:16px;background:white;border:1px solid #d5e2e8;border-radius:22px;box-shadow:0 -10px 60px #163a5f26;overscroll-behavior:contain}
.studio-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.studio-panel-heading h2{font-size:18px;margin:0}.studio-panel-heading button{min-width:44px;min-height:44px;font-size:25px;padding:0}
.studio-checks label{display:flex;align-items:center;gap:8px;font-size:14px;min-height:44px;margin:4px 0}.studio-checks label span{margin-left:auto;font-size:12px}.studio-checks input,#studio-slim{width:18px;height:18px;accent-color:#2f7d5a}
#studio-panel select{width:100%;min-height:44px;font-size:16px;margin:6px 0}#studio-panel label{font-size:13px}#studio-panel p{font-size:12px;line-height:1.5}#studio-generate{width:100%;min-height:48px;font-size:14px}.studio-payment-note{text-align:center;color:#617580;margin-bottom:0}#studio-status{font-size:13px;color:#7b4527;line-height:1.5}#studio-status:empty{display:none}.studio-test-note{font-size:10px;color:#71828d;margin:6px 0}
body:has(#studio:not([hidden])):has(.photo-editor-review:not([hidden])) .editor-bottom{z-index:50;padding:10px 16px;gap:12px;background:#fff;box-shadow:0 -2px 16px #163a5f08}
body:has(#studio:not([hidden])):has(.photo-editor-review:not([hidden])) .editor-bottom button{min-height:46px;font-size:14px;padding:10px 16px}
body:has(#studio:not([hidden])):has(.photo-editor-review:not([hidden])) #total{font-size:22px}
@media(max-width:899px){body:has(#studio:not([hidden])):has(.photo-editor-review:not([hidden])) main{padding:0 10px 80px}.studio-stage{height:calc(100dvh - 300px);min-height:220px;max-height:700px;border-radius:12px}.studio-heading{padding:8px 2px}.studio-heading h1{font-size:19px!important}.studio-caption{padding:6px 2px}.studio-toolbar{padding:4px 0}.studio-toolbar b{font-size:11px}.studio-results{padding-bottom:5px}.studio-test-note{margin:3px 0}body:has(#studio:not([hidden])):has(.photo-editor-review:not([hidden])) .editor-bottom button{font-size:12px;padding:8px 12px}body:has(#studio:not([hidden])):has(.photo-editor-review:not([hidden])) #total{font-size:20px}}
@media(prefers-reduced-motion:reduce){.studio-spinner{animation:none}}

body:has(#studio:not([hidden])):has(.photo-editor-review:not([hidden])) .holiday-switch,body:has(#studio:not([hidden])):has(.photo-editor-review:not([hidden])) .holiday-garland{display:none!important}

.studio-results:has(.studio-result:only-child){display:none}.studio-toolbar svg{width:28px;height:28px;stroke:#2f7d5a;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* Preparation must remain visible above the studio toolbar and mobile footer. */
#transition:not([hidden]){display:flex!important;z-index:100}

/* Basic-only launch: the portrait gets the space previously used by add-ons. */
#studio.basic-only{max-width:1000px}
#studio.basic-only .studio-stage{height:clamp(400px,74dvh,960px)}
#studio.basic-only .studio-toolbar,#studio.basic-only #studio-panel{display:none!important}
.studio-coming{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 28px;padding:12px 0;color:#617580;font-size:14px}
.studio-coming[hidden]{display:none}.studio-coming small{font-size:inherit;color:#617580}
@media(max-width:899px){#studio.basic-only .studio-stage{height:calc(100dvh - 220px);min-height:320px;max-height:900px}#studio.basic-only .studio-heading p{font-size:11px}.studio-coming{padding:8px 0;font-size:12px;gap:8px 20px}}

/* 651: persistent location in the flow and a single compact indicator below the photo. */
#network-wait,#transition,#transition:not([hidden]){display:none!important}
#editor-main .steps{display:flex!important;position:sticky!important;top:0!important;right:auto!important;width:100%!important;max-width:none!important;margin:0 0 12px!important;padding:10px 0;background:#f8fafc;z-index:60}
#editor-main .steps span{min-width:0}
#editor-main .steps [aria-current=step]{color:#163a5f;font-weight:700}
.photo-progress{display:flex;flex-direction:column;gap:7px;width:100%;padding:8px 0 12px;color:#163a5f;font-size:13px}
.photo-progress progress{display:block;width:100%;height:4px;border:0;border-radius:4px;overflow:hidden;accent-color:#2f7d5a}
.photo-progress progress::-webkit-progress-bar{background:#dce5e8;border-radius:4px}
.photo-progress progress:indeterminate{background:linear-gradient(90deg,#dce5e8 0 20%,#2f7d5a 20% 45%,#dce5e8 45% 100%);background-size:200% 100%;animation:photo-analysis 1.8s linear infinite}
.photo-progress progress:indeterminate::-webkit-progress-bar{background:transparent}
@keyframes photo-analysis{to{background-position:-200% 0}}
#studio-approval-note{margin:6px 0;color:#617580;font-size:12px}
@media(prefers-reduced-motion:reduce){.photo-progress progress:indeterminate{animation:none}}
/* Reserve room for sticky steps, the under-photo status and the fixed actions. */
#studio.basic-only .studio-stage{height:clamp(260px,calc(100dvh - 300px),900px)}
@media(max-width:899px){#studio.basic-only .studio-stage{height:clamp(220px,calc(100dvh - 320px),760px)}}

@media(max-width:760px){
  body:has(.editor-shell) #natigora-assistant{display:none!important}
}

#cut-guide-field{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:10px 0}
#sheet-photo{max-height:520px;border:1px solid #cfdce5;background:#fff}

.document-value{margin:1.25rem 0;padding:1.25rem;border:1px solid #d8e5ed;border-radius:16px;background:#f4f7f8;color:#202a33}.document-value h2{font-size:1.2rem;color:#163a5f}.document-value ul{display:grid;gap:.75rem;padding-left:1.25rem}.document-value li,.document-value p{font-size:1rem;line-height:1.5}.document-value a{color:#163a5f;text-decoration:underline}

.photo-entry .entry-subtitle{font-size:1rem!important;line-height:1.55!important;max-width:720px}.document-value-points{list-style:none;padding:0!important;margin:14px 0 0!important;gap:12px!important}.document-value-points li{font-size:1rem;line-height:1.55}.document-value>strong{font-size:1.15rem;color:#163a5f}.document-value details{margin-top:16px}

/* Owner 29 November: capture and document form first, explanations below it. */
.photo-entry .entry-information{margin-top:32px;padding-top:24px;border-top:1px solid #d7e3e9}
.photo-entry .entry-information .payment-note{margin:0 0 20px;padding:18px;font-size:1rem}
.photo-entry .entry-information summary{font-size:1rem;line-height:1.5}
.photo-entry .entry-information [data-client-guide]{font-size:1rem;line-height:1.6}
.photo-entry .entry-information [data-client-guide] li{margin-bottom:12px}
.photo-entry .entry-information .entry-subtitle{font-size:1rem!important;line-height:1.5!important}
.photo-entry>.entry-subtitle{font-size:1rem!important;line-height:1.4!important;margin-bottom:16px}
.photo-entry .entry-capture-card{padding:14px}
.photo-entry .entry-private{font-size:.875rem;line-height:1.4}
.photo-entry .upload-drop small{font-size:.875rem;line-height:1.3}
.photo-entry>.consent{font-size:.875rem;line-height:1.4}
@media(max-width:899px){
 .photo-entry h1{font-size:clamp(24px,6.6vw,30px);line-height:1.12}
 .photo-entry .entry-capture-card .upload-drop{min-height:100px;height:clamp(100px,15dvh,130px);gap:6px}
 .photo-entry .source-actions button{font-size:clamp(12px,3.4vw,14px)!important;white-space:normal;line-height:1.3;min-height:48px}
 .photo-entry .source-actions svg{width:20px;height:20px}
 .photo-entry .document-picker>.entry-select{font-size:1rem;line-height:1.4;margin-bottom:6px}
 .photo-entry .document-picker>select{font-size:1rem;min-height:48px;height:auto}
 .photo-entry .document-footnote #open-document-requirements{font-size:.875rem;min-height:36px}
 .photo-entry .mobile-parameters{font-size:.875rem;min-height:44px}
 .photo-entry .entry-private{margin-top:8px}
 .photo-entry .entry-information{margin-top:28px}
}
@media(min-width:900px){
 .photo-entry .entry-grid{gap:24px;align-items:start}
 .photo-entry .entry-capture-card .upload-drop{min-height:180px}
 .photo-entry .entry-settings label,.photo-entry .entry-settings .field-title{font-size:.875rem}
 .photo-entry .entry-information{margin-top:40px}
}

/* Keep the service entry clear on a phone. */
@media(max-width:899px){body:has(.photo-entry:not([hidden])) .holiday-switch,body:has(.photo-entry:not([hidden])) .holiday-garland{display:none!important}.photo-entry .source-actions button{overflow-wrap:normal;word-break:normal}}

.photo-entry>.consent span{font-size:inherit;line-height:inherit}
