/* DetailFlow 1.6.5.68: compact editor and guides */
.df68-add-tile{border-color:#90b3d5!important;background:#eff8ff!important;color:#175987!important;font-weight:800!important}
.df68-design-stage{position:absolute;inset:0;z-index:8;pointer-events:auto;touch-action:none}
.df68-design-wrapper{cursor:default}
.df68-layer{position:absolute;z-index:9;border:1.5px solid transparent;cursor:move;touch-action:none;pointer-events:auto}
.df68-layer.selected,.df68-layer:hover{outline:2px solid #2486e3;outline-offset:-2px;background:rgba(34,128,215,.035)}
.df68-layer .df68-corner{display:none;position:absolute;width:12px;height:12px;border:2px solid #2284dc;border-radius:3px;background:white;box-shadow:0 1px 5px #1237;z-index:10}
.df68-layer.selected .df68-corner{display:block}
.df68-corner.tl{top:-7px;left:-7px;cursor:nwse-resize}.df68-corner.tr{top:-7px;right:-7px;cursor:nesw-resize}.df68-corner.bl{bottom:-7px;left:-7px;cursor:nesw-resize}.df68-corner.br{bottom:-7px;right:-7px;cursor:nwse-resize}
.df68-guide{position:absolute;pointer-events:none;z-index:30;background:#17b2df;box-shadow:0 0 3px #35adeeaa}.df68-guide.vertical{top:0;bottom:0;width:1px}.df68-guide.horizontal{left:0;right:0;height:1px}
.df68-drop-target{outline:3px dashed #13a89a;outline-offset:-6px;background:#d6fff220}
.df68-inline-text{position:absolute;inset:0;width:100%;height:100%;resize:none;border:2px solid #008ec0;padding:2px;box-sizing:border-box;white-space:pre-wrap;z-index:50}
.df68-panel{display:grid;gap:13px;font-size:12px;color:#375268}.df68-panel>header{border-bottom:1px solid #dce5ec;padding-bottom:12px;display:grid;gap:4px}.df68-panel>header strong{font-size:15px;color:#173e5a}.df68-panel>header small{font-size:10px;color:#7a92a1}
.df68-panel details,.df68-fill-panel,.df68-advanced-props{border:1px solid #dfe8ef;border-radius:11px;padding:11px;background:linear-gradient(145deg,#fff,#f9fcff);margin-bottom:10px}.df68-panel details summary,.df68-fill-panel summary,.df68-advanced-props summary{font-weight:800;color:#245474;cursor:pointer;padding:5px;line-height:1.4}.df68-panel label{display:grid;gap:5px;margin:9px 0;font-size:11px;font-weight:700;color:#566d80}
.df68-panel input,.df68-panel select,.df68-panel textarea{width:100%;min-width:0;padding:8px;border:1px solid #cfdae5;border-radius:7px;background:#fff;color:#223d52;font-size:12px;line-height:1.4}.df68-panel input[type=color]{padding:3px;height:37px}.df68-controls{display:grid;grid-template-columns:1fr 1fr;gap:4px 9px}
.df68-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:10px 0}.df68-actions button,.df68-upgrade-tip button,.df68-layer-list button{background:#f3f8fc;border:1px solid #ccdeeb;padding:8px 9px;border-radius:7px;color:#28638c;font-size:11px;font-weight:700;cursor:pointer}.df68-actions .df68-primary,.df68-upgrade-tip .df68-primary,.df68-fill-panel .df68-primary{background:#177f9e;color:white;border-color:#177f9e}.df68-actions .danger{color:#ae3f4c;background:#fff4f5}.df68-help,.df68-fill-panel p,.df68-fill-panel small{font-size:11px;line-height:1.6;color:#738799}.df68-layer-list{display:grid;gap:5px;max-height:260px;overflow:auto}.df68-layer-list button{text-align:left;display:flex;align-items:center;gap:7px}.df68-layer-list button.selected{background:#deeffe;border-color:#4a97db}.df68-layer-list button small{margin-left:auto;font-size:9px;color:#7190a7}
.df68-upgrade-tip{background:#ebf7ff;border:1px solid #b8d9ef;border-radius:10px;padding:12px;display:grid;gap:8px;margin:8px 0 16px}.df68-upgrade-tip strong{color:#245a81;font-size:12px}.df68-upgrade-tip small{font-size:10px;line-height:1.5;color:#60829a}
.df68-fill-panel>p{margin:10px 0}.df68-fill-panel .df68-actions label{display:flex;align-items:center;gap:6px;font-size:11px}.df68-fill-panel input[type=color]{height:33px;width:46px;padding:2px;border:1px solid #b9d1e0;border-radius:6px}.df68-fill-panel strong{font-size:11px;color:#21556d}.df68-advanced-props{margin-top:8px}
.df68-select-row,.df68-select-column{cursor:crosshair!important;background:#d8edf9!important;border:1px solid #85b6d6!important;color:#17638e!important;font-size:10px!important;border-radius:4px!important;margin:1px!important}.df68-select-column{padding:4px 5px!important;display:block!important;width:100%}.df68-select-row{width:25px;height:23px}
.edit-table th.df68-table-picked,.edit-table td.df68-table-picked{background:#d3e9ff!important;box-shadow:inset 0 0 0 1.5px #2583df}

/* v1.6.5.71 - non-destructive photo crop and selection */
.df71-crop-viewport{position:absolute;inset:0;overflow:hidden;pointer-events:none;background:#f5f8fb;z-index:1}
.df71-crop-viewport img{position:absolute;display:block;max-width:none!important;max-height:none!important;object-fit:fill;pointer-events:none;user-select:none}
.df71-crop-mode{outline:2px solid #17b6a6!important;outline-offset:-2px;cursor:grab!important}
.df71-crop-mode:active{cursor:grabbing!important}
.df71-crop-mode .df68-corner{border-color:#15a99b;background:#fff;z-index:15}
.df71-crop-tag{position:absolute;z-index:12;bottom:8px;left:50%;transform:translateX(-50%);background:#087f70ee;color:white;font-size:11px;line-height:1.3;font-weight:700;padding:5px 8px;border-radius:6px;pointer-events:none;white-space:nowrap}
.df71-crop-tools{border:1px solid #b9e7de;border-radius:8px;background:#f0faf8;padding:10px;margin:10px 0}
.df71-crop-tools strong{color:#12655d;font-size:12px}
.df71-crop-tools p{line-height:1.55;color:#647b7b;font-size:11px;margin:6px 0}
.df71-crop-tools>button{margin:5px 0;padding:7px 9px;border:1px solid #80b4ad;border-radius:6px;cursor:pointer;background:white;color:#19675d;font-weight:700;font-size:11px}
.df71-crop-tools>button.df68-primary{background:#0e8878;color:#fff}
.df71-crop-tools label span{color:#12665d;text-align:right;font-size:11px}

/* DetailFlow v1.6.5.75 · interactive rotation & inline typography */
.df68-layer .df75-rotate-handle{display:none;position:absolute;left:50%;top:-31px;transform:translateX(-50%);width:24px;height:24px;line-height:20px;text-align:center;border:2px solid #2688d9;border-radius:50%;background:#fff;color:#2176bb;cursor:grab;font-size:17px;font-weight:800;box-shadow:0 2px 7px #18394c55;z-index:19}
.df68-layer.selected .df75-rotate-handle{display:block}
.df68-layer .df75-design-text-editor{position:absolute;inset:0;z-index:30;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;box-sizing:border-box;outline:2px dashed #20a0c7;border-radius:2px;padding:0;cursor:text;touch-action:auto;background:rgba(255,255,255,.93);transform:translateZ(0)}
.df75-rotation-property .df75-rotate-row{display:flex;align-items:center;gap:7px}.df75-rotation-property input[type=range]{flex:1;min-width:65px}.df75-rotation-property input[type=number]{width:68px;flex:0 0 68px}.df75-rotation-property button{width:35px;flex:0 0 35px;cursor:pointer}

/* v1.6.5.76: vector shapes and editable text inside */
.df76-add-shape{background:#edf8f7!important;color:#14796d!important;border-color:#b5dcd7!important}
.df76-shape-picker{border:1px solid #c6e3e0;border-radius:11px;background:#f7fcfb;padding:10px;margin:8px 0 13px}
.df76-shape-picker>strong{font-size:11px;color:#26786f;display:block;margin-bottom:8px}
.df76-shape-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.df76-shape-grid button{border:1px solid #d5e5e3;border-radius:8px;background:white;display:grid;justify-items:center;gap:2px;padding:7px 2px;min-width:0;cursor:pointer}
.df76-shape-grid button:hover{border-color:#118f7f;background:#ebf8f5}
.df76-shape-grid button span{font-size:23px;line-height:1.2;color:#217e75}
.df76-shape-grid button small{font-size:9px;color:#5e7b80;white-space:nowrap}
.df76-shape-style{background:#f3fafa;border:1px solid #cfe3e1;border-radius:8px;padding:9px;margin:8px 0}
.df68-layer.df76-shape-layer{background:transparent!important}
.df68-layer .df75-design-text-editor.df76-shape-text-editor{background:transparent!important;outline:1.5px dashed #11ac9f;overflow:auto;}

.df76-no-fill-toggle{display:flex;align-items:center;gap:7px;font-size:11px;color:#4b6572;margin-top:8px}
.df76-no-fill-toggle input{margin:0}
.df68-layer .df76-shape-text-hotspot{position:absolute;z-index:18;border:0;background:transparent;cursor:text;padding:0;margin:0;outline:none;border-radius:6px}
.df68-layer .df76-shape-text-hotspot:hover{box-shadow:inset 0 0 0 1.5px rgba(17,172,159,.38);background:rgba(17,172,159,.05)}
.df68-layer .df76-shape-text-hotspot:focus-visible{box-shadow:inset 0 0 0 2px rgba(17,172,159,.75)}
.df68-layer .df75-design-text-editor{scrollbar-width:thin}

/* v1.6.5.80: selected text layer alignment */
.df80-align-label{display:grid;gap:6px;margin:10px 0;padding:10px;background:#f1f8fb;border:1px solid #d5e6ed;border-radius:9px;font-weight:700;color:#31576c;font-size:11px}
.df80-align-label select{padding:9px;border:1px solid #bed4df;background:white;border-radius:7px;color:#183c53;width:100%;font-size:12px}

/* v1.6.5.82 — unobtrusive Photoshop-style rotate handles near four corners */
.df68-layer .df75-rotate-handle{left:auto;top:auto;right:auto;bottom:auto;transform:none;width:18px;height:18px;font-size:13px;line-height:14px;border-width:1.5px;z-index:21}
.df68-layer .df82-rotate-tl{top:-25px;left:-25px}
.df68-layer .df82-rotate-tr{top:-25px;right:-25px}
.df68-layer .df82-rotate-bl{bottom:-25px;left:-25px}
.df68-layer .df82-rotate-br{bottom:-25px;right:-25px}
.df68-layer.df71-crop-mode .df75-rotate-handle{border-color:#11a596;color:#077e73;background:#f1fffc}
.df82-crop-rotation-label{display:grid;gap:7px;font-size:11px;color:#136e67;background:#e9f7f5;border:1px solid #b7ddd8;padding:9px;border-radius:8px}
.df82-crop-rotation-row{display:flex;align-items:center;gap:6px}
.df82-crop-rotation-row input[type=range]{flex:1;min-width:75px}
.df82-crop-rotation-row input[type=number]{width:63px;flex:0 0 63px}
.df82-crop-rotation-row button{width:29px;height:29px;flex:0 0 29px;cursor:pointer;border-radius:5px;border:1px solid #acd2cc;background:white}

/* v1.6.5.83 — Photoshop-style rotation outside corners: reveal only on hover.
   Resize handles remain inside the four corners; rotation hit targets stay outside. */
.df68-layer .df75-rotate-handle{
  width:24px;height:24px;line-height:20px;font-size:16px;
  opacity:0;transition:opacity 100ms ease;
  background:#fff;border:1.5px solid #2688d9;box-shadow:0 2px 7px #18394c40;
  pointer-events:none;cursor:grab;
}
.df68-layer.selected .df75-rotate-handle{pointer-events:auto;opacity:0}
.df68-layer.selected .df75-rotate-handle:hover,
.df68-layer.selected .df75-rotate-handle:focus-visible,
.df68-layer.selected .df75-rotate-handle.df83-rotation-active{opacity:1}
.df68-layer .df82-rotate-tl{top:-30px;left:-30px}
.df68-layer .df82-rotate-tr{top:-30px;right:-30px}
.df68-layer .df82-rotate-bl{bottom:-30px;left:-30px}
.df68-layer .df82-rotate-br{bottom:-30px;right:-30px}
