/* Inline text tools 0.3.18: no dialog; preserve the original photo/input. */
body.inline-text-editing::before{content:'';position:fixed;inset:0;background:var(--studio-cream,#f7f4ee);z-index:10000}
body.inline-text-editing .tool-tabs,body.inline-text-editing .tool-panel,body.inline-text-editing .checkout,body.inline-text-editing #add-mobile,body.inline-text-editing #mobile-help{visibility:hidden!important}
body.inline-text-editing .inline-text-card{position:fixed!important;z-index:10001!important;padding:0!important;margin:0!important;border:0!important;background:none!important;visibility:visible!important}
.inline-text-card .print-wrap{width:100%!important;margin:0!important;max-width:none!important}
.inline-text-card .photo-stage{pointer-events:none}
.inline-text-card .card-actions,.inline-text-card .quality-badge,.inline-text-card .card-name{display:none!important}
.inline-text-card input.caption{padding:0!important;outline:none!important;box-shadow:none!important}
#text-tools{position:fixed;z-index:10002;padding:4px 8px 6px;border-radius:14px;background:rgba(32,32,32,.92);color:white;box-sizing:border-box;box-shadow:0 4px 20px #0002}
#text-tools .text-strip{display:flex;align-items:center;gap:6px;overflow-x:auto;scrollbar-width:none;padding:3px 0;touch-action:pan-x;min-height:42px}
#text-tools .text-strip::-webkit-scrollbar{display:none}
#text-tools button{flex:0 0 auto;background:transparent;color:white;border:1px solid #ffffff38;border-radius:9px;padding:5px 10px;min-height:36px;font-size:16px;line-height:1.2;font-weight:400}
#text-tools [aria-pressed=true]{background:#fff;color:#222;border-color:#fff}
#text-tools .text-actions{display:flex;gap:8px;align-items:center;margin-top:3px}
#text-tools .text-actions button{display:flex;align-items:center;justify-content:center;width:42px;height:40px;padding:5px;font-size:23px;border:0}
#text-tools .text-spacer{flex:1}
#text-tools .color-wheel{display:block;width:23px;height:23px;border:2px solid white;border-radius:50%;background:conic-gradient(red,#ff0,#0f0,#0ff,#00f,#f0f,red)}
#text-tools #text-colors button{width:34px;height:34px;min-height:34px;padding:0;border-radius:50%;font:10px Arial,sans-serif}
#text-tools #text-colors [aria-pressed=true]{outline:2px solid white;outline-offset:1px}
#text-tools #text-feedback{font:12px Arial,sans-serif;margin:4px 0;color:#ffd3c8}
#crop[open]{display:flex;flex-direction:column;overflow:hidden;height:min(850px,94dvh)}
#crop .crop-stage{flex:1;min-height:0;height:auto;margin:8px 0}
#crop .modal-head,#crop .hint,#crop .edit-modes,#crop-controls,#effect-controls,#crop #apply{flex:none}
#crop .hint{font-size:11px;margin:4px 0}
#crop .edit-modes{display:flex;gap:8px;margin:8px 0}
#crop .edit-modes button{flex:1;min-height:40px;font-size:13px}
#crop [aria-pressed=true]{outline:2px solid #bfd1c0;outline-offset:-2px}
#crop #effect-controls{max-height:190px;overflow:auto}
#crop .grain-options{display:flex;align-items:center;gap:6px;overflow:auto;padding:6px 2px 10px;font-size:12px}
#crop .grain-options button{white-space:nowrap;min-height:40px;font-size:11px;padding:8px}
#crop #apply{min-height:46px}
@media(max-width:700px){#crop[open]{height:100dvh;max-height:100dvh}}
@media(max-height:450px){#crop .crop-actions{margin:4px 0}#crop .hint{display:none}#crop .grain-options{padding:2px}#crop #filters canvas{width:36px;height:36px}#crop #filters{padding-bottom:2px}}
