body[data-view=editor]>.topbar,body[data-view=editor] main>footer{display:none}
#editor{display:flex;flex-direction:column;min-height:min(740px,100svh);padding:12px 0 max(20px,env(safe-area-inset-bottom));font-size:14px}
.intake-nav{display:flex;align-items:center;justify-content:space-between;height:44px;margin-bottom:14px}.intake-nav .text-button{font-size:15px;min-width:60px;text-align:left}.intake-nav>span{font-size:16px;font-weight:600}.intake-nav>i{width:60px}
.intake-title{margin-bottom:20px}.intake-title h1{font-size:26px;line-height:1.3;margin:0 0 6px;font-weight:700;letter-spacing:-.03em}.intake-title p{font-size:14px;color:var(--muted)}
#editor .work-grid{display:block}#editor .photo-panel{padding:0;border:0;box-shadow:none;background:transparent}
.photo-reference{display:flex;align-items:center;gap:14px;height:175px;background:#eef0eb;padding:12px;border-radius:16px}.reference-portrait{height:151px;width:118px;position:relative;flex-shrink:0;overflow:hidden;border-radius:12px}.reference-portrait img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 18%}.reference-portrait:after{content:'';position:absolute;inset:6px;background:linear-gradient(white,white) top left/12px 2px,linear-gradient(white,white) top left/2px 12px,linear-gradient(white,white) top right/12px 2px,linear-gradient(white,white) top right/2px 12px,linear-gradient(white,white) bottom left/12px 2px,linear-gradient(white,white) bottom left/2px 12px,linear-gradient(white,white) bottom right/12px 2px,linear-gradient(white,white) bottom right/2px 12px;background-repeat:no-repeat;pointer-events:none}.reference-portrait>span{position:absolute;bottom:6px;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:11px;background:#202722bb;color:white;padding:2px 10px;border-radius:20px}
.reference-rules{min-width:0;flex:1}.reference-rules ul{list-style:none;padding:0;margin:0;font-size:13px;line-height:1.6}.reference-rules li{margin:5px 0;white-space:nowrap}.reference-rules li:before{content:'✓';margin-right:7px;color:#435243}.reference-rules .text-button{font-size:13px;color:#536153;min-height:44px;text-align:left}
#editor .upload-area{display:none;margin:0}#editor.has-photo .upload-area{display:block;border:1px solid var(--line);border-radius:16px;background:#edf0e9;overflow:hidden}#editor.has-photo .photo-reference{display:none}#editor #photo-preview{display:block;width:100%;height:260px;object-fit:contain;margin:0;border-radius:0}.selected-photo-caption{display:none}#editor.has-photo .selected-photo-caption{display:flex;justify-content:space-between;align-items:center;font-size:13px;margin-top:3px}.selected-photo-caption .text-button{font-size:12px}
#editor .photo-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}#editor .file-button{position:relative;min-height:48px;border-radius:14px;font-size:15px;font-weight:600;display:flex;justify-content:center;align-items:center;padding:10px 6px;overflow:hidden}#editor .file-button input{display:block;position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}#editor .file-button:focus-within{outline:3px solid #71824c;outline-offset:3px}#editor .photo-actions .secondary{background:white;border:1px solid var(--line)}#photo-status{font-size:12px;text-align:center;margin:8px 0 0;line-height:1.6}#photo-status.photo-error{color:#a34532}
#editor .preferences{margin-top:22px;padding:0;border-radius:14px;box-shadow:none}#intake-preferences>summary{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:72px;padding:12px 15px;list-style:none;cursor:pointer}#intake-preferences>summary::-webkit-details-marker{display:none}#intake-preferences>summary:after{display:none}#intake-preferences strong{font-size:15px;display:block}#intake-preferences small{font-size:12px;background:#eef0eb;color:var(--muted);padding:2px 6px;margin-left:5px;font-weight:400;border-radius:4px}.preferences-hint{display:block;color:var(--muted);font-size:12px;margin-top:3px;line-height:1.5}.preference-chevron{font-size:24px;color:#899486}#intake-preferences[open] .preference-chevron{transform:rotate(90deg)}#intake-preferences #preferences-form,#intake-preferences #mode-hint{margin:0 15px}#intake-preferences #mode-hint{font-size:12px;margin-bottom:12px}#intake-preferences .quick-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}#intake-preferences .quick{font-size:12px;padding:9px 6px;gap:4px;min-height:44px}#intake-preferences .more-options>summary{font-size:13px}#intake-preferences .more-options>summary span{font-size:11px}
#editor .photo-policy{margin-top:44px;padding:0}#editor .photo-policy .check{font-size:12px;line-height:1.7;align-items:flex-start;min-height:44px;margin:0;gap:10px}#editor .photo-policy input{width:20px;height:20px;margin-top:3px}#editor .photo-policy a{display:inline-block;padding:4px 0;min-height:28px}#editor .retention-note{font-size:12px;color:var(--muted);margin:0 0 0 30px}#editor .photo-policy details:not([open]){display:none}#editor .photo-policy details{margin:12px 0 0;padding:10px;background:#eef0eb;border-radius:10px}#editor .photo-policy details p{font-size:12px}
#editor .generate-dock{position:static;padding:0;margin:18px 0 0;background:transparent;border:0;backdrop-filter:none;width:100%;max-width:none}#editor .generate{font-size:15px;border-radius:14px;min-height:50px;padding:12px 18px}#editor .generate>span{color:var(--accent);font-size:16px}#editor #quota-note{font-size:12px;margin-top:10px}
.photo-guide-dialog{padding:20px}.photo-guide-dialog h2{font-size:22px;padding-top:8px}.photo-guide-dialog .guide-good{clear:both;max-width:210px;margin:15px auto;text-align:center}.guide-good img{height:240px;object-fit:cover;object-position:50% 18%}.guide-good strong{display:block;font-size:13px;color:#426342;margin-top:6px}.guide-errors{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.guide-errors figure>div{height:145px;overflow:hidden;border-radius:12px;background:#e4e6df}.guide-errors img{width:100%;height:180px;object-fit:cover}.guide-cropped img{transform:translateY(-35px)}.guide-backlit img{filter:brightness(.35)}.guide-errors figcaption{font-size:12px;color:#975043;margin-top:6px}.photo-guide-dialog ul{padding-left:20px;font-size:13px;line-height:1.8;color:var(--muted)}.photo-guide-dialog li{margin-bottom:10px}.photo-guide-dialog .primary{min-height:48px;margin-top:15px}.photo-guide-dialog .dialog-close{width:44px;height:44px}
@media(max-width:360px){.reference-portrait{width:96px}.photo-reference{gap:10px}.reference-rules ul,.reference-rules .text-button{font-size:12px}.preferences-hint{font-size:11px}}
