/* FileShot Image Editor — compact studio UI */
.ie-studio{display:grid;grid-template-columns:48px 1fr 220px;gap:0;border-radius:14px;overflow:hidden;border:1px solid var(--bdr);background:var(--bg2);min-height:420px}
@media(max-width:900px){.ie-studio{grid-template-columns:1fr;grid-template-rows:auto 1fr auto}}
.ie-toolbar{display:flex;flex-direction:column;gap:2px;padding:.45rem .35rem;background:var(--bg);border-right:1px solid var(--bdr)}
@media(max-width:900px){.ie-toolbar{flex-direction:row;flex-wrap:wrap;border-right:none;border-bottom:1px solid var(--bdr);padding:.4rem}}
.ie-toolbar button{width:36px;height:36px;border-radius:8px;border:1px solid transparent;background:transparent;color:var(--t2);cursor:pointer;padding:0;display:flex;align-items:center;justify-content:center}
.ie-toolbar button svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ie-toolbar button.active,.ie-toolbar button:hover{border-color:rgba(250,106,42,.45);color:var(--a,#f7963a);background:rgba(250,106,42,.08)}
.ie-canvas-area{padding:.65rem;min-width:0;background:#0a0a0a;display:flex;flex-direction:column;align-items:center;justify-content:center}
.ie-viewport{position:relative;width:100%;min-height:320px;max-height:70vh;display:flex;align-items:center;justify-content:center;border-radius:10px;border:1px solid var(--bdr);background:#111;overflow:hidden}
.ie-viewport.has-image{min-height:200px}
.ie-viewport canvas{display:block;max-width:100%;max-height:68vh;cursor:crosshair}
.ie-drop-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;cursor:pointer;z-index:2;background:rgba(10,10,10,.92);border:2px dashed rgba(255,255,255,.12);border-radius:10px;transition:border-color .15s}
.ie-drop-overlay.hidden{display:none}
.ie-drop-overlay.drag-over{border-color:var(--a,#f7963a);background:rgba(250,106,42,.06)}
.ie-drop-overlay svg{width:40px;height:40px;stroke:var(--t3);fill:none;stroke-width:1.5}
.ie-drop-overlay p{margin:0;font-size:.82rem;color:var(--t2)}
.ie-text-overlay{position:absolute;inset:0;pointer-events:none;z-index:3}
.ie-text-item{position:absolute;pointer-events:auto;cursor:move;user-select:none;padding:2px 4px;border:1px dashed transparent;font-weight:700;white-space:pre-wrap;max-width:90%;line-height:1.2}
.ie-text-item.selected{border-color:rgba(77,163,255,.8);background:rgba(77,163,255,.08)}
.ie-panel{padding:.65rem .7rem;background:var(--bg);border-left:1px solid var(--bdr);max-height:72vh;overflow-y:auto;font-size:.76rem}
@media(max-width:900px){.ie-panel{border-left:none;border-top:1px solid var(--bdr);max-height:none}}
.ie-panel-section{margin-bottom:.65rem;padding-bottom:.55rem;border-bottom:1px solid var(--bdr)}
.ie-panel-section:last-child{border-bottom:none;margin-bottom:0}
.ie-panel-section h3{font-size:.65rem;text-transform:uppercase;letter-spacing:.07em;color:var(--t3);margin:0 0 .4rem;font-weight:700}
.ie-panel label{display:block;color:var(--t2);margin-bottom:.35rem;font-size:.72rem}
.ie-panel input[type=range]{width:100%;height:4px;margin:.15rem 0 .35rem;-webkit-appearance:none;appearance:none;background:rgba(255,255,255,.1);border-radius:999px}
.ie-panel input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:12px;height:12px;border-radius:50%;background:var(--a,#f7963a);border:none;cursor:pointer}
.ie-panel select,.ie-panel input[type=text],.ie-panel input[type=color]{width:100%;padding:.32rem .45rem;border-radius:6px;border:1px solid var(--bdr);background:var(--bg2);color:var(--t1);font-size:.74rem;margin-top:.15rem}
.ie-panel input[type=color]{height:28px;padding:2px;cursor:pointer}
.ie-btn-row{display:flex;gap:.3rem;flex-wrap:wrap}
.ie-btn{padding:.32rem .55rem;border-radius:6px;border:1px solid var(--bdr);background:var(--bg2);color:var(--t1);font-size:.72rem;cursor:pointer;font-weight:600;flex:1;min-width:0;text-align:center}
.ie-btn-pri{background:linear-gradient(135deg,#ff6a1a,#f7963a);border-color:transparent;color:#111}
.ie-btn:active{transform:scale(.98)}
#ieStatus{font-size:.72rem;color:var(--t3);margin:.4rem 0 0;text-align:center;width:100%}
