:root{--text:#152638;--muted:#728195;--line:#e5eaf0;--bg:#f4f7fa;--card:#fff;--navy:#173d66;--blue:#2563eb;--soft-blue:#eef4ff;--shadow:0 3px 12px rgba(22,41,65,.045)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Pretendard,"Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",system-ui,sans-serif;font-size:13px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.4}.hidden{display:none!important}h1,h2,h3,p{margin:0}h2{font-size:17px;font-weight:750;letter-spacing:-.5px}h3{font-size:13px;font-weight:750}.subtle{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:1.5px;color:#7190ad;font-weight:800;margin-bottom:5px}.topbar{height:78px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:28px;padding:0 30px;box-shadow:0 1px 2px rgba(24,41,62,.02)}.brand{display:flex;align-items:center;gap:12px;flex-shrink:0}.brand-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(135deg,#143f71,#3384c9);font-size:17px;font-weight:900;color:#fff;letter-spacing:-2px}.brand-icon span{color:#82d9ed}.brand strong{font-size:20px;line-height:22px;display:block;letter-spacing:-.6px}.brand small{display:block;font-size:10px;margin-top:4px;color:#718195;white-space:nowrap}.beta{background:#edf4fd;color:#43719d;padding:3px 5px;border-radius:4px;font-size:9px;margin-left:5px}.top-tabs{display:flex;align-self:stretch;align-items:stretch;gap:8px;margin-left:14px}.tab{border:0;background:transparent;color:#79879a;font-weight:750;padding:0 18px;border-bottom:3px solid transparent;white-space:nowrap}.tab.active{color:#1455a2;border-color:#2675ce}.header-actions{margin-left:auto;display:flex;gap:8px;align-items:center}.btn{height:38px;border-radius:9px;padding:0 15px;font-size:12px;font-weight:750;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid transparent;white-space:nowrap}.btn.primary{background:#1d64b6;color:white;box-shadow:0 3px 8px #115da51c}.btn.primary:hover{background:#144f99}.btn.muted{background:#fff;color:#40566b;border:1px solid #dce4ed}.btn.muted:hover{background:#f5f9ff}.btn.small{height:33px;padding:0 10px;font-size:11px}.btn.fill{width:100%;margin-top:9px}.ico{font-size:17px}.subbar{height:41px;display:flex;align-items:center;justify-content:space-between;padding:0 30px;border-bottom:1px solid #edf0f4;background:#fbfcfe}.crumb{color:#7c899a;font-size:11px}.crumb span{margin:0 8px;color:#b5bfca}.crumb strong{color:#2b4054}.subbar-status{font-size:11px;color:#7b8fa0}.workspace{display:grid;grid-template-columns:minmax(255px,285px) minmax(440px,1fr) minmax(295px,330px);min-height:calc(100vh - 149px);max-height:calc(100vh - 149px)}.pane{background:#fff;min-width:0;overflow:auto}.left-pane{border-right:1px solid var(--line);padding:25px 17px 25px 20px}.right-pane{border-left:1px solid var(--line);padding:25px 19px}.center-pane{background:#eef2f6;display:flex;flex-direction:column;min-height:0}.pane-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.count{background:#ebf1f8;color:#37638d;padding:5px 9px;border-radius:7px;font-weight:800}.form-section{display:grid;gap:8px;padding-bottom:22px;border-bottom:1px solid var(--line)}.field-label{display:block;font-size:11px;color:#596a7c;font-weight:750;margin-top:4px}.field{width:100%;padding:9px 10px;border:1px solid #dce4eb;border-radius:8px;background:white;color:#23384c;outline:none;min-height:36px;font-size:12px}.field:focus,input:focus,textarea:focus{border-color:#679fdd;box-shadow:0 0 0 3px #3b8ce51b;outline:none}textarea.field{resize:vertical;min-height:90px}.section-row{display:flex;justify-content:space-between;align-items:center;margin:22px 0 12px}.section-row small{font-size:10px;color:#8796a5}.block-list{display:flex;flex-direction:column;gap:7px;min-height:70px}.block-entry{display:flex;gap:9px;align-items:center;padding:9px 8px;border:1px solid #e4eaf0;background:#fff;border-radius:9px;cursor:grab}.block-entry.active{background:#f0f6ff;border-color:#85b7eb}.block-entry.dragging,.preview-unit.dragging{opacity:.45}.block-entry.drag-target,.preview-unit.drag-target{outline:2px dashed #3988cf;outline-offset:2px}.drag-handle{font-size:19px;letter-spacing:-2px;color:#a8b5c4;user-select:none}.block-icon{width:38px;height:38px;flex-shrink:0;background:#eaf1f7;color:#46769c;border-radius:6px;display:grid;place-items:center;font-size:19px}.block-meta{min-width:0;flex:1}.block-meta strong{font-size:12px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.block-meta small{color:#8693a2;font-size:10px}.entry-actions{display:flex;gap:1px}.icon-btn{border:0;background:transparent;color:#8292a3;min-width:22px;height:25px;font-size:14px;border-radius:5px}.icon-btn:hover{background:#e8edf4;color:#3c5a79}.add-section{border-top:1px solid var(--line);margin-top:19px;padding-top:20px}.add-section h3{margin-bottom:13px}.add-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.add-tile{border:1px dashed #cbd6e3;border-radius:9px;min-height:72px;background:#fbfdff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#456077;font-weight:650;font-size:11px}.add-tile span{font-size:21px;color:#3b7ac4}.add-tile:hover{background:#eaf4ff;border-color:#74a9de}.hint{padding:12px;display:flex;gap:8px;background:#f1f6fb;border-radius:9px;color:#73889e;font-size:11px;line-height:1.65;margin-top:21px}.hint-icon{display:grid;place-items:center;border:1px solid #abc2d9;border-radius:50%;width:16px;height:16px;flex-shrink:0;font-weight:800;color:#5983a8}.center-toolbar{background:#fff;border-bottom:1px solid var(--line);min-height:91px;padding:22px 27px;display:flex;align-items:center;justify-content:space-between;gap:14px}.center-toolbar p{font-size:11px;color:#8290a0;margin-top:6px}.toolbar-right{display:flex;align-items:center;gap:8px}.zoom-pill{font-size:11px;background:#f3f6fa;border-radius:8px;padding:9px 12px;color:#8492a1;white-space:nowrap}.zoom-pill strong{color:#40586f}.preview-scroll{overflow:auto;flex:1;padding:25px 30px 40px;display:flex;align-items:center;flex-direction:column}.ruler{width:min(100%,620px);display:flex;justify-content:space-between;color:#9ca9b7;font-size:10px;padding:0 2px 10px}.preview-paper{background:white;width:min(100%,620px);min-height:410px;box-shadow:0 11px 34px #223b5430;position:relative;flex-shrink:0}.empty-state{min-height:400px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;text-align:center}.empty-icon{font-size:57px;color:#afc7dc}.empty-state h3{font-size:16px}.empty-state p{font-size:12px;color:#8496a8}.preview-footnote{font-size:10px;color:#91a0ae;margin-top:20px}.preview-unit{position:relative;cursor:grab;line-height:0}.preview-unit.active{outline:3px solid #3889d5;outline-offset:-3px;z-index:1}.preview-unit:hover:not(.active){outline:2px solid #a6cce7;outline-offset:-2px;z-index:1}.preview-unit canvas{display:block;width:100%;height:auto}.unit-label{position:absolute;left:9px;top:8px;background:#144f8cd9;color:white;border-radius:5px;padding:7px 9px;line-height:1;font-size:10px;font-weight:750;opacity:0;pointer-events:none}.preview-unit:hover .unit-label,.preview-unit.active .unit-label{opacity:1}.preview-gap{height:0;background:#fff}.property-panel{min-height:120px}.property-empty{text-align:center;color:#96a5b4;padding:38px 18px;font-size:12px;line-height:1.7}.property-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;padding-bottom:13px;border-bottom:1px solid var(--line)}.property-head strong{font-size:14px}.property-actions{display:flex;gap:5px}.prop-group{margin:14px 0;display:grid;gap:8px}.prop-row{display:flex;align-items:center;gap:7px}.prop-row>*{flex:1;min-width:0}.prop-note{color:#8090a0;font-size:11px;line-height:1.5}.color-input{height:34px;border:1px solid #dce4eb;border-radius:6px;padding:2px 4px;background:#fff;width:100%}.table-edit-scroll{overflow:auto;max-width:100%;border:1px solid #e1e8ee;border-radius:8px}.edit-table{border-collapse:collapse;width:100%;min-width:280px}.edit-table td,.edit-table th{border:1px solid #e6edf3;padding:4px;font-size:11px}.edit-table th{background:#f1f5f9}.edit-table input{width:80px;min-width:65px;border:1px solid #e1e8ee;background:white;padding:6px;border-radius:5px;font-size:11px}.edit-table button{border:0;background:#eaf0f5;border-radius:4px;padding:3px 5px;font-size:10px}.mini-actions{display:flex;gap:5px;flex-wrap:wrap}.mini-actions button{font-size:11px;background:#edf4fb;border:1px solid #d5e4f2;border-radius:7px;padding:6px 9px;color:#31699a;font-weight:700}.output-settings{border-top:1px solid var(--line);margin-top:24px;padding-top:18px;display:grid;gap:8px}.output-settings h3{margin-bottom:9px}.output-settings input[type=range]{accent-color:#2674c6;width:100%}.footer{height:30px;padding:8px 30px;color:#8190a1;font-size:10px;background:#fbfcfe;border-top:1px solid #e7edf3}.bulk-layout{padding:28px 36px;display:grid;grid-template-columns:minmax(660px,1fr) 330px;gap:22px;min-height:calc(100vh - 149px)}.bulk-hero{margin-bottom:24px}.bulk-hero h1{font-size:24px;letter-spacing:-1.2px}.bulk-hero p{font-size:12px;color:#7e8e9d;margin-top:10px;line-height:1.6}.bulk-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.panel{background:#fff;border:1px solid #e4eaf0;border-radius:13px;padding:20px;box-shadow:var(--shadow)}.panel-head{display:flex;gap:11px;align-items:center;margin-bottom:19px}.panel-head p{font-size:11px;color:#8394a3;margin-top:5px}.step{display:grid;place-items:center;background:#eaf2fc;color:#2c73b6;border-radius:8px;width:38px;height:38px;font-size:12px;font-weight:850}.dropzone{height:148px;border:1.5px dashed #b8cee1;border-radius:10px;width:100%;background:#f9fcff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#3d6585}.dropzone:hover{background:#eff7ff}.dropzone strong{font-size:13px}.dropzone small{font-size:10px;color:#8da1b5}.big-symbol{font-size:29px;color:#4d8ac1}.bulk-options{display:grid;gap:8px;margin-top:17px}.result-panel{grid-column:1/-1}.spread{justify-content:space-between}.head-inner{display:flex;align-items:center;gap:11px}.result-stats{font-size:12px;color:#517393}.blank-bulk{font-size:12px;text-align:center;color:#92a3b2;padding:45px 12px}.bulk-table-area{overflow:auto;max-height:390px}.result-table{width:100%;border-collapse:collapse;font-size:12px}.result-table th{text-align:left;color:#728496;background:#f5f8fb;padding:11px}.result-table td{padding:11px;border-bottom:1px solid #edf1f5}.result-table tr.selected{background:#eff6ff}.result-table tbody tr{cursor:pointer}.result-table tbody tr:hover{background:#f6faff}.status-badge{display:inline-block;padding:5px 7px;font-size:10px;border-radius:5px;background:#e8f8f0;color:#218456}.status-badge.warn{background:#fff2e7;color:#b97826}.bulk-side{align-self:start;position:sticky;top:20px}.bulk-side>p{font-size:11px;line-height:1.5;margin-top:9px}.bulk-preview{background:#edf2f7;min-height:160px;max-height:460px;overflow:auto;margin-top:18px;padding:11px;border-radius:8px}.bulk-preview canvas{width:100%;height:auto;display:block}.bulk-preview .preview-frame{background:#fff;margin-bottom:2px}.bulk-side .hint{margin-top:18px}.mapping-panel{padding-top:14px;display:grid;gap:10px}.mapping-panel .field-label{margin:0}.map-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}.map-preview{max-height:100px;overflow:auto;color:#6f8192;font-size:10px;white-space:pre}.excel-preview{overflow:auto;border:1px solid #e0e8f0;border-radius:8px;max-height:250px;margin:15px 0}.excel-preview table{border-collapse:collapse;min-width:100%;font-size:11px}.excel-preview td,.excel-preview th{border:1px solid #e5ebf0;padding:7px 9px;white-space:nowrap}.excel-preview th{background:#edf4fb;position:sticky;top:0}.modal{position:fixed;inset:0;background:#10223592;display:flex;align-items:center;justify-content:center;padding:20px;z-index:20}.modal-inner{width:min(840px,96vw);max-height:92vh;display:flex;flex-direction:column;background:#fff;border-radius:16px;box-shadow:0 20px 70px #18283f55}.modal-head{padding:25px 27px 15px;border-bottom:1px solid #edf1f5;display:flex;justify-content:space-between}.modal-head h2{font-size:20px}.modal-head p{font-size:12px;color:#8295a4;margin-top:7px}.modal-body{padding:20px 27px;overflow:auto}.modal-row{display:flex;gap:14px}.modal-row label{flex:1;color:#5e7183;font-size:12px;font-weight:750;display:grid;gap:7px}.helper{color:#7d8c9c;font-size:11px;line-height:1.7;margin-top:15px}.modal-foot{padding:15px 27px;display:flex;gap:8px;justify-content:flex-end;border-top:1px solid #edf1f5}.toast-stack{position:fixed;right:22px;bottom:22px;z-index:40;display:grid;gap:8px}.toast{box-shadow:0 6px 22px #17355024;border:1px solid #dce9f7;border-left:4px solid #2775bc;background:white;padding:12px 18px;border-radius:8px;color:#345068;max-width:400px;font-size:12px}.toast.error{border-left-color:#e45d5d}.toast.success{border-left-color:#28a477}.busy{opacity:.65;pointer-events:none}.small-help{margin:6px 0;color:#8296a8;font-size:10px;line-height:1.55}.chip{padding:4px 7px;background:#edf3fa;border-radius:5px;color:#57738e;font-size:10px}.inline-flex{display:flex;align-items:center;gap:6px}.quick-btn{background:#f1f6fc;color:#236ca5;border:1px solid #d5e7f7;border-radius:7px;padding:8px 11px;font-size:11px;font-weight:700}.quick-btn.danger{color:#b15b58;background:#fff6f5;border-color:#f3dfdc}.loading-scrim{position:fixed;inset:0;z-index:99;background:#1020356e;display:flex;align-items:center;justify-content:center}.loading-card{padding:28px 38px;border-radius:14px;background:#fff;text-align:center;min-width:260px;box-shadow:0 20px 50px #081b3644}.loading-card p{margin-top:10px;color:#667d92;font-size:12px}.loading-card strong{font-size:16px}.spinner{width:30px;height:30px;border:3px solid #dceafa;border-top-color:#1873b9;border-radius:50%;animation:spin 1s linear infinite;margin:auto auto 14px}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:1300px){.topbar{padding:0 16px;gap:9px}.header-actions{gap:5px}.header-actions .btn{padding:0 10px}.workspace{grid-template-columns:245px minmax(370px,1fr) 290px}.bulk-layout{grid-template-columns:1fr 290px;padding:22px}.preview-scroll{padding:20px 16px}}@media(max-width:980px){.topbar{height:auto;min-height:76px;flex-wrap:wrap;padding:12px}.header-actions{width:100%;justify-content:flex-end}.top-tabs{margin-left:auto}.workspace{grid-template-columns:220px minmax(320px,1fr);max-height:none}.right-pane{grid-column:1/-1;border-top:1px solid var(--line)}.bulk-layout{grid-template-columns:1fr}.bulk-side{position:static}.subbar{padding:0 15px}}@media(max-width:650px){.workspace{display:flex;flex-direction:column}.pane{overflow:visible}.left-pane{border-right:0;border-bottom:1px solid var(--line)}.center-pane{height:650px}.topbar{gap:12px}.brand{width:100%}.top-tabs{margin:0}.header-actions{overflow:auto;justify-content:flex-start}.bulk-grid{grid-template-columns:1fr}.result-panel{grid-column:auto}.bulk-layout{padding:14px}.modal-row{flex-direction:column}}

/* DetailFlow v1.1: persistent editing columns and direct preview drop. */
body.editor-mode{overflow:hidden}
.workspace{height:var(--editor-height,calc(100dvh - 149px));min-height:0;max-height:none;overflow:hidden}
.workspace>.pane{min-height:0;overflow:hidden}
.left-pane,.right-pane{display:flex;flex-direction:column;padding:0}
.left-pane .pane-top,.right-pane .pane-top{flex:0 0 auto;margin:0;padding:18px 18px 14px;border-bottom:1px solid var(--line)}
.left-pane .form-section{flex:0 0 auto;padding:12px 18px 14px;gap:5px}
.left-pane .section-row{margin:0;padding:15px 18px 10px;flex:0 0 auto}
.left-pane .block-list{flex:1 1 auto;min-height:65px;padding:2px 12px 16px 18px;overflow-y:auto;overscroll-behavior:contain}
.left-pane .add-section{flex:0 0 auto;margin:0;padding:13px 18px 15px;background:#fff;border-top:1px solid var(--line)}
.left-pane .add-section h3{margin-bottom:10px}
.left-pane .add-grid{gap:6px}
.left-pane .add-tile{min-height:55px;gap:2px;font-size:10px}
.left-pane .add-tile span{font-size:17px}
.left-pane .hint{flex:0 0 auto;margin:0;padding:9px 18px;border-radius:0;font-size:10px;max-height:55px;overflow-y:auto}
.right-pane .property-panel{flex:1 1 auto;min-height:0;padding:14px 18px 20px;overflow-y:auto;overscroll-behavior:contain}
.right-pane .output-settings{flex:0 0 auto;margin:0;padding:0;border-top:1px solid var(--line);display:block;max-height:min(48vh,410px);overflow-y:auto;background:#fff}
.output-settings>summary{cursor:pointer;list-style:none;padding:14px 18px;display:flex;justify-content:space-between;font-weight:750;font-size:12px;color:#3d5970}
.output-settings>summary::-webkit-details-marker{display:none}
.output-settings>summary span{font-weight:500;color:#7c91a3;font-size:10px}
.output-settings[open]>summary{border-bottom:1px solid #e6edf3}
.output-settings-body{display:grid;gap:8px;padding:13px 18px 18px}
.output-settings input[type=range]{width:100%}
.center-pane{min-height:0;overflow:hidden}
.center-toolbar{flex:0 0 auto}
.preview-scroll{position:relative;min-height:0;overscroll-behavior:contain}
.preview-paper{isolation:isolate}
.preview-drop-guide{position:absolute;z-index:15;left:-10px;right:-10px;height:5px;background:#1d77e5;border:1px solid #fff;border-radius:10px;pointer-events:none;box-shadow:0 0 0 2px #1d77e555;transform:translateY(-50%)}
.preview-drop-guide::before,.preview-drop-guide::after{content:"";position:absolute;top:-5px;width:13px;height:13px;border-radius:50%;background:#1d77e5;border:2px solid #fff}
.preview-drop-guide::before{left:-6px}.preview-drop-guide::after{right:-6px}
.preview-scroll.drop-active .preview-paper{outline:2px dashed #4a98e5;outline-offset:7px}
.drop-help{width:min(100%,620px);background:#e2efff;border:1px dashed #a5c7ee;border-radius:7px;color:#376eaa;font-weight:700;padding:10px 14px;margin-bottom:14px;text-align:center;font-size:11px;flex-shrink:0}
.preview-unit:active{cursor:grabbing}
@media(max-width:980px){.workspace{grid-template-columns:minmax(185px,225px) minmax(280px,1fr) minmax(220px,260px);max-height:none}.right-pane{grid-column:auto;border-top:0}.left-pane .hint{display:none}}
@media(max-width:750px){body.editor-mode{overflow:auto}.workspace{min-width:740px;height:var(--editor-height,640px);min-height:380px;display:grid;flex-direction:unset}.workspace>.pane{overflow:hidden}.left-pane{border-right:1px solid var(--line)}.center-pane{height:auto}}

/* DetailFlow v1.3 - resize the properties pane without scrolling back to the top. */
@media (min-width: 751px){
 .workspace{grid-template-columns:265px minmax(270px,1fr) 9px var(--right-pane-width,370px);}
 .pane-resizer{position:relative;background:#edf2f7;border-left:1px solid #d8e2ec;border-right:1px solid #d8e2ec;cursor:col-resize;display:flex;align-items:center;justify-content:center;z-index:5;user-select:none;touch-action:none;transition:background .15s;}
 .pane-resizer:hover,.pane-resizer.active,.pane-resizer:focus-visible{background:#d5e8fc;outline:none;box-shadow:inset 0 0 0 2px #6aa8e9;}
 .pane-resizer-grip{font-weight:900;font-size:20px;color:#7395b3;position:sticky;top:46%;pointer-events:none;}
 .right-pane{border-left:0;}
}
@media (max-width:1150px) and (min-width:751px){.workspace{grid-template-columns:210px minmax(250px,1fr) 9px var(--right-pane-width,320px)}}
@media (max-width:750px){.pane-resizer{display:none}.workspace{grid-template-columns:205px minmax(290px,1fr) minmax(240px,1fr)}}
.resize-note{color:#5d88ac;font-size:10px;font-weight:650;white-space:nowrap}
body.resizing-pane,body.resizing-pane *{cursor:col-resize!important;user-select:none!important}
body.resizing-table-column,body.resizing-table-column *{cursor:col-resize!important;user-select:none!important}
.table-data-title{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.table-data-title .subtle{font-size:10px}
.table-row-toolbar{display:flex;align-items:center;gap:4px;flex-wrap:wrap;background:#f4f8fc;border:1px solid #deebf7;padding:7px;border-radius:8px}
.table-row-toolbar strong{font-size:11px;color:#1f5687;margin-right:auto;white-space:nowrap}
.table-row-toolbar button{border:1px solid #cbddef;background:white;border-radius:5px;color:#316ba0;padding:6px 8px;font-size:10px;font-weight:750}
.table-row-toolbar button:hover{background:#e6f3ff}
.table-row-toolbar .table-danger{color:#b25555;border-color:#e7cfcf}
.table-row-toolbar .table-danger:hover{background:#fff1f1}
.table-edit-scroll{max-height:min(54vh,640px);overflow:auto;border-radius:8px;border:1px solid #d6e2ee;background:#fff;overscroll-behavior:contain;}
.edit-table{table-layout:fixed;min-width:0;border-collapse:separate;border-spacing:0;}
.edit-table th,.edit-table td{box-sizing:border-box;border-bottom:1px solid #e3eaf2;border-right:1px solid #e3eaf2;border-top:0;border-left:0;padding:4px;background:#fff;vertical-align:middle}
.edit-table thead th{position:sticky;top:0;z-index:2;background:#eaf1f9;border-bottom:2px solid #c3d4e5;vertical-align:top;}
.edit-table thead th.col-picked{background:#dcecff}
.edit-table .table-index-head,.edit-table .table-action-head{background:#e9f0f7;color:#58718a;text-align:center;padding-top:34px;font-size:10px}
.edit-table .table-col-head{position:sticky;padding:5px 9px 7px 5px;}
.edit-table .table-col-title{display:flex;align-items:center;min-width:0}
.edit-table input{border-radius:4px;border:1px solid #cad8e6;background:#fff;width:100%;min-width:0;max-width:100%;font-size:12px;padding:7px 6px;box-sizing:border-box}
.edit-table input:focus{border-color:#2378d5;background:#f7fbff;outline:2px solid #2378d522}
.edit-table .table-col-title input{font-weight:800;color:#263c51}
.edit-table .column-tools{display:flex;align-items:center;gap:3px;margin-top:5px;min-width:0;}
.edit-table .width-field{display:flex;min-width:0;flex:1;align-items:center;border:1px solid #bdd2e8;border-radius:5px;background:#fff;padding-right:3px;}
.edit-table .width-field input{min-width:0;width:100%;border:0;padding:5px 2px 5px 4px;box-shadow:none;background:transparent;font-variant-numeric:tabular-nums;font-size:11px}
.edit-table .width-field span{font-size:9px;color:#8297a9}
.edit-table .column-tools button,.edit-table .column-small-actions button{border:1px solid #c9d9e9;background:#f8fbff;border-radius:4px;color:#466c91;font-size:10px;white-space:nowrap;font-weight:700;padding:4px 5px;}
.edit-table .column-small-actions{display:flex;gap:3px;margin-top:4px;justify-content:flex-end}
.edit-table .column-small-actions button{min-width:22px}
.edit-table .column-resize-handle{position:absolute;right:-5px;top:0;bottom:0;width:10px;cursor:col-resize;z-index:5;touch-action:none;}
.edit-table .column-resize-handle:after{content:'';position:absolute;top:34%;height:34%;width:3px;left:3px;border-radius:2px;background:#70a4d1;}
.edit-table .column-resize-handle:hover,.edit-table .column-resize-handle.is-resizing{background:#bbdcfcaa}
.edit-table tr.row-picked td,.edit-table tr.row-picked th.row-index{background:#e7f2ff}
.edit-table tbody tr:hover td{background:#f5faff}
.edit-table tr.row-picked td input{border-color:#a4c6e9}
.edit-table .row-index{position:sticky;left:0;z-index:1;background:#f1f5f9;padding:2px}
.edit-table .row-index button{font-weight:800;min-width:32px;width:100%;height:32px;color:#2d679d;background:transparent}
.edit-table .row-index button:focus-visible{outline:2px solid #2a82d3}
.edit-table .table-row-actions{white-space:nowrap;text-align:center;padding:3px}
.edit-table .table-row-actions button{background:#ebf3fc;color:#316aa2;border:1px solid #cfe1f4;margin:1px;padding:5px 4px;font-size:10px;border-radius:4px}
.edit-table .table-row-actions button:hover{background:#d6eaff}
.right-pane .property-panel{padding:14px 14px 20px}
@media(min-width:1300px){.right-pane .property-panel{padding:16px 22px 22px}}

/* DetailFlow 1.4 • workspace tabs, focus mode, gallery editor, final composition */
.top-tabs{display:flex;gap:3px;flex:1;min-width:150px;overflow-x:auto;scrollbar-width:thin;white-space:nowrap;align-items:center}
.dynamic-tab-list{display:flex;align-items:center;gap:3px;min-width:max-content}
.dynamic-tab{flex-shrink:0;max-width:170px;overflow:hidden;text-overflow:ellipsis}
.dynamic-tab.tab-drop-target{box-shadow:inset 4px 0 #0d81e7;background:#d9eeff}
.tab-create-area{flex-shrink:0;padding:12px 17px;background:#eff6ff;border-bottom:1px solid #dbe8f7;display:grid;gap:4px}
.tab-create-area small{font-size:10px;color:#6985a1;line-height:1.35}
.tab-create-btn{background:#fff;border:1px solid #aacdec;color:#246294;font-weight:800;min-height:35px;white-space:normal}
.block-entry.block-hidden{opacity:.53;background:#f6f8fb}
.block-entry.block-hidden strong{text-decoration:line-through}
.eye-button{font-size:18px!important;color:#3573a9!important;font-weight:900}
.workspace{position:relative;--left-pane-current:265px;grid-template-columns:var(--left-pane-current) minmax(270px,1fr) 9px var(--right-pane-width,370px);transition:grid-template-columns .23s ease}
.workspace.left-collapsed{--left-pane-current:0px}
.workspace.left-collapsed .left-pane{visibility:hidden;opacity:0;pointer-events:none}
.left-pane{min-width:0;transition:opacity .17s ease,visibility .17s ease;overflow:hidden}
.left-toggle{position:absolute;left:max(0px,calc(var(--left-pane-current) - 9px));top:48%;width:20px;height:72px;z-index:12;transform:translateY(-50%);border:1px solid #bcd4e9;background:#e6f2ff;color:#256695;font-size:19px;font-weight:900;border-radius:0 8px 8px 0;cursor:pointer;box-shadow:2px 1px 7px #152c4222;transition:left .23s ease}
.left-toggle:hover{background:#cce6ff}
.table-sort-toolbar{display:flex;align-items:end;gap:6px;background:#f0f7fc;border:1px solid #dfebf5;padding:8px 6px;margin:7px 0;border-radius:7px;flex-wrap:wrap}
.table-sort-toolbar label{display:flex;align-items:center;gap:6px;flex:1;min-width:110px;font-size:11px;color:#56708a;font-weight:750}
.table-sort-toolbar select{min-width:90px;max-width:200px;font-size:11px}
.table-sort-toolbar button{border:1px solid #c1d8ed;border-radius:5px;background:#fff;color:#2a6eab;padding:7px;font-size:10px;font-weight:750;white-space:nowrap}
.gallery-layout-buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.gallery-layout-buttons button{min-height:45px;background:#f1f5fa;color:#375574;border:1px solid #d5e2ef;border-radius:8px;font-size:11px;font-weight:750}
.gallery-layout-buttons button.chosen{background:#dceeff;border-color:#74a9db;color:#1d6099;box-shadow:inset 0 0 0 1px #74a9db}
.gallery-item-header{display:flex;justify-content:space-between;align-items:center;margin:15px 0 8px;gap:10px}
.gallery-item-header strong{font-size:12px}
.gallery-items{display:grid;gap:9px}
.gallery-item{border:1px solid #dce6ef;border-radius:9px;padding:10px;background:#f9fbfd}
.gallery-item-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px}
.gallery-item-head strong{font-size:11px;color:#2d5578}
.gallery-item-head>div{display:flex;gap:4px}
.gallery-item-head button{border:1px solid #d3e2ed;background:white;border-radius:4px;padding:3px 7px;color:#386b95}
.gallery-item-fields{display:grid;grid-template-columns:88px minmax(110px,1fr);gap:9px;align-items:start}
.gallery-item-fields>div{min-width:0;display:grid;gap:6px}
.gallery-item-fields label{display:grid;gap:4px;color:#688095;font-size:10px;font-weight:750}
.gallery-item-fields .field{width:100%;font-size:12px;padding:7px}
.gallery-photo{width:88px;min-height:95px;border:1px dashed #90b7d8;background:#ecf5ff;border-radius:8px;overflow:hidden;display:flex;align-items:center;justify-content:center;color:#3172a7;font-size:11px;font-weight:750}
.gallery-photo img{width:100%;height:95px;object-fit:contain;background:#fff}
@media(min-width:751px) and (max-width:1150px){.workspace{--left-pane-current:210px;grid-template-columns:var(--left-pane-current) minmax(250px,1fr) 9px var(--right-pane-width,320px)}}
@media(max-width:750px){.workspace{--left-pane-current:205px;grid-template-columns:var(--left-pane-current) minmax(290px,1fr) minmax(240px,1fr)}.workspace.left-collapsed{--left-pane-current:0px}.left-toggle{display:none}}
.final-layout{padding:24px 32px;min-height:calc(100vh - 149px)}
.final-hero{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}
.final-hero h1{font-size:24px;letter-spacing:-.8px;margin:4px 0 8px}
.final-hero p{font-size:12px;color:#71869a;line-height:1.6}
.final-actions{display:flex;gap:9px;align-items:center}
.final-grid{display:grid;grid-template-columns:minmax(250px,365px) minmax(430px,1fr);gap:16px;align-items:start}
.final-select{align-self:start;position:sticky;top:16px;max-height:calc(100vh - 140px);overflow:auto}
.final-select .section-row{margin:0 0 9px}
.final-selections{display:grid;gap:11px;margin:16px 0}
.final-tab-group{border:1px solid #d7e4f0;border-radius:10px;overflow:hidden}
.final-tab-label{padding:10px 12px;background:#edf5ff;display:flex;gap:7px;align-items:center;cursor:pointer}
.final-tab-label strong{flex:1;font-size:12px}
.final-tab-label small{font-size:10px;color:#6e8399}
.final-blocks{padding:6px 9px 10px;display:grid;gap:3px}
.final-block-label{display:flex;gap:8px;align-items:center;padding:7px 4px;font-size:11px;cursor:pointer}
.final-block-label span{flex:1;overflow:hidden;text-overflow:ellipsis}
.final-block-label small{font-size:10px;color:#aaa}
.final-block-label.disabled{opacity:.5}
.final-options{padding:13px;background:#f5f8fc;border-radius:8px;font-size:11px}
.final-options p{margin-top:7px;color:#8393a3;font-size:10px}
.final-preview-panel{border:1px solid #dce6ef;background:#e8eff5;border-radius:13px;overflow:hidden;min-height:550px}
.final-preview-header{padding:14px 18px;display:flex;justify-content:space-between;align-items:center;background:#fff;border-bottom:1px solid #d8e5ef}
.final-preview-header h3{font-size:14px}
.final-preview-scroll{height:min(78vh,1000px);min-height:450px;overflow-y:auto;overscroll-behavior:contain;padding:20px 24px 38px;max-width:100%}
.final-section-title{margin:18px auto 8px;max-width:860px;color:#476883;text-align:center;font-size:11px;font-weight:800;background:#d8e8f7;border-radius:6px;padding:7px}
.final-unit{width:min(100%,860px);margin:0 auto;background:#fff;overflow:hidden;line-height:0;box-shadow:none}
.final-unit canvas{display:block;max-width:100%;height:auto}
@media(max-width:1080px){.final-grid{grid-template-columns:260px minmax(350px,1fr)}.final-layout{padding:16px}.final-hero{flex-wrap:wrap}}
@media(max-width:740px){.final-grid{grid-template-columns:1fr}.final-select{position:static;max-height:none}.final-preview-scroll{height:70vh}.final-hero h1{font-size:20px}}

.tab-create-actions{display:flex;gap:5px}
.tab-create-actions button{flex:1;border:1px solid #d5e4f3;background:#fff;border-radius:5px;padding:5px 4px;font-size:10px;color:#587995;font-weight:700}
.tab-create-actions #btnDeleteTab{color:#aa6363}

/* DetailFlow 1.5 · closeable tabs and editable illustrated banner presets */
.dynamic-tab-shell{position:relative;display:flex;align-items:stretch;flex-shrink:0;border-radius:7px;overflow:hidden;max-width:225px;cursor:grab}
.dynamic-tab-shell.dragging{opacity:.55}
.dynamic-tab-shell.tab-drop-target{box-shadow:inset 4px 0 #1684d7;background:#dcecff}
.dynamic-tab-shell .dynamic-tab{max-width:183px;min-height:42px;padding-right:9px;border-radius:7px 0 0 7px}
.dynamic-tab-shell .dynamic-tab:not(:has(+ .tab-close-btn)){border-radius:7px}
.tab-close-btn{display:flex;align-items:center;justify-content:center;min-width:23px;width:23px;margin:0;border:0;border-radius:0 7px 7px 0;background:#edf2f6;color:#6d8090;font-size:19px;font-weight:500;cursor:pointer;line-height:1}
.tab-close-btn:hover,.tab-close-btn:focus-visible{background:#fbe0df;color:#a83532;outline:2px solid #e4a09c;outline-offset:-2px}
.dynamic-tab-shell:has(.dynamic-tab.active) .tab-close-btn{background:#d8e9fa;color:#3479ab}
.dynamic-tab-shell:has(.dynamic-tab.active) .tab-close-btn:hover{background:#ffdedb;color:#b63434}
.tab-showcase-btn{width:100%;min-height:36px;border:1px solid #cfb7df;border-radius:7px;background:#faf4ff;color:#79448a;font-weight:800;font-size:11px;padding:6px 8px;cursor:pointer;text-align:center}
.tab-showcase-btn:hover{background:#f3e7fb}
.template-launcher{padding:12px 14px;border-top:1px solid var(--line);background:#fff}
.template-launcher .section-row{padding:0;margin:0 0 8px}
.template-launcher-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.template-tile{min-width:0;min-height:88px;border-radius:8px;border:1px solid #e0e4e9;background:#f8fafb;padding:9px 6px;display:flex;flex-direction:column;gap:3px;justify-content:center;align-items:center;text-align:center;cursor:pointer;transition:transform .16s,border-color .16s}
.template-tile:hover{transform:translateY(-2px);border-color:#5a9dcf}
.template-tile .template-symbol{font-size:16px;font-weight:900;line-height:1.35}
.template-tile strong{font-size:10px;line-height:1.3;white-space:normal}
.template-tile small{font-size:9px;color:#6f7f89;line-height:1.3}
.template-tile.sand{background:#e7dfd0;color:#5f5141}.template-tile.cloud{background:#e9eaee;color:#323b49}.template-tile.blue{background:#dbe6f0;color:#365575}.template-tile.peach{background:#f9e4db;color:#794e40}.template-tile.sage{background:#e1e9df;color:#466047}
.banner-item-editor{display:grid;gap:9px;margin-bottom:12px}
.banner-edit-card{padding:11px;background:#f7f9fc;border:1px solid #dfe6ef;border-radius:9px;display:grid;gap:8px}
.banner-edit-card .gallery-item-head{margin:0}
.banner-edit-card .gallery-item-head>div{display:flex;gap:3px}
.banner-edit-card .gallery-item-head button{border:1px solid #bfcfdd;background:#fff;border-radius:4px;cursor:pointer;padding:3px 7px}
.banner-edit-card label{display:grid;gap:4px;color:#62768a;font-weight:750;font-size:10px}
.banner-edit-card input,.banner-edit-card textarea{font-size:12px}
@media(max-width:740px){.dynamic-tab-shell .dynamic-tab{min-height:36px}.template-launcher-list{grid-template-columns:repeat(2,1fr)}}

/* DetailFlow v1.6: accordion/resizable sidebar and focused 50/50 table layout */
.left-pane{overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin;overscroll-behavior:contain;}
.left-pane .pane-top{position:sticky;top:0;z-index:10;background:white;min-height:62px;}
.left-module{display:flex;flex-direction:column;flex-shrink:0;background:#fff;border-bottom:1px solid #e3ebf3;min-width:0;}
.left-module-header{border:0;width:100%;background:#f6f9fc;display:flex;align-items:center;gap:6px;text-align:left;padding:10px 14px;color:#344f68;cursor:pointer;font-weight:800;font-size:12px;min-height:39px;}
.left-module-header:hover{background:#eaf3fd;color:#1e639e;}
.left-module-header>span:first-child{flex:1;}
.module-chevron{font-size:15px;color:#597e9d;transition:transform .15s ease;}
.module-heading-sub{font-size:9px;font-weight:500;color:#8295a8;white-space:nowrap;}
.left-module.is-collapsed .module-chevron{transform:rotate(-90deg);}
.left-module .left-module-body{flex:0 0 auto;min-height:0;max-height:none;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;}
.left-module.is-collapsed .left-module-body,.left-module.is-collapsed .module-resize-handle{display:none!important;}
.left-pane .left-module .tab-create-area{padding:9px 13px;background:#f3f8ff;align-content:start;display:grid;gap:6px;}
.left-pane .left-module .form-section{padding:9px 14px;display:grid;gap:4px;}
.left-pane .left-module .block-list{padding:10px 12px;display:flex;flex-direction:column;gap:7px;min-height:0;flex:0 0 auto;}
.left-pane .left-module .add-section{padding:9px 13px;background:#fff;border:0;margin:0;}
.left-pane .left-module .template-launcher{padding:9px 12px;border:0;overflow-y:auto;}
.module-resize-handle{height:9px;flex:0 0 9px;border-top:1px solid #d7e3ef;background:linear-gradient(to right,transparent 38%,#aac4dd 38%,#aac4dd 62%,transparent 62%) center / 60px 2px no-repeat,#edf3f9;cursor:row-resize;touch-action:none;}
.module-resize-handle:hover,.module-resize-handle.is-dragging,.module-resize-handle:focus-visible{background-color:#c9e4ff;outline:1px solid #67a3dc;}
body.resizing-modules,body.resizing-modules *{cursor:row-resize!important;user-select:none!important;}
.tab-type-chooser{display:grid;gap:7px;padding:10px 3px;border-top:1px solid #cde1f2;}
.chooser-title{font-weight:800;color:#244d75;font-size:11px;}
.tab-type-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px;}
.tab-type-choice{background:#fff;border:1px solid #d1e1ef;border-radius:7px;padding:8px 5px;min-height:61px;text-align:center;color:#46627b;display:flex;flex-direction:column;justify-content:center;gap:4px;}
.tab-type-choice.selected,.tab-type-choice[aria-pressed="true"]{background:#dfeeff;color:#1e5d9c;border-color:#589bd7;box-shadow:inset 0 0 0 1px #589bd7;}
.tab-type-choice b{font-size:11px;white-space:normal;}.tab-type-choice small{font-size:9px;color:#6e8ba4;line-height:1.3;}
.chooser-actions{display:flex;gap:6px;}.chooser-actions .btn{flex:1;height:33px;padding:0 5px;font-size:11px;}
.left-pane .hint{margin-top:0;flex:0 0 auto;min-height:30px;}
@media(max-width:750px){.workspace .left-pane{overflow-y:auto!important;}}

/* DetailFlow v1.6.2: The application opens without creating a default editing tab. */
.workspace.is-welcome{grid-template-columns:minmax(0,1fr)!important;display:grid!important;align-items:stretch;background:#f4f7fb}
.workspace.is-welcome > :not(.welcome-screen){display:none!important}
.workspace .welcome-screen{display:none}
.workspace.is-welcome .welcome-screen{display:flex!important;grid-column:1;grid-row:1;flex-direction:column;align-items:center;justify-content:center;min-height:0;padding:25px;overflow-y:auto}
.welcome-create-btn{font-size:16px!important;font-weight:800!important;border-radius:13px!important;min-height:66px;padding:17px 34px!important;box-shadow:0 12px 30px rgba(25,93,170,.18)}
.welcome-chooser{width:min(520px,100%);padding:26px;background:white;border:1px solid #e1e9f1;border-radius:18px;box-shadow:0 18px 55px rgba(21,47,82,.11);display:grid;gap:12px}
.welcome-chooser h2{font-size:19px}
.welcome-subtitle{font-size:12px;color:#70869d;margin-bottom:6px}
.welcome-chooser .tab-type-grid{gap:9px}
.welcome-chooser .tab-type-choice{min-height:68px}
.welcome-chooser .chooser-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}
.gallery-item-footer{border-top:1px solid #e2ebf2;padding:13px 0 4px;display:flex;justify-content:center}
.gallery-item-footer .quick-btn{width:min(300px,100%);padding:11px;border:1px dashed #99b8d4;background:#f5faff;font-weight:800}

/* DetailFlow v1.6.3: gallery Excel mapper and ordered batch photo queue */
.gallery-import-tools{border:1px solid #b9d6eb;border-radius:11px;background:linear-gradient(180deg,#edf7ff,#fafdff);padding:12px;margin:12px 0 14px}
.gallery-import-heading{display:flex;align-items:center;gap:8px;font-size:12px;color:#25577e;margin-bottom:10px}
.gallery-import-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.gallery-import-actions .quick-btn{white-space:normal;min-height:42px;background:white;font-size:11px;border-color:#a8cbe7}
.gallery-excel-modal{width:min(1000px,97vw)}
.gallery-excel-modal .modal-row{flex-wrap:wrap;gap:9px;margin-bottom:10px}
.gallery-excel-modal .modal-row label{min-width:140px}
.gallery-excel-modal .gallery-mapping-row label{min-width:125px}
.gallery-excel-extra{display:flex;gap:6px;flex-wrap:wrap;padding:8px;border:1px solid #e3ebf4;border-radius:7px;background:#f8fbff}
.gallery-excel-checkbox{font-size:11px;display:flex;align-items:center;gap:4px;color:#486981;white-space:nowrap}
.gallery-excel-checkbox:has(input:disabled){opacity:.45}
.gallery-excel-preview-head{display:flex;justify-content:space-between;align-items:center;margin:12px 0 6px;font-size:12px;color:#3b6687}
.gallery-excel-preview-head span{font-size:11px;color:#6e889c}
.gallery-excel-preview{margin:0;max-height:210px}
.gallery-excel-preview .preview-details{white-space:pre-line;min-width:170px;max-width:360px;line-height:1.55}
.photo-queue-title{display:flex;justify-content:space-between;align-items:center;margin-top:12px;font-size:12px;gap:9px}
.photo-queue-title button{font-size:10px;padding:5px 7px}
.photo-queue-list{display:grid;gap:5px;max-height:350px;overflow:auto;margin-top:8px;padding-right:3px}
.photo-queue-row{display:flex;align-items:center;gap:5px;border:1px solid #d5e7f4;border-radius:6px;background:white;padding:5px;cursor:grab;min-width:0}
.photo-queue-row.moving{opacity:.45}
.photo-queue-row.drop-over{border:2px solid #3b95d7;background:#ecf7ff}
.photo-queue-grip{font-size:15px;color:#7e9bb2}
.photo-queue-number{font-size:10px;font-weight:800;color:#216da8;min-width:17px;text-align:center}
.photo-queue-row img{width:32px;height:36px;object-fit:cover;background:#f1f3f5;border-radius:3px}
.photo-queue-meta{display:grid;min-width:0;flex:1;gap:4px;overflow:hidden}
.photo-queue-meta strong{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.photo-queue-meta small{font-size:10px;color:#738d9e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.photo-queue-row button{border:1px solid #d8e5ed;background:#f4f9fc;border-radius:4px;padding:5px;color:#24628e;min-width:22px}
.photo-queue-foot{display:flex;margin-top:10px}
.photo-queue-foot .btn{flex:1;font-size:11px}
@media(max-width:660px){.gallery-import-actions{grid-template-columns:1fr}}

/* v1.6.4: gallery global attribute schema */
.gallery-schema{margin:14px 0;border:1px solid #b6cfe4;background:#f2f8fe;border-radius:10px;padding:12px}
.gallery-schema-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.gallery-schema-head strong{font-size:12px;color:#1e557e}
.gallery-schema-head small{display:block;font-weight:500;color:#6c90a8;margin-top:3px}
.gallery-schema-head .quick-btn{font-size:11px;padding:7px;white-space:nowrap}
.gallery-fields-editor{display:grid;gap:6px;margin-top:10px}
.gallery-schema-row{display:flex;align-items:center;gap:5px;padding:6px;background:#fff;border:1px solid #d5e5f1;border-radius:6px;cursor:grab}
.gallery-schema-row.moving{opacity:.5}.gallery-schema-row.over{background:#e1f3ff;border:2px solid #2689ce}
.gallery-schema-grip{font-size:20px;color:#7f95a5;cursor:grab;line-height:1}
.gallery-schema-ordinal{min-width:18px;font-size:10px;color:#7f8fa2;text-align:center}
.gallery-schema-row .field{flex:1;min-width:80px;padding:7px;font-size:12px}
.gallery-schema-row button{border:1px solid #d2e1eb;background:#f4f8fb;border-radius:4px;color:#456b86;min-width:24px;padding:5px;cursor:pointer}
.gallery-schema-row button.danger{color:#b13f46;background:#fff5f5;border-color:#f2d3d4}
.gallery-item-fields label small{font-size:9px;font-weight:500;color:#9aa7b3;margin-left:4px}
.gallery-excel-preview table{min-width:700px}
/* v1.6.4: in-panel 10–100% zoom that never upscales the original canvas */
.final-preview-header{gap:12px;flex-wrap:wrap}
.final-preview-title{display:flex;flex-direction:column;gap:3px}
.final-zoom-controls{display:flex;align-items:center;gap:6px;min-width:0}
.final-zoom-controls button{height:31px;min-width:31px;border:1px solid #d1e1ed;border-radius:6px;background:#f4f8fc;color:#37607f;font-size:15px;cursor:pointer}
.final-zoom-controls input[type=range]{width:135px;accent-color:#3577aa;cursor:pointer}
.final-zoom-controls output{font-variant-numeric:tabular-nums;min-width:43px;text-align:right;font-size:12px;font-weight:800;color:#37607f}
.final-zoom-controls #finalZoomReset{font-size:11px;font-weight:750;padding:0 8px}
.final-zoom-stage{max-width:100%;margin:0 auto;transition:width .12s ease-out}
.final-zoom-stage .final-section-title{max-width:100%;width:100%;margin:18px 0 8px}
.final-zoom-stage .final-unit{width:100%;max-width:100%;margin:0 auto}
@media(max-width:800px){.final-zoom-controls input[type=range]{width:90px}}

/* v1.6.5: uploaded on the palette identity replacing the top-left DF brand. */
.topbar .brand{display:flex;flex:0 0 auto;align-items:center;justify-content:flex-start;gap:0;min-width:184px;}
.topbar .brand-logo{display:block;width:184px;height:68px;max-width:100%;object-fit:contain;object-position:left center;}
@media(max-width:1300px){.topbar .brand{min-width:165px}.topbar .brand-logo{width:165px;height:62px;}}
@media(max-width:650px){.topbar .brand{width:100%;min-width:0}.topbar .brand-logo{width:170px;height:65px;}}

/* Added on top of original v1.6.5, no other layout changes. */
.image-gap-editor{padding:12px;border:1px solid #deebf5;border-radius:10px;background:#f8fbff}
.image-gap-editor strong{font-size:12px;color:#345a7a}
.image-gap-check{display:flex;align-items:center;gap:8px;color:#435e79;font-size:12px;cursor:pointer}
.image-gap-check input{flex:none}
.image-gap-all{width:100%;padding:9px}
.spacer-preview-unit{position:relative}
.spacer-preview-unit canvas{background:var(--df-spacer-preview-bg,#fff);opacity:1}
.spacer-height-label{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:12px;line-height:1;background:#fff;border:1px dashed #b7cbdc;border-radius:999px;padding:5px 9px;color:#56728b;pointer-events:none}
.final-gap-unit{background:#fff;width:100%}

/* v1.6.5.2: direct editing, draggable spacer boundaries, unchanged base layout */
.spacer-resizing,.spacer-resizing *{cursor:ns-resize!important;user-select:none!important}
.spacer-preview-unit{overflow:visible;touch-action:pan-x}
.spacer-grip{position:absolute;left:0;right:0;height:16px;display:flex;justify-content:center;align-items:center;z-index:9;cursor:ns-resize;touch-action:none;opacity:0;transition:opacity .15s;background:linear-gradient(to bottom, transparent 0, #448fd680 48%,#448fd680 54%, transparent 100%)}
.spacer-grip span{background:#2879c8;color:#fff;line-height:1;font-size:11px;border-radius:9px;padding:2px 18px;pointer-events:none}
.spacer-grip-top{top:-7px}.spacer-grip-bottom{bottom:-7px}
.spacer-preview-unit.active .spacer-grip,.spacer-preview-unit:hover .spacer-grip{opacity:1}
.preview-inline-text{position:absolute;inset:0;width:100%;max-width:100%;background:#fff;white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto;outline:none;cursor:text;z-index:2;min-height:100%;line-height:1.65;box-sizing:border-box}
.preview-inline-text:focus{box-shadow:inset 0 0 0 2px #8ec2f0}
.preview-text-panel{position:absolute;top:12px;right:8px;width:min(94%,440px);z-index:12;background:white;box-shadow:0 12px 44px #153c6470;border:1px solid #bcd1e3;border-radius:12px;line-height:1.5;cursor:default;color:#263f54;max-height:min(70vh,480px);overflow:hidden;display:flex;flex-direction:column}
.preview-text-panel-head{padding:12px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e3e9f1}
.preview-text-panel-head button{border:0;background:#2678c0;color:#fff;padding:7px 12px;border-radius:7px;cursor:pointer}
.preview-text-panel-body{padding:12px;overflow:auto;display:grid;gap:10px}
.preview-text-panel-body label{display:grid;gap:5px;font-weight:650;font-size:11px;color:#5b7287}
.preview-text-panel-body input,.preview-text-panel-body textarea{border:1px solid #d2deeb;border-radius:6px;padding:8px;font:inherit;width:100%;color:#24384e;background:#fff;font-size:12px}
.preview-text-panel-body textarea{min-height:60px;resize:vertical}


/* poster banner tab */
.banner-select-toolbar{display:flex;align-items:center;gap:14px;justify-content:space-between;padding:8px 10px 14px;font-size:13px;color:#5b6d7e}
.banner-select-all{display:inline-flex;align-items:center;gap:8px;font-weight:700;color:#1b3552}
.banner-select-note{font-size:12px;color:#6d7b89}
.poster-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:22px;align-items:start}
.poster-unit{position:relative;background:#eef2f6;border:1px solid #d9e1e8;border-radius:18px;padding:14px;box-shadow:0 10px 30px rgba(11,37,62,.06)}
.poster-unit canvas{display:block;width:100%;height:auto;border-radius:10px;background:#fff}
.poster-unit.active{border-color:#77a8e8;box-shadow:0 0 0 3px rgba(97,149,216,.16),0 16px 34px rgba(11,37,62,.08)}
.poster-check{position:absolute;right:18px;top:18px;z-index:3;display:inline-flex;align-items:center;justify-content:center}
.poster-check input{width:22px;height:22px;accent-color:#2b74d8}
.poster-caption{padding-top:10px;font-size:12px;color:#6a7886;word-break:break-all}

/* DetailFlow v1.6.5.4: dedicated banner strip and on-canvas photo tools */
#editorView.poster-editor-mode .preview-scroll{padding:22px 25px 40px}
#editorView.poster-editor-mode .preview-paper{width:100%;max-width:100%;min-height:0;background:transparent;box-shadow:none}
#editorView.poster-editor-mode .ruler{display:none}
#editorView.poster-editor-mode .center-toolbar{min-height:80px}
.banner-select-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid #dce6f0;border-radius:12px;padding:11px 14px;margin-bottom:16px;box-shadow:0 3px 12px #173c6110}
.poster-select-group{display:flex;align-items:center;gap:12px}
.poster-selection-count{font-size:11px;color:#637d99}
.poster-add-action{font-weight:800!important;color:#fff!important;background:#246bb9!important;border-color:#246bb9!important;border-radius:9px!important;padding:10px 13px!important}
.poster-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(210px,100%),1fr));gap:16px;align-items:start;width:100%}
.poster-unit{width:100%;min-width:0;max-width:none;margin:0;border:1px solid #dce5ef;border-radius:13px;padding:10px 10px 12px;background:#fff;cursor:default;line-height:1.35;outline:none;box-shadow:0 4px 18px #18395615}
.poster-unit.active{border-color:#2878ca;outline:2px solid #529ded;outline-offset:0;box-shadow:0 3px 20px #1d72c51a}
.poster-unit canvas{border-radius:0}
.poster-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px;font-size:12px;min-height:25px}
.poster-number{font-weight:750;color:#344d68;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.poster-check{position:static;padding:0;display:flex;gap:5px;align-items:center;font-size:11px;white-space:nowrap;color:#5b7187}
.poster-check input{height:17px;width:17px;accent-color:#2472c1;cursor:pointer}
.poster-photo-stage{position:relative;aspect-ratio:1;overflow:hidden;cursor:grab;background:#edf2f7;touch-action:none}
.poster-photo-stage.is-transforming{cursor:grabbing}
.poster-photo-stage canvas{display:block;width:100%;height:100%;object-fit:fill;pointer-events:none;user-select:none;-webkit-user-drag:none}
.poster-transform-outline{position:absolute;inset:3px;border:1.5px dashed #eff8ff;box-shadow:inset 0 0 0 1px #147ad2a8,0 0 0 1px #147ad250;pointer-events:none;opacity:0;transition:opacity .12s}
.poster-unit.active .poster-transform-outline{opacity:1}
.poster-corner{position:absolute;width:14px;height:14px;background:#fff;border:2px solid #1674d0;border-radius:3px;box-shadow:0 1px 4px #112d4d57;pointer-events:auto;display:none}
.poster-unit.active .poster-corner{display:block}
.poster-corner-tl{left:-2px;top:-2px;cursor:nwse-resize}.poster-corner-br{right:-2px;bottom:-2px;cursor:nwse-resize}
.poster-corner-tr{right:-2px;top:-2px;cursor:nesw-resize}.poster-corner-bl{left:-2px;bottom:-2px;cursor:nesw-resize}
.poster-card-hint{font-size:10px;color:#8a9cae;line-height:1.45;margin-top:8px;text-align:center}
.poster-empty-grid{grid-column:1/-1;text-align:center;padding:50px;color:#8091a4;background:white;border-radius:12px}
.poster-image-error{display:flex;align-items:center;justify-content:center;height:100%;color:#c53f45;font-size:11px;padding:18px;text-align:center}
.poster-prop-add{display:flex;flex-direction:column;gap:10px;background:#f1f7ff;border:1px solid #d6e7fa;border-radius:12px;padding:12px 14px;margin:0 0 16px}
.poster-prop-add p{font-size:11px;color:#647b94;line-height:1.5}
.poster-property-guide{display:flex;gap:12px;align-items:flex-start;padding:12px;border-radius:12px;background:#f2f7fc;color:#25476b;font-size:12px}
.poster-property-guide p{font-size:11px;color:#6d8093;line-height:1.65;margin-top:7px}
.poster-guide-symbol{font-size:28px;color:#2876c1;font-weight:400;line-height:1}
.poster-photo-buttons{margin:12px 0 7px}
.poster-photo-buttons button{background:#fff;border:1px solid #d9e7f5;color:#3f729e;border-radius:8px;padding:7px 10px}
.poster-zoom-info{color:#71869c;font-size:11px;line-height:1.6;margin-bottom:12px}
.poster-export-check{display:flex;gap:8px;align-items:center;font-size:12px;color:#425d7a;padding:10px;background:#fcfdff;border:1px solid #e3ecf4;border-radius:9px}
.poster-export-check input{accent-color:#236bbc}
.poster-tone-panel{border-top:1px solid #e2e9f0;padding-top:17px;margin-top:18px}
.tone-panel-title{display:flex;justify-content:space-between;align-items:baseline;font-size:14px;font-weight:800;color:#29425b}
.tone-panel-title small{font-weight:400;font-size:10px;color:#8091a0}
.tone-group-label{font-size:12px;color:#53677a;border-bottom:1px solid #e8edf3;padding:12px 0 8px;margin-bottom:5px}
.tone-control{display:grid;grid-template-columns:74px minmax(0,1fr) 33px;gap:8px;align-items:center;min-height:29px}
.tone-control label{font-size:11px;color:#485e73;white-space:nowrap}
.tone-control output{text-align:right;font-size:10px;color:#6b89a8;font-variant-numeric:tabular-nums}
.tone-control input[type=range]{appearance:none;-webkit-appearance:none;width:100%;height:3px;border:0;border-radius:8px;background:linear-gradient(90deg,#d6e0eb,#9bbad8);padding:0;margin:0;cursor:pointer}
.tone-control input[type=range]::-webkit-slider-thumb{appearance:none;width:12px;height:12px;border-radius:50%;background:#fff;border:2px solid #367cbd;box-shadow:0 1px 3px #0e375351}
.tone-control input[type=range]::-moz-range-thumb{width:10px;height:10px;border-radius:50%;background:#fff;border:2px solid #367cbd}
.tone-action{display:flex;justify-content:flex-end;margin-top:12px}
.tone-action .quick-btn{font-size:11px;padding:7px 10px}
@media(min-width:1550px){.poster-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

.poster-toolbar-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.poster-base-inline{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:#32495f}
.poster-base-input{height:36px;padding:0 12px;border:1px solid #c9d4e2;border-radius:10px;min-width:180px;background:#fff;color:#23384c}
.tone-inputs{display:grid;grid-template-columns:1fr 86px;gap:10px;align-items:center}
.tone-number{height:34px;border:1px solid #cfd7e3;border-radius:9px;padding:0 10px;background:#fff;color:#213548;font:600 13px/1 "Malgun Gothic",sans-serif}
.tone-number:focus,.poster-base-input:focus{outline:none;border-color:#4f8fe6;box-shadow:0 0 0 3px rgba(79,143,230,.15)}
@media (max-width: 1100px){.banner-select-toolbar{align-items:flex-start;flex-direction:column}.poster-toolbar-right{width:100%;justify-content:space-between}}

/* v1.6.5.6: prioritize long Lightroom-style sliders and compact direct numeric input. */
.tone-control{grid-template-columns:66px minmax(0,1fr);gap:6px;min-height:31px}
.tone-control label{font-size:10.5px}
.tone-inputs{display:grid;grid-template-columns:minmax(0,1fr) 48px;align-items:center;gap:6px;min-width:0}
.tone-number{box-sizing:border-box;width:48px;min-width:0;height:24px;border:1px solid transparent;border-radius:5px;padding:0 2px;text-align:center;font-size:10.5px;font-variant-numeric:tabular-nums;color:#576c80;background:transparent;appearance:textfield;-moz-appearance:textfield}
.tone-number:hover,.tone-number:focus{border-color:#8aafd7;background:#fff}
.tone-number::-webkit-inner-spin-button,.tone-number::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.tone-control input[type=range]{min-width:0}

/* v1.6.5.7 - 상품정보고시 탭: 기존 DetailFlow 스타일 유지 */
.notice-workflow{background:#fff;border:1px solid #dce5ef;border-radius:16px;padding:17px;margin:0 0 18px;box-shadow:0 4px 18px #173a5b0b;color:#253a4f}
.notice-workflow-header{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding-bottom:13px;border-bottom:1px solid #e7edf3}
.notice-workflow-header strong{font-size:16px;color:#1d3f61}
.notice-workflow-header p{font-size:12px;color:#718093;margin:6px 0 0;line-height:1.55}
.notice-site-links{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.notice-site-links a{background:#f3f7fb;border:1px solid #dce5ef;border-radius:8px;padding:7px 9px;color:#285b8d;text-decoration:none;font-size:12px;white-space:nowrap}
.notice-import-actions{display:flex;align-items:center;gap:10px;padding:15px 0;flex-wrap:wrap}
.notice-source-label{font-size:12px;color:#64748b;flex:1;min-width:180px}
.notice-search-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.notice-search-actions .field{flex:1;min-width:170px}
.notice-search-actions button{white-space:nowrap}
.notice-results-head{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#5d7085;margin:12px 2px 8px}
.notice-search-results{max-height:200px;overflow:auto;border:1px solid #dfe6ef;border-radius:12px;background:#fbfcfe}
.notice-result-row{display:flex;gap:10px;align-items:start;padding:10px 12px;border-bottom:1px solid #edf0f4;cursor:pointer}
.notice-result-row:last-child{border-bottom:0}
.notice-result-row:hover{background:#edf6ff}
.notice-result-row input{margin-top:3px;accent-color:#2567b7;width:16px;height:16px}
.notice-result-row span{display:block;flex:1;min-width:0}
.notice-result-row strong{display:block;font-size:13px;font-weight:700;color:#2d4055}
.notice-result-row small{display:block;font-size:11px;color:#8391a2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.notice-no-results{padding:20px;text-align:center;font-size:12px;color:#8391a2}
.notice-result-foot{padding:10px 12px;font-size:11px;color:#7c8795;background:#f6f8fa}
.notice-create-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #e5ecf2;margin-top:14px;padding-top:13px;font-size:12px;color:#607386}
.notice-create-bar b{color:#175fa2}
.notice-render-area{border-radius:14px;background:#fff;padding:0;overflow:hidden;margin-bottom:16px;box-shadow:0 8px 23px #1a385117}
.notice-canvas{display:block;width:100%;height:auto;image-rendering:auto}
.notice-empty-preview{text-align:center;padding:55px 24px;color:#6d7d8e;border:1px dashed #dce5ee;border-radius:12px;line-height:1.7}
.notice-empty-preview strong{color:#32495f}
.notice-empty-preview p{font-size:12px;margin:12px 0 0}
.notice-error{padding:18px;color:#b94a42;background:#fff5f5}
.notice-prop-help{background:#eff6ff;border-radius:10px;padding:12px;color:#527091;font-size:12px;line-height:1.55;margin-bottom:14px}
.notice-prop-items{display:flex;flex-direction:column;gap:10px;margin:10px 0 20px}
.notice-prop-row{background:#f9fbfd;border:1px solid #e1e8ef;border-radius:12px;padding:10px}
.notice-prop-row-top{display:flex;justify-content:space-between;gap:10px;align-items:center}
.notice-prop-row-top strong{font-size:12px;color:#3c536c;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.notice-prop-row-top div{display:flex;flex-shrink:0}
.notice-prop-row-top button{cursor:pointer;border:1px solid #dce5ed;background:#fff;border-radius:6px;padding:4px 7px;margin-left:3px}
.notice-prop-row .field{font-size:12px}
.notice-prop-row textarea{min-height:58px;line-height:1.55;resize:vertical}
@media (max-width:1000px){.notice-workflow-header{flex-direction:column}.notice-create-bar{flex-wrap:wrap}.notice-site-links{width:100%}}

/* v1.6.5.8 — 선물세트 구성 과자 → 상품정보고시 DB 매칭 */
.notice-set-workflow{padding:17px 17px 22px}
.notice-text-link{background:transparent;border:1px solid #c9d9e7;border-radius:8px;padding:8px 10px;color:#2c638b;font:600 12px inherit;cursor:pointer}
.notice-set-imports{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0 9px}
.notice-set-import-card{position:relative;display:flex;align-items:flex-start;flex-direction:column;gap:9px;padding:14px 14px 13px 48px;background:#f6f9fc;border:1px solid #dfe8f0;border-radius:12px;min-width:0}
.notice-import-step{position:absolute;left:14px;top:14px;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:#e4effc;color:#2062a3;font-size:13px;font-weight:800}
.notice-set-import-title{font-weight:800;color:#28435e;font-size:13px}
.notice-set-import-card .quick-btn{background:#fff;color:#265a91;border-color:#cbdcec;font-weight:700;font-size:12px}
.notice-set-import-card small{font-size:11px;color:#6a7e91;line-height:1.4;word-break:break-word}
.notice-set-disclaimer{color:#6c7d8e;font-size:11px;line-height:1.55;margin:0 2px 16px}
.notice-set-two-col{display:grid;grid-template-columns:minmax(210px,32%) minmax(0,1fr);gap:14px;align-items:start}
.notice-set-left,.notice-set-right{min-width:0;background:#fff;border:1px solid #dbe5ef;border-radius:12px;padding:13px}
.notice-set-left>.field-label{display:flex;justify-content:space-between;margin:0 0 8px}
.notice-count{color:#427aaf}
.notice-set-list{margin-top:10px;max-height:480px;overflow:auto;display:flex;flex-direction:column;gap:6px}
.notice-set-choice{display:flex;align-items:center;justify-content:space-between;gap:9px;width:100%;padding:10px 9px;text-align:left;border-radius:9px;border:1px solid #e3eaf1;background:#fafcfe;cursor:pointer;color:#304c68;transition:background .15s}
.notice-set-choice.active{background:#eaf4ff;border-color:#75b0e9;box-shadow:inset 3px 0 #2981d8}
.notice-set-choice:hover{background:#f0f7ff}
.notice-set-choice span{min-width:0;display:block}
.notice-set-choice b{font-size:12px;line-height:1.45;display:block;word-break:keep-all}
.notice-set-choice small{display:block;margin-top:5px;color:#7d8d9c;font-size:11px}
.notice-set-choice em{font-size:10px;font-style:normal;white-space:nowrap;padding:4px 6px;border-radius:7px}
.notice-set-choice em.ready{background:#e4f7ed;color:#20794c}
.notice-set-choice em.review{background:#fff3e8;color:#b56a32}
.notice-set-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #e5ecf2;padding:2px 2px 13px}
.notice-set-heading strong{display:block;font-size:14px;color:#1e405c;line-height:1.5}
.notice-set-heading small{display:block;color:#8090a0;font-size:11px;margin-top:3px}
.notice-match-counter{border-radius:8px;background:#edf5fc;color:#326999;padding:6px 9px;white-space:nowrap;font-size:11px;font-weight:800}
.notice-match-list{display:flex;flex-direction:column;gap:9px;max-height:500px;overflow:auto;padding:12px 2px 2px}
.notice-match-row{padding:12px;border:1px solid #e5eaf1;border-radius:11px;background:#fcfdff}
.notice-match-row.matched{border-color:#d2e8da;background:#f7fcf8}
.notice-match-row.unmatched{border-color:#f0d8c6;background:#fffdfa}
.notice-match-row-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.notice-match-row-top b{font-size:12px;line-height:1.5;color:#2f4760;word-break:break-word}
.notice-match-row-top span{flex:0 0 auto;border-radius:6px;padding:4px 7px;background:#fff1dd;color:#976327;font-size:10px;font-weight:800}
.notice-match-row.matched .notice-match-row-top span{background:#dff2e9;color:#2d8053}
.notice-linked{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:8px 0;color:#778799;font-size:11px}
.notice-linked strong{font-size:11px;color:#39546e}
.notice-linked button{border:0;background:none;color:#276eb3;text-decoration:underline;cursor:pointer;font-size:11px}
.notice-match-query{min-height:33px!important;font-size:12px!important;padding:7px 10px!important}
.notice-set-candidates{margin-top:6px;display:none;flex-wrap:wrap;gap:6px}
.notice-match-row.is-open .notice-set-candidates{display:flex}
.notice-candidate{display:flex;align-items:center;gap:7px;padding:6px 9px;border-radius:7px;border:1px solid #dbe5ef;background:#f2f7fc;color:#2d587c;cursor:pointer;max-width:100%}
.notice-candidate b{font-size:11px;line-height:1.4;overflow-wrap:anywhere;text-align:left}
.notice-candidate small{white-space:nowrap;font-size:10px;color:#6489a9}
.notice-candidate:hover{background:#e2effe;border-color:#9ec7ec}
.notice-no-candidate{font-size:11px;color:#7b8b99;line-height:1.45;padding:8px}
.notice-set-placeholder{font-size:12px;color:#8192a0;text-align:center;padding:30px 8px}
.notice-set-generate{display:flex;flex-direction:column;align-items:stretch;gap:10px;border-top:1px solid #e5ecf2;margin-top:10px;padding-top:13px}
.notice-partial-check{display:flex;gap:8px;align-items:center;font-size:11px;color:#677d8e;cursor:pointer}
.notice-partial-check small{color:#ac7046;font-size:10px}
.notice-set-generate .btn{font-size:13px}
.notice-set-generate .btn[disabled]{cursor:not-allowed;opacity:.45}
@media(max-width:1150px){.notice-set-two-col{grid-template-columns:1fr}.notice-set-list{max-height:220px}.notice-match-list{max-height:400px}}
@media(max-width:650px){.notice-set-imports{grid-template-columns:1fr}.notice-workflow-header{flex-direction:column}.notice-match-row-top{flex-wrap:wrap}}

/* 상품정보고시 내장 DB 상태 / 병합 업데이트 */
.notice-db-inline-status strong,.notice-db-inline-status small{display:block;line-height:1.45}
.notice-db-inline-status strong{font-weight:750;color:#294360;font-size:12px}
.notice-db-inline-status small{color:#738296;font-size:11px;margin-top:3px}
.notice-db-manager-buttons{display:flex;flex-wrap:wrap;gap:6px}
.notice-db-manager-buttons .quick-btn{white-space:nowrap}
.notice-source-label strong{font-weight:700;margin-right:8px}
.notice-source-label small{color:#64748b;font-size:11px}

/* v1.6.5.12: free-position text box with optional photo layer */
.text-transform-unit{position:relative;overflow:visible}.text-transform-layer{position:absolute;inset:0;z-index:3;pointer-events:none;line-height:1.3}.text-transform-frame{position:absolute;border:1px solid transparent;pointer-events:auto;cursor:move;user-select:none;touch-action:none;min-width:20px;min-height:20px}.text-transform-unit.active .text-transform-frame,.text-transform-frame:hover{border:2px solid #2784dd;background:rgba(45,145,245,.055)}.text-transform-content{width:100%;height:100%;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;font-weight:600;outline:none;cursor:move;user-select:none}.text-transform-content.editing{user-select:text;cursor:text;background:rgba(255,255,255,.72);box-shadow:inset 0 0 0 2px #4391d8;overflow:auto}.text-resize-handle{position:absolute;z-index:4;width:12px;height:12px;background:#fff;border:2px solid #2584d9;border-radius:3px;opacity:0;touch-action:none}.text-transform-unit.active .text-resize-handle{opacity:1}.handle-n{top:-7px;left:50%;transform:translateX(-50%);cursor:n-resize}.handle-s{bottom:-7px;left:50%;transform:translateX(-50%);cursor:s-resize}.handle-e{right:-7px;top:50%;transform:translateY(-50%);cursor:e-resize}.handle-w{left:-7px;top:50%;transform:translateY(-50%);cursor:w-resize}.handle-nw{left:-7px;top:-7px;cursor:nw-resize}.handle-ne{right:-7px;top:-7px;cursor:ne-resize}.handle-sw{left:-7px;bottom:-7px;cursor:sw-resize}.handle-se{right:-7px;bottom:-7px;cursor:se-resize}.text-editor-guide{display:grid;gap:5px;padding:12px;background:#f0f7ff;border:1px solid #c8dff6;border-radius:10px;font-size:11px;color:#3e617d;line-height:1.5}.text-editor-guide strong{color:#215e9e}.text-size-properties,.text-photo-properties{margin:12px 0 18px;border:1px solid #d9e4f0;background:#fbfdff;border-radius:12px;padding:12px}.text-size-properties strong,.text-photo-properties strong{font-size:12px;color:#355b78}.text-size-properties .prop-row{margin-top:9px}.text-size-properties .prop-group{margin:0;gap:4px}.text-photo-properties .mini-actions{margin-top:10px}.text-photo-properties .prop-group{margin-top:10px}.text-photo-properties .tone-control .tone-inputs{grid-template-columns:minmax(0,1fr) 51px}.text-transform-content.editing:focus{outline:none}

.text-resize-handle{pointer-events:none}.text-transform-unit.active .text-resize-handle{pointer-events:auto}

/* v1.6.5.13 — independent background-photo crop controls inside text blocks */
.text-photo-transform-stage{
  position:absolute;inset:0;z-index:2;pointer-events:auto;cursor:grab;
  touch-action:none;user-select:none;line-height:normal;
}
.text-photo-transform-stage:active,.text-photo-transform-stage.photo-selected{cursor:grabbing}
.text-photo-transform-outline{position:absolute;inset:0;border:2px solid transparent;pointer-events:none}
.text-transform-unit.active .text-photo-transform-outline,
.text-photo-transform-stage.photo-selected .text-photo-transform-outline{border:2px dashed rgba(37,132,217,.72)}
.text-photo-corner{
  position:absolute;width:17px;height:17px;background:#fff;
  border:2px solid #2683d4;border-radius:4px;
  box-shadow:0 1px 4px rgba(18,51,92,.22);
  opacity:0;pointer-events:none;touch-action:none;
}
.text-transform-unit.active .text-photo-corner{opacity:1;pointer-events:auto}
.text-photo-corner-tl{left:-8px;top:-8px;cursor:nwse-resize}
.text-photo-corner-tr{right:-8px;top:-8px;cursor:nesw-resize}
.text-photo-corner-bl{left:-8px;bottom:-8px;cursor:nesw-resize}
.text-photo-corner-br{right:-8px;bottom:-8px;cursor:nwse-resize}
.text-photo-crop-editor{
  margin:12px 0 16px;padding:12px;border:1px solid #bdd9f4;
  border-radius:12px;background:#f2f8ff;display:grid;gap:9px;
}
.text-photo-crop-editor>strong{font-size:12px;color:#245b88}
.text-photo-crop-editor .prop-row{margin-top:2px}
.text-photo-crop-editor input[type=range]{min-width:0;width:100%;accent-color:#247cca}
.text-photo-crop-editor .tone-inputs{display:grid;grid-template-columns:minmax(0,1fr) 56px;gap:7px;align-items:center}
.text-photo-crop-editor .tone-number{width:100%;padding:5px;font-size:11px}
.text-photo-crop-editor .quick-btn{justify-self:start}

/* Optional focus mode lets users grab the image even when the text box covers it. */
.text-transform-unit.is-photo-editing .text-photo-transform-stage{z-index:6}
.text-transform-unit.is-photo-editing .text-transform-layer{z-index:3}
.text-transform-unit.is-photo-editing .text-photo-transform-outline{border:2px solid #2174c9}
.text-photo-mode-btn{justify-self:stretch;text-align:center;background:#e3f0ff;border-color:#b5d4f1}
.text-transform-unit.is-photo-editing .text-transform-frame{pointer-events:none}

/* v1.6.5.14: first click edits text; a separate grip moves the text window. */
.text-transform-content{cursor:text;touch-action:auto}.text-transform-content:not(.editing){user-select:text}
.text-move-grip{position:absolute;top:-25px;left:50%;transform:translateX(-50%);border:1px solid #2584d9;border-radius:7px 7px 0 0;padding:2px 10px;background:#eff7ff;color:#1663a8;font-size:11px;font-weight:700;line-height:18px;white-space:nowrap;cursor:grab;z-index:5;touch-action:none;opacity:0;pointer-events:none;user-select:none}
.text-transform-unit.active .text-move-grip,.text-transform-frame:hover .text-move-grip{opacity:1;pointer-events:auto}
.text-move-grip:active{cursor:grabbing}
.text-transform-unit.is-photo-editing .text-move-grip{pointer-events:none;opacity:0}


/* v1.6.5.15 — Text window linked height and alignment snap */
.text-smart-line{position:absolute;z-index:8;pointer-events:none;display:none;background:#20caff;box-shadow:0 0 4px rgba(9,163,211,.22)}
.text-smart-line.visible{display:block}
.text-smart-x{width:1px;top:0;bottom:0}
.text-smart-y{height:1px;left:0;right:0}
.text-transform-frame.transforming{box-shadow:0 0 0 1px rgba(30,180,239,.24)}
/* Photoshop-style preview rulers + guides: visual editor-only layer */
.preview-stage{display:grid;grid-template-columns:22px minmax(0,1fr);grid-template-rows:23px auto;position:relative;align-items:stretch;width:min(100%,642px);flex-shrink:0;isolation:isolate}
.preview-stage .ruler-corner{grid-column:1;grid-row:1;background:#e5eef8;border:1px solid #c3d5e3;display:grid;place-items:center;color:#5484a9;font-size:13px}
.preview-stage .ruler{grid-column:2;grid-row:1;position:relative;width:100%;height:23px;padding:0;margin:0;display:block;overflow:hidden;cursor:ns-resize;background:repeating-linear-gradient(to right,#aabdd0 0,#aabdd0 1px,transparent 1px,transparent 10px) left bottom/100% 5px no-repeat,#edf5fb;border:1px solid #cbdce8;border-left:0;touch-action:none}
.preview-stage .ruler-number{position:absolute;bottom:7px;font-size:9px;color:#68849d;white-space:nowrap;transform:translateX(2px);pointer-events:none}
.preview-stage .vertical-ruler{grid-column:1;grid-row:2;position:relative;width:22px;height:100%;cursor:ew-resize;background:repeating-linear-gradient(to bottom,#aabdd0 0,#aabdd0 1px,transparent 1px,transparent 10px) right top/5px 100% no-repeat,#edf5fb;border-left:1px solid #cbdce8;border-right:1px solid #cbdce8;touch-action:none}
.preview-stage .side-number{position:absolute;right:7px;transform:translateY(2px);font-size:9px;color:#68849d;writing-mode:vertical-rl;pointer-events:none}
.preview-stage .preview-paper{grid-column:2;grid-row:2;width:100%;max-width:none;min-height:410px;z-index:1;margin:0}
.preview-stage .guide-overlay{grid-column:2;grid-row:2;position:relative;z-index:7;pointer-events:none;align-self:stretch;justify-self:stretch;grid-area:2/2/3/3}
.preview-stage .guide-line{position:absolute;pointer-events:auto;cursor:grab;touch-action:none}
.preview-stage .guide-line:active{cursor:grabbing}
.preview-stage .guide-x{top:0;bottom:0;width:13px;transform:translateX(-50%)}
.preview-stage .guide-y{left:0;right:0;height:13px;transform:translateY(-50%)}
.preview-stage .guide-x:before{content:"";display:block;position:absolute;left:6px;top:0;bottom:0;width:1px;background:#23c9f7;box-shadow:0 0 2px rgba(2,145,223,.7)}
.preview-stage .guide-y:before{content:"";display:block;position:absolute;top:6px;left:0;right:0;height:1px;background:#23c9f7;box-shadow:0 0 2px rgba(2,145,223,.7)}
.preview-stage .guide-line:hover:before{background:#0aa2d6;box-shadow:0 0 0 1px #0aa2d655}
.preview-stage.guides-disabled .ruler-corner,.preview-stage.guides-disabled .ruler,.preview-stage.guides-disabled .vertical-ruler{display:none}
.preview-stage.guides-disabled{display:flex;width:100%;max-width:620px}
.preview-stage.guides-disabled .preview-paper{width:100%}
.preview-stage.guides-disabled .guide-overlay{display:none}
#editorView.poster-editor-mode .preview-stage{display:block;width:100%;max-width:100%}
#editorView.poster-editor-mode .preview-stage .preview-paper{width:100%;max-width:100%}
#editorView.poster-editor-mode .preview-stage .ruler-corner,#editorView.poster-editor-mode .preview-stage .ruler,#editorView.poster-editor-mode .preview-stage .vertical-ruler,#editorView.poster-editor-mode .preview-stage .guide-overlay{display:none}
body.guide-dragging,body.guide-dragging *{cursor:crosshair!important}


/* v1.6.5.16 — image blocks get banner-like crop / zoom editing */
.image-transform-unit{position:relative;overflow:visible}
.image-photo-stage{position:absolute;inset:0;z-index:4;cursor:grab;touch-action:none;user-select:none}
.image-photo-stage.is-transforming,.image-photo-stage:active{cursor:grabbing}
.image-transform-outline{position:absolute;inset:0;border:2px dashed transparent;pointer-events:none}
.image-transform-unit.active .image-transform-outline,.image-photo-stage:hover .image-transform-outline,.image-photo-stage.is-transforming .image-transform-outline{border-color:rgba(37,132,217,.72);background:rgba(45,145,245,.04)}
.image-corner{position:absolute;width:17px;height:17px;background:#fff;border:2px solid #2683d4;border-radius:4px;box-shadow:0 1px 4px rgba(18,51,92,.22);opacity:0;pointer-events:none;touch-action:none}
.image-transform-unit.active .image-corner,.image-photo-stage:hover .image-corner{opacity:1;pointer-events:auto}
.image-corner-tl{left:-8px;top:-8px;cursor:nwse-resize}.image-corner-tr{right:-8px;top:-8px;cursor:nesw-resize}.image-corner-bl{left:-8px;bottom:-8px;cursor:nesw-resize}.image-corner-br{right:-8px;bottom:-8px;cursor:nwse-resize}
.image-frame-height-handle{position:absolute;left:50%;bottom:-16px;transform:translateX(-50%);padding:3px 10px;border-radius:999px;background:#fff;border:1px solid #2683d4;color:#1e5d95;font-size:11px;font-weight:700;box-shadow:0 1px 4px rgba(18,51,92,.18);opacity:0;pointer-events:none;cursor:ns-resize;white-space:nowrap}
.image-transform-unit.active .image-frame-height-handle,.image-photo-stage:hover .image-frame-height-handle{opacity:1;pointer-events:auto}
.preview-image-canvas{pointer-events:none;user-select:none;-webkit-user-drag:none}


/* v1.6.5.17: logo navigation and Photoshop-like rulers starting at pane edge */
.brand-home-button{appearance:none;background:transparent;border:0;padding:0;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.brand-home-button:focus-visible{outline:2px solid #2683d4;outline-offset:4px;border-radius:6px}
#editorView:not(.poster-editor-mode) .preview-scroll{padding-left:0;padding-right:0}
#editorView:not(.poster-editor-mode) .preview-stage:not(.guides-disabled){width:100%;max-width:none;align-self:stretch;grid-template-columns:24px minmax(0,1fr)}
#editorView:not(.poster-editor-mode) .preview-stage:not(.guides-disabled) .preview-paper{width:min(100%,620px);max-width:620px;justify-self:center;grid-column:2;grid-row:2}
#editorView:not(.poster-editor-mode) .preview-stage:not(.guides-disabled) .guide-overlay{position:absolute;grid-area:auto;z-index:7;pointer-events:none;align-self:auto;justify-self:auto}
#editorView:not(.poster-editor-mode) .preview-stage:not(.guides-disabled) .vertical-ruler{width:24px}
#editorView:not(.poster-editor-mode) .preview-stage:not(.guides-disabled) .ruler{width:100%}


/* v1.6.5.18: directly reorder/delete individual gallery items in the preview */
.gallery-preview-unit{position:relative;overflow:visible}
.gallery-hit-layer{position:absolute;inset:0;z-index:4;line-height:1;pointer-events:none}
.gallery-hitbox{position:absolute;border:2px solid transparent;cursor:grab;touch-action:auto;pointer-events:auto;border-radius:4px;min-width:18px;min-height:18px}
.gallery-hitbox:hover{border-color:rgba(35,181,235,.78);background:rgba(38,165,239,.075)}
.gallery-hitbox.selected,.gallery-hitbox.gallery-drop-target{border-color:#06b6d4;background:rgba(6,182,212,.10);box-shadow:inset 0 0 0 1px #fff,0 0 0 2px #06b6d42c}
.gallery-hitbox.gallery-dragging{opacity:.35}
.gallery-item-overlay-tools{position:absolute;top:2px;left:2px;display:flex;align-items:center;gap:3px;background:#fff;border:1px solid #b9d9e9;border-radius:6px;padding:2px 4px;opacity:0;pointer-events:none;white-space:nowrap;box-shadow:0 2px 7px #17344e2a}
.gallery-hitbox:hover .gallery-item-overlay-tools,.gallery-hitbox.selected .gallery-item-overlay-tools{opacity:1;pointer-events:auto}
.gallery-overlay-grip{font-size:11px;font-weight:800;color:#225676;cursor:grab;user-select:none}
.gallery-item-overlay-tools button{border:1px solid #c1d8e8;background:#f5faff;border-radius:4px;padding:3px 5px;line-height:1.2;font-size:11px;font-weight:800;color:#286695}
.gallery-item-overlay-tools button[data-go="delete"]{color:#c04444;border-color:#f0d2d2}
.gallery-item.gallery-item-selected{background:#eaf8ff;border-color:#15a9d5;box-shadow:0 0 0 2px #15a9d52b}
/* Photo stays locked for block dragging. Unlock explicitly to pan; scaling only via slider. */
.text-transform-unit .text-photo-transform-stage{pointer-events:none!important;cursor:default}
.text-transform-unit.is-photo-editing .text-photo-transform-stage{pointer-events:auto!important;cursor:grab}
.text-transform-unit .text-photo-transform-outline,.text-transform-unit .text-photo-corner{display:none!important}
.text-transform-unit.is-photo-editing .text-photo-transform-outline{display:block!important;border:2px dashed #20b8ef}
.text-block-drag-grip{position:absolute;z-index:9;left:4px;top:4px;font-size:10px;font-weight:750;background:#fff;border:1px solid #74bde1;color:#12618b;padding:5px 8px;border-radius:6px;line-height:1;cursor:grab;opacity:0;user-select:none}
.text-transform-unit.active .text-block-drag-grip,.text-transform-unit:hover .text-block-drag-grip{opacity:1}
.text-block-drag-grip:active{cursor:grabbing}
.text-transform-unit.is-photo-editing .text-block-drag-grip{pointer-events:none;opacity:.42}
/* Typography tools in the right-side property editor */
.typography-panel,.table-column-font-controls{border:1px solid #d9e4f0;background:#f9fcff;border-radius:10px;padding:10px;display:grid;gap:9px;margin:12px 0}
.typography-panel strong,.table-column-font-controls>strong{font-size:12px;color:#245e86}
.typography-line{display:grid;grid-template-columns:minmax(0,1fr) minmax(80px,110px);gap:8px;align-items:center}
.typography-line label,.table-column-format-row label,.gallery-field-format label{display:grid;gap:3px;font-size:10px;font-weight:700;color:#56738b;min-width:0}
.typography-line label input,.typography-line label select{min-width:0}
.typography-check{display:flex!important;align-items:center;gap:4px;white-space:nowrap}
.typography-check input,.gallery-underline-check input{accent-color:#2381c5}
.gallery-schema-row{display:grid;grid-template-columns:16px 15px minmax(0,1fr) repeat(3,25px);row-gap:7px}
.gallery-schema-row>.gallery-field-format{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) 58px 43px 55px;gap:5px;padding:6px 3px;border-top:1px solid #e7edf5;cursor:default}
.gallery-field-format select,.gallery-field-format input[type=number],.table-column-format-row select,.table-column-format-row input[type=number]{width:100%;min-width:0;height:30px;border:1px solid #ccddeb;border-radius:5px;padding:4px;background:white;color:#29425b;font-size:11px}
.gallery-field-format input[type=color],.table-column-format-row input[type=color]{height:30px;width:100%;padding:1px;border:1px solid #ccddeb;border-radius:4px}
.gallery-field-format .gallery-underline-check{align-items:center;justify-content:center;display:flex;flex-direction:row;gap:2px;font-size:9px}
.table-column-format-list{display:grid;gap:5px}
.table-column-format-item{border:1px solid #d9e7f3;background:#fff;border-radius:7px;padding:6px 9px}
.table-column-format-item summary{cursor:pointer;font-size:11px;font-weight:700;color:#376280}
.table-column-format-row{display:grid;grid-template-columns:minmax(0,1fr) 62px 45px 57px;gap:6px;margin-top:9px}

/* v1.6.5.19: active gallery only; temporary 5-second hint */
.gallery-preview-unit:not(.active) .gallery-hit-layer{pointer-events:none!important}
.gallery-preview-unit:not(.active) .gallery-hitbox{outline:0!important;border-color:transparent!important;box-shadow:none!important}
.gallery-preview-unit:not(.active) .gallery-item-overlay-tools{display:none!important}
.preview-unit .unit-label,.preview-unit.active .unit-label,.preview-unit:hover .unit-label{opacity:0!important;animation:none!important}
.preview-unit.hint-visible>.unit-label{animation:hintFade19 5s ease-in-out forwards!important}
@keyframes hintFade19{0%{opacity:0}6%{opacity:1}83%{opacity:1}100%{opacity:0}}

.prominent-style-selector{background:#f6fafe;border:1px solid #cddff3;border-radius:12px;padding:13px}
.prominent-style-selector>strong{font-size:16px;color:#174e83}
.table-style-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:8px 0 12px}
.table-style-card{display:grid;gap:7px;text-align:left;border:2px solid #d8e2ee;border-radius:10px;padding:8px;background:white;color:#3a5065;font-size:11px;cursor:pointer}
.table-style-card.selected{border-color:#1475c6;box-shadow:0 0 0 3px #2c87d91c;background:#edf7ff}
.table-style-thumb{display:grid;grid-template-columns:1fr 1.7fr;gap:2px;height:37px;border:1px solid #cbd6e0;overflow:hidden}
.table-style-thumb>i{display:block;background:#e6edf3}.table-style-thumb>i:nth-child(1){background:#596f84}.table-style-thumb.infoCard>i:nth-child(1){background:#050505}.table-style-thumb.infoCard>i:nth-child(2){background:#fff}.table-style-thumb.infoGrid{grid-template-columns:repeat(3,1fr);background:#eee}.table-style-thumb.infoGrid>i{background:#e3e3e3;border-bottom:2px solid #252525}.table-style-thumb.infoGrid>i:nth-child(1){background:#ddd}.table-style-thumb.dark>i{background:#273c52}.table-style-thumb.blue>i{background:#dcebf9}.table-style-thumb.beige>i{background:#eee2d3}
.text-border-properties{padding:12px;border:1px solid #d2ddea;border-radius:12px;background:#f7fafe;margin:12px 0}.text-border-properties>strong{color:#264e77}.text-border-properties .prop-row .prop-group{margin:4px 0}

/* v1.6.5.22 — compact character tools in the properties pane */
.text-symbols{flex:0 0 auto;padding:10px 18px 12px;background:#fff;border-bottom:1px solid #e3eaf2;min-width:0}
.text-symbol-tool-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.text-symbol-tool-btn{min-width:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-height:59px;padding:8px 6px;background:#f9fbfd;color:#56718d;border:1px solid #dbe5ef;border-radius:10px;font-size:11px;font-weight:750;cursor:pointer}
.text-symbol-tool-btn svg{width:21px;height:21px;display:block}
.text-symbol-tool-btn:hover{background:#eff7ff;border-color:#9fc5ee;color:#205d9c}
.text-symbol-tool-btn.active{background:#eaf3ff;border-color:#3884cc;color:#165ca3;box-shadow:0 0 0 2px rgba(46,121,198,.09) inset}
.text-symbol-tool-btn:focus-visible,.text-symbol-items button:focus-visible{outline:2px solid #3c8dd6;outline-offset:2px}
.text-symbol-picker{margin-top:9px;padding:9px;background:#fafcff;border:1px solid #c8d9e9;border-radius:10px}
.text-symbol-picker.hidden{display:none!important}
.text-symbol-picker-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;color:#365e80;font-size:11px}
.text-symbol-picker-head button{border:0;background:transparent;color:#7691ab;font-size:20px;line-height:22px;width:26px;height:26px;border-radius:5px}
.text-symbol-picker-head button:hover{background:#eaf2fb;color:#235a93}
.text-symbol-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(36px,1fr));gap:5px;overflow-y:auto;max-height:166px;padding:2px}
.text-symbol-items button{border:1px solid #e0e7ef;border-radius:7px;background:#fff;font-size:18px;min-width:0;height:34px;cursor:pointer}
.text-symbol-items button:hover{background:#eaf6ff;border-color:#72a6db}
@media(max-width:1150px){.text-symbols{padding:10px 12px}}

/* v1.6.5.20 — two distinct text entry modes */
.text-mode-chooser{border:1px solid #c8def4;background:#f2f8ff;border-radius:12px;padding:12px;margin:12px 0;display:grid;gap:9px}
.text-mode-chooser>strong{font-size:12px;color:#235f92}
.text-mode-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.text-mode-buttons button{border:1px solid #cddde9;background:#fff;color:#526b82;padding:11px 8px;border-radius:9px;text-align:left;display:flex;flex-direction:column;gap:5px;min-width:0}
.text-mode-buttons button.active{border:2px solid #237bd0;background:#e7f2ff;color:#17589e;box-shadow:0 0 0 2px rgba(57,133,213,.1)}
.text-mode-buttons b{font-size:11px}.text-mode-buttons small{font-size:10px;line-height:1.45;font-weight:400}
.text-direct-unit .text-direct-editor{position:absolute;inset:0;z-index:4;white-space:pre-wrap;overflow-wrap:anywhere;font-weight:600;line-height:1.65;overflow:hidden;outline:none;cursor:text;user-select:text;min-height:0}
.text-direct-unit .text-direct-editor.editing{box-shadow:inset 0 0 0 2px #408fde;background:rgba(255,255,255,.05);overflow:auto}
.text-direct-unit.is-photo-editing .text-direct-editor{pointer-events:none}
.text-direct-unit.active .text-direct-editor:not(.editing){outline:1px solid rgba(35,123,208,.45);outline-offset:-2px}
.text-size-properties[data-direct-text-sizing="true"] .prop-row{display:none}
.font-pc-panel{border:1px solid #d9e6f4;border-radius:10px;background:#fcfdff;padding:12px}
.font-pc-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.font-pc-actions .quick-btn{padding:7px 10px;flex-shrink:0}
.font-pc-actions span{font-size:10px;color:#6f8194}
.font-pc-panel .small-help{display:block}

/* DetailFlow 1.6.5.23: measurement handles + advanced cutout editor */
.measure-add-tile{border-color:#93c0eb!important;background:#edf7ff!important;color:#16599d!important;font-weight:800!important}
.measure-property-highlight{border:1px solid #b7d8f4;border-radius:10px;background:#eef7ff;color:#265c8b;padding:12px;line-height:1.65;margin-bottom:12px}
.measure-line-toolbar{display:flex;flex-direction:column;gap:9px;border-top:1px solid #e3eaf1;margin-top:17px;padding-top:14px}
.measure-line-toolbar>div{display:flex;gap:5px;flex-wrap:wrap}
.measure-line-items{display:grid;gap:9px;margin:12px 0}
.measure-line-item{border:1px solid #dce7f1;background:#fafcff;border-radius:10px;padding:11px}
.measure-line-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.measure-unit{position:relative;overflow:visible}
.measure-overlay{display:block;position:absolute;inset:0;width:100%;height:100%;z-index:8;pointer-events:none;user-select:none;touch-action:none;overflow:visible}
.measure-line-hit{cursor:move;pointer-events:stroke}
.measure-handle{fill:#fff;stroke:#1580d6;stroke-width:2.5;cursor:crosshair;pointer-events:all;opacity:0;transition:opacity .13s ease}
.measure-label{font-size:20px;font-family:inherit;font-weight:700;paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round;fill:#31495c;pointer-events:all;cursor:move}
.measure-unit.active .measure-handle,.measure-unit:hover .measure-handle{opacity:1}
.measure-line:hover .measure-line-hit{stroke:rgba(24,131,219,.12)}
.adv-cutout-toolbar{display:flex;align-items:center;gap:12px;justify-content:space-between;background:#fff;border-radius:11px;padding:12px;margin-bottom:14px;font-weight:700}
.adv-cutout-toolbar label{display:flex;align-items:center;gap:7px}.adv-cutout-toolbar .quick-btn{margin-left:auto}
.adv-cutout-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:17px;align-items:start}
.adv-cutout-card{border:1px solid #d9e4ef;border-radius:10px;background:white;overflow:hidden}
.adv-cutout-card.active{outline:2px solid #348bdb}
.adv-cutout-surface{margin:0 10px;position:relative;cursor:crosshair;user-select:none;touch-action:none}
.adv-cutout-canvas{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain}
.adv-cutout-note{margin:12px 0;border-radius:9px;background:#eff8f3;border:1px solid #d2e8d8;padding:11px;line-height:1.55;color:#285d42}
.adv-cutout-note p{font-size:11px;margin-top:6px}
.adv-cutout-tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:10px 0}
.adv-cutout-tool-grid button{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 8px;min-height:43px;border:1px solid #dce6ef;background:#f9fbfd;border-radius:8px;font-weight:650;color:#435e7a}
.adv-cutout-tool-grid button span{font-size:19px}
.adv-cutout-tool-grid button.active{background:#e7f2ff;border:2px solid #337fcb;color:#15589b}
.adv-brush-head{display:flex;justify-content:space-between;align-items:center;margin-top:14px;font-weight:800}
.adv-brush-head small{font-weight:400;color:#7b92a7}
.adv-cutout-intro{display:grid;gap:13px;margin-top:20px}
.adv-cutout-intro p{color:#688099;line-height:1.65}
#cutoutTolerance,#cutoutSoftness,#cutoutBrushSize{width:100%;accent-color:#2377c8;cursor:ew-resize}
@media(max-width:1100px){.adv-cutout-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}}

/* DetailFlow v1.6.5.25 — floating text controls, transparent text backgrounds */
.df-floating-text-tools{position:fixed;z-index:1500;width:324px;max-width:calc(100vw - 18px);background:#fff;border:1px solid #bbd2e9;border-radius:14px;box-shadow:0 14px 38px rgba(19,44,77,.19);overflow:hidden;font-family:inherit}
.df-floating-text-tools.hidden,.df-text-tool-dock.hidden{display:none!important}
.df-text-tool-head{display:flex;align-items:center;gap:7px;background:linear-gradient(90deg,#e8f4ff,#f5faff);padding:10px 12px;border-bottom:1px solid #d9e8f5;color:#235b91;cursor:grab;touch-action:none;user-select:none}
.df-text-tool-head.dragging{cursor:grabbing}.df-text-tool-head strong{font-size:13px;white-space:nowrap}.df-tool-grip{font-size:19px;color:#6b94bd}.df-tool-sub{margin-left:auto;font-size:10px;color:#8aa1b6}
.df-text-tool-head button{border:0;border-radius:7px;width:25px;height:25px;background:#fff;color:#597e9f;font-size:20px;cursor:pointer}.df-text-tool-head button:hover{background:#ffe8e7;color:#b74545}
.df-tool-body{padding:12px;display:grid;gap:9px}.df-tool-row{display:grid;grid-template-columns:minmax(0,1fr) 76px;align-items:end;gap:9px}
.df-tool-row label{display:grid;gap:5px;font-size:10px;font-weight:750;color:#57748c}.df-tool-row select,.df-tool-row input[type=number]{width:100%;min-width:0;height:35px;border:1px solid #d1dfeb;border-radius:8px;background:#fff;padding:4px 7px;color:#263d53;font-size:12px}
.df-tool-bottom{grid-template-columns:76px 76px minmax(0,1fr);align-items:center}.df-tool-bottom input[type=color]{width:69px;height:34px;padding:3px;border:1px solid #d1dfeb;border-radius:7px;cursor:pointer}
#dfToolUnderline{height:34px;background:#f2f7fc;border:1px solid #ceddea;border-radius:8px;font-size:11px;cursor:pointer;color:#2e5d80}#dfToolUnderline.is-active{background:#cde6ff;border-color:#6aa9df}
#dfToolHint{font-size:10px;line-height:1.35;color:#6c8297}
.df-floating-text-tools .text-symbols{padding:9px 12px 11px;background:#fbfdff;border-top:1px solid #e4edf5;border-bottom:0}
.df-floating-text-tools .text-symbol-tool-btn{min-height:45px;padding:5px;flex-direction:row;gap:7px}.df-floating-text-tools .text-symbol-tool-btn svg{width:18px;height:18px}.df-floating-text-tools .text-symbol-items{max-height:130px;overflow-y:auto}
.df-text-tool-dock{position:fixed;z-index:1600;width:34px;height:44px;border:1px solid #63a0d7;border-radius:9px 0 0 9px;background:#e2f3ff;color:#145a94;box-shadow:0 2px 12px #1945722b;font-size:20px;font-weight:800;cursor:pointer}
.transparency-check{display:flex;gap:7px;align-items:center;font-size:11px;font-weight:700;color:#2f678f;margin:10px 0}.transparency-check input{accent-color:#1976cc}
.direct-resize-border{position:absolute;pointer-events:none;z-index:7;border:2px solid transparent}.text-direct-unit.active .direct-resize-border{border:1px dashed #2f8bd5}.direct-handle{position:absolute;display:block;width:12px;height:12px;border:2px solid #3185c9;background:white;border-radius:3px;opacity:0;pointer-events:auto;touch-action:none}
.text-direct-unit.active .direct-handle{opacity:1}
.direct-handle.handle-n{top:-7px;left:50%;transform:translateX(-50%);cursor:n-resize}.direct-handle.handle-s{bottom:-7px;left:50%;transform:translateX(-50%);cursor:s-resize}.direct-handle.handle-e{right:-7px;top:50%;transform:translateY(-50%);cursor:e-resize}.direct-handle.handle-w{left:-7px;top:50%;transform:translateY(-50%);cursor:w-resize}.direct-handle.handle-ne{right:-7px;top:-7px;cursor:nesw-resize}.direct-handle.handle-nw{left:-7px;top:-7px;cursor:nwse-resize}.direct-handle.handle-se{right:-7px;bottom:-7px;cursor:nwse-resize}.direct-handle.handle-sw{left:-7px;bottom:-7px;cursor:nesw-resize}
/* DetailFlow v1.6.5.26 — text-only palette and expanded character categories */
.df-floating-text-tools{max-height:calc(100vh - 18px);overflow-y:auto;overscroll-behavior:contain}
.text-symbol-categories{display:flex;gap:5px;overflow-x:auto;padding:3px 1px 8px;margin-bottom:6px;scrollbar-width:thin}
.text-symbol-category{flex:0 0 auto;white-space:nowrap;border:1px solid #d5e3ef;border-radius:15px;background:#fff;color:#496b89;padding:5px 9px;font-size:10px;font-weight:700}
.text-symbol-category:hover{background:#ecf6ff;border-color:#80b4e5}
.text-symbol-category.active{background:#dcefff;color:#145f9b;border-color:#67a7db}
.df-floating-text-tools .text-symbol-items{max-height:190px;overflow-y:auto;scrollbar-width:thin}
.df-floating-text-tools .text-symbol-items button{font-family:'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji',sans-serif}

/* DetailFlow v1.6.5.28 - gallery text alignment and cell-level editing */
.gallery-text-align-group{margin-top:12px;padding:11px;border:1px solid #b9d5ed;border-radius:10px;background:#f2f8ff}
.gallery-align-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:6px}
.gallery-align-buttons button{min-height:39px;border:1px solid #c6dcec;background:#fff;border-radius:8px;color:#395b78;font-size:11px;font-weight:750;cursor:pointer}
.gallery-align-buttons button.chosen{background:#dceeff;color:#175795;border-color:#348aca;box-shadow:inset 0 0 0 1px #9dccef}
.gallery-schema-row>.gallery-field-format{grid-template-columns:minmax(0,1fr) 56px 43px 51px;row-gap:7px}
.gallery-field-align{grid-column:1/-1;display:flex!important;flex-direction:row;align-items:center;gap:7px}
.gallery-field-align select{flex:1!important;height:32px!important}
.df-gallery-rich-stage{user-select:text}
.df-gallery-field-edit{caret-color:#237dca;user-select:text!important}
.df-gallery-field-edit:hover{box-shadow:0 0 0 1px #77c6ec88;background:#f9fdff20!important}
.df-gallery-field-edit:focus{box-shadow:0 0 0 2px #39abe7a8;outline:0;background:#eaf6ff99!important}
.df-gallery-field-edit::selection,.df-gallery-field-edit *::selection{background:#82bafb;color:#151e28}


/* DetailFlow v1.6.5.29: make final composer reliably visible in the tab bar. */
.top-tabs #tabFinal{
  position:sticky;right:0;z-index:5;flex-shrink:0;
  margin:0 5px 0 8px;padding:0 18px;min-height:40px;
  display:inline-flex;align-items:center;justify-content:center;
  background:#e5f1ff;color:#1258a0;
  border:1px solid #74a9df;border-bottom:3px solid #2778d0;
  border-radius:9px 9px 4px 4px;font-weight:850;
  box-shadow:0 2px 8px rgba(28,91,158,.14);
}
.top-tabs #tabFinal:hover{background:#d1e8ff;border-color:#237ad0;color:#104c88}
.top-tabs #tabFinal.active{background:#2169bc;border-color:#2169bc;border-bottom-color:#154d8c;color:#fff;box-shadow:0 3px 11px #1666bb45}

/* Idle gallery text is rendered ONLY by the JPG-identical canvas.
   The transparent DOM hit regions remain clickable and become visible editors on focus.
   This prevents the doubled/offset labels seen in the standard preview. */
.df-gallery-rich-stage .df-gallery-field-edit:not(:focus){
  background:transparent!important;
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
  text-shadow:none!important;box-shadow:none!important;
  overflow:hidden!important;user-select:none!important;
}
.df-gallery-rich-stage .df-gallery-field-edit:not(:focus) *,
.df-gallery-rich-stage .df-gallery-field-edit:not(:focus) *::before,
.df-gallery-rich-stage .df-gallery-field-edit:not(:focus) *::after{
  color:transparent!important;-webkit-text-fill-color:transparent!important;
  text-decoration-color:transparent!important;
}
.df-gallery-rich-stage .df-gallery-field-edit:focus{
  background:#fff!important;
  color:inherit;
  -webkit-text-fill-color:initial;
  outline:2px solid #39abe7!important;
  outline-offset:1px;
  user-select:text!important;
  overflow:auto;
}

/* v1.6.5.30 — workspace tabs can retract to the header, but retain an accessible grip. */
.left-module[data-left-module="tabs"].tabs-nearly-closed .tab-create-area{padding:0 13px!important;border-bottom:0;gap:0;overflow:hidden;}
.left-module[data-left-module="tabs"] .module-resize-handle{height:11px;flex-basis:11px;}
/* Rendered canvas previews for every available table style */
.table-template-modal-inner{width:min(1040px,97vw);max-height:min(94vh,900px)}
.table-template-head{align-items:flex-start;gap:20px;padding-bottom:20px}
.table-template-close{width:34px;height:34px;font-size:18px;border:1px solid #dbe7f2;border-radius:9px;flex-shrink:0}
.table-template-modal-body{padding:24px;}
.table-template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;}
.table-template-card{border:2px solid #d9e5f1;border-radius:15px;background:#fff;padding:11px;text-align:left;min-width:0;display:flex;flex-direction:column;gap:12px;transition:border-color .16s,box-shadow .16s,transform .16s;}
.table-template-card:hover,.table-template-card:focus-visible{border-color:#2f83d7;box-shadow:0 5px 18px rgba(33,106,177,.18);transform:translateY(-2px);outline:none;}
.table-template-scene{height:177px;background:#f5f8fc;border-radius:9px;overflow:hidden;display:flex;justify-content:center;align-items:center;border:1px solid #ebeff5;}
.table-template-canvas{width:100%;height:auto;max-height:100%;object-fit:contain;display:block;background:#fff;}
.table-template-loading{font-size:11px;color:#8a9bad;}
.table-template-card-footer{display:flex;flex-direction:column;gap:5px;padding:2px 5px 5px;}
.table-template-card-footer strong{font-size:14px;color:#233d57;}
.table-template-card-footer span{font-size:11px;color:#7a8ea0;}
.table-template-foot{align-items:center;justify-content:space-between;}
.table-template-foot p{font-size:11px;line-height:1.5;color:#607790;max-width:70%;}
@media(max-width:850px){.table-template-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.table-template-scene{height:156px;}}
@media(max-width:510px){.table-template-grid{grid-template-columns:1fr;}.table-template-scene{height:200px;}}

/* DetailFlow v1.6.5.31 — unified table editor / Excel in properties */
.table-excel-import{border:1px solid #b6d7f6;background:linear-gradient(180deg,#f2f8ff 0%,#fff 100%);border-radius:12px;padding:14px;margin:14px 0}
.table-excel-import-top{display:flex;align-items:flex-start;gap:10px;margin-bottom:11px}
.table-excel-import-icon{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:9px;background:#dceeff;color:#2867a9;font-size:20px}
.table-excel-import-top strong{color:#1f4970;display:block;margin-bottom:3px}
.table-excel-import-top p,.table-excel-import .small-help{font-size:12px;line-height:1.45;margin:2px 0 0}
.table-excel-import-btn{width:100%;padding:11px 10px;font-weight:700;border:1px solid #2e76c0;background:#fff;color:#1c65ac;border-radius:9px;cursor:pointer}
.table-excel-import-btn:hover{background:#eaf5ff}
.table-excel-source{font-size:12px;color:#36566f;overflow-wrap:anywhere;margin:9px 0 4px}
.excel-update-target{color:#235984;background:#eaf4ff;border:1px solid #bddaf4;border-radius:8px;padding:9px 12px;margin-top:12px;font-size:13px;font-weight:650}

/* v1.6.5.32 — inline measurement text, title alignment */
.measure-title-target{font-weight:700;fill:#2d3035;stroke:#fff;stroke-width:5px;stroke-linejoin:round;paint-order:stroke;pointer-events:all;cursor:move;user-select:none}
.measure-label{user-select:none}
.measure-edit-foreign{pointer-events:all;overflow:visible}
.df-measure-edit{pointer-events:auto;user-select:text;-webkit-user-select:text;cursor:text}
.measure-align-buttons{display:flex;gap:6px;margin:6px 0 10px}
.measure-align-buttons button{flex:1;border-radius:8px;border:1px solid #d6e1ee;padding:8px 4px;background:#fff;color:#415567;font-weight:600;font-size:12px;cursor:pointer}
.measure-align-buttons button.active{border-color:#2787cf;background:#e9f4ff;color:#145c9d;box-shadow:0 0 0 1px #2787cf inset}
.measure-align-buttons button:hover{border-color:#7bb8e9;background:#eff8ff}

/* v1.6.5.33: separate photo transform, boundary resize for measurement blocks */
.measure-unit{position:relative;overflow:visible}
.measure-photo-stage{position:absolute;left:0;right:0;bottom:0;z-index:7;cursor:grab;touch-action:none;user-select:none}
.measure-photo-stage:active{cursor:grabbing}
.measure-photo-outline{position:absolute;inset:0;border:2px solid transparent;pointer-events:none}
.measure-unit.measure-photo-selected .measure-photo-outline,.measure-photo-stage:hover .measure-photo-outline{border-color:#2588db}
.measure-photo-corner{position:absolute;pointer-events:none;opacity:0;width:15px;height:15px;background:#fff;border:2px solid #1683d5;border-radius:3px;box-shadow:0 1px 5px #15375633}
.measure-unit.measure-photo-selected .measure-photo-corner,.measure-photo-stage:hover .measure-photo-corner{pointer-events:auto;opacity:1}
.measure-photo-corner.nw{top:-8px;left:-8px;cursor:nwse-resize}
.measure-photo-corner.ne{top:-8px;right:-8px;cursor:nesw-resize}
.measure-photo-corner.sw{bottom:-8px;left:-8px;cursor:nesw-resize}
.measure-photo-corner.se{bottom:-8px;right:-8px;cursor:nwse-resize}
.measure-photo-selection-hint{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);background:#195c99ea;color:#fff;border-radius:8px;padding:5px 10px;white-space:nowrap;font-size:11px;opacity:0;pointer-events:none}
.measure-unit.measure-photo-selected .measure-photo-selection-hint{opacity:1}
.measure-block-resize{position:absolute;bottom:-9px;left:22px;right:22px;z-index:13;height:14px;cursor:ns-resize;display:flex;align-items:center;justify-content:center;touch-action:none}
.measure-block-resize span{font-size:10px;letter-spacing:.02em;font-weight:700;color:#1972c2;background:#fff;border:1px solid #92c7ee;border-radius:12px;padding:1px 12px;opacity:0;box-shadow:0 2px 7px #12335622;transition:opacity .15s}
.measure-unit:hover .measure-block-resize span,.measure-unit.active .measure-block-resize span,.measure-resizing .measure-block-resize span{opacity:1}
.measure-unit.measure-resizing{outline:2px solid #238ad7}

/* v1.6.5.34: reliable independent measurement-label selection and drag */
.measure-label,.measure-label tspan{pointer-events:all;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.measure-label-hit{fill:transparent;stroke:transparent;stroke-width:1;pointer-events:all;cursor:grab;touch-action:none}
.measure-label-hit.selected{fill:rgba(27,138,225,.09);stroke:#2189db;stroke-width:1.7;stroke-dasharray:5 3}
.measure-unit .measure-line-hit,.measure-unit .measure-handle{touch-action:none}
.measure-label:active,.measure-label-hit:active{cursor:grabbing}

/* v1.6.5.35: measurement-label multi-selection and linked property buttons */
.measure-multi-select{border:1px solid #c7dcf1;background:linear-gradient(180deg,#f4faff,#fff);border-radius:12px;padding:12px 11px;margin:12px 0 15px}
.measure-multi-heading{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:10px;color:#245c8b;font-size:13px}
.measure-multi-heading span{font-size:11px;color:#557b9f;background:#e8f3ff;border-radius:20px;padding:3px 7px;font-variant-numeric:tabular-nums}
.measure-multi-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.measure-line-select-btn{display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center;min-height:48px;border:1px solid #cbdced;background:#fff;border-radius:9px;color:#42627f;cursor:pointer;font-weight:700;font-size:12px;padding:5px;line-height:1.3}
.measure-line-select-btn small{font-size:10px;font-weight:500;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.measure-line-select-btn:hover{border-color:#64a3dc;background:#edf7ff}
.measure-line-select-btn.selected{background:#dceeff;color:#14538b;border:2px solid #2c88d7;box-shadow:0 0 0 2px #4ba4ee20}
.measure-multi-actions{display:flex;gap:6px;margin-top:9px}
.measure-multi-actions button{border:1px solid #cbdced;border-radius:7px;background:#fff;color:#536f89;font-size:11px;padding:5px 9px;cursor:pointer}
.measure-multi-actions button:hover{background:#e8f3ff}
.measure-label-hit.selected{fill:rgba(27,138,225,.11);stroke:#1682dc;stroke-width:2;stroke-dasharray:5 3}
.measure-line.selected .measure-label{cursor:grab}

/* v1.6.5.40 — Photoshop-like font chooser and tight direct text */
.df-direct-autofit-control{display:flex;align-items:center;gap:8px;padding:11px 12px;border:1px solid #b9d9f4;border-radius:10px;background:#eff8ff;font-weight:700;color:#235987;font-size:12px;margin:9px 0}
.df-direct-autofit-control input{accent-color:#277bc2}
.df-native-font-hidden{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;clip:rect(0 0 0 0)!important}
.df-floating-text-tools{width:345px;overflow:visible!important}
.df-floating-text-tools .df-tool-body{position:relative}
.df-font-field{position:relative}
.df-font-preview-toggle{height:38px;display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;border:1px solid #b4cbdf;background:white;border-radius:8px;padding:5px 10px;color:#254761;text-align:left;font-size:13px;cursor:pointer;white-space:nowrap;overflow:hidden}
.df-font-preview-toggle:hover{border-color:#2c8ad1;background:#f7fcff}
.df-font-preview-toggle span:first-child{overflow:hidden;text-overflow:ellipsis}
.df-font-preview-popup{position:absolute;top:83px;left:12px;right:12px;border:1px solid #b5cde4;border-radius:11px;background:#fff;box-shadow:0 9px 24px #102c4c40;z-index:50;padding:8px}
.df-font-preview-popup.hidden{display:none!important}
.df-font-popup-head{display:flex;gap:6px}
.df-font-popup-head input{width:100%;min-width:0;height:35px;border:1px solid #c2d6e6;border-radius:8px;padding:7px 9px;font-size:12px}
.df-font-popup-head button{flex:0 0 auto;min-width:74px;padding:0 8px;border:1px solid #88b6dc;border-radius:7px;background:#e5f3ff;color:#165588;font-size:11px;font-weight:700;cursor:pointer}
.df-font-preview-list{max-height:300px;overflow-y:auto;margin-top:6px;padding-right:2px;scrollbar-width:thin}
.df-font-group-title{font-size:10px;color:#64819a;font-weight:800;background:#eff5fb;padding:7px 8px;margin-top:6px;border-radius:5px}
.df-font-choice{display:grid;grid-template-columns:1fr;align-items:start;width:100%;padding:9px 11px;text-align:left;background:#fff;border:1px solid transparent;border-bottom-color:#edf1f5;cursor:pointer;border-radius:7px}
.df-font-choice:hover{background:#f0f8ff;border-color:#8bbde4}
.df-font-choice.active{background:#e7f4ff;border-color:#3897d9}
.df-font-choice-name{font-weight:650;font-size:12px;color:#36536d}
.df-font-choice-sample{font-size:19px;color:#183a56;margin-top:4px;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.df-font-popup-note{font-size:10px;color:#758699;margin:8px 4px 3px;line-height:1.35}
.df-weight-row{grid-template-columns:minmax(0,1fr) 92px!important}
.df-weight-live-sample{padding:8px 5px;border:1px solid #e1eaf2;background:#f9fcff;border-radius:7px;font-size:17px;text-align:center;color:#243e53;white-space:nowrap}
.df-prop-weight{margin-top:8px}
@media (max-width:700px){.df-floating-text-tools{width:320px;max-width:calc(100vw - 8px)}.df-font-preview-popup{max-height:50vh;overflow-y:auto}}

.text-size-properties[data-direct-text-sizing="true"][data-auto-fit="true"]{display:none!important}
/* Direct text starts flush with the text; move the drag grip out of the glyph area. */
.text-direct-unit .text-block-drag-grip{top:-23px;left:0;z-index:10}

/* v1.6.5.42: in-canvas text alignment controls */
.df-tool-align-row{align-items:center;gap:8px;justify-content:space-between}
.df-tool-align-row>span{font-size:11px;font-weight:750;white-space:nowrap}
.df-tool-align-buttons{display:flex;flex:1;gap:4px}
.df-tool-align-buttons button{flex:1;min-width:0;cursor:pointer;border:1px solid #d6e1e9;border-radius:6px;background:#fff;color:#547084;padding:7px 3px;font-size:11px}
.df-tool-align-buttons button.active,.df-tool-align-buttons button[aria-pressed="true"]{border-color:#188f88;background:#e6f7f3;color:#116b66;font-weight:800}

/* v1.6.5.43 — same compact, movable typography palette for 상세페이지 / MY샵 */
#dfFloatingTextTools{width:298px!important;max-width:calc(100vw - 12px);max-height:calc(100vh - 20px);overflow-y:auto!important;overscroll-behavior:contain}
#dfFloatingTextTools .df-text-tool-head{padding:8px 10px;gap:5px}
#dfFloatingTextTools .df-tool-body{padding:9px;gap:7px}
#dfFloatingTextTools .df-tool-row{gap:6px}
#dfFloatingTextTools .df-tool-row select,#dfFloatingTextTools .df-tool-row input[type=number]{height:31px}
#dfFloatingTextTools .df-font-preview-toggle{height:33px}
#dfFloatingTextTools .df-weight-row{grid-template-columns:minmax(0,1fr) 82px!important}
#dfFloatingTextTools .df-weight-live-sample{font-size:13px;padding:7px 3px}
#dfFloatingTextTools .text-symbols{padding:7px 9px 9px}
#dfFloatingTextTools .text-symbol-tool-btn{min-height:34px;padding:4px}
#dfFloatingTextTools .text-symbol-items{max-height:148px}
#dfFloatingTextTools .df-font-preview-list{max-height:205px}
.measure-photo-outline{box-sizing:border-box;touch-action:none;cursor:grab}
.measure-photo-outline:active{cursor:grabbing}
.measure-photo-stage{overflow:visible}
.measure-photo-sizing input[type=range]{width:100%;accent-color:#2188ce}
.measure-photo-sizing .mini-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:8px}
.measure-photo-sizing .quick-btn{padding:7px 3px;font-size:10px;min-width:0}
.measure-photo-fit-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:7px 0 8px}
.measure-photo-fit-buttons button{min-width:0;border:1px solid #b9d4e8;border-radius:7px;background:#fff;padding:8px 3px;color:#4b7794;font-size:11px;font-weight:700;cursor:pointer}
.measure-photo-fit-buttons button.active{background:#e4f3ff;border-color:#2b8ac9;color:#16649e}

#finalToggleInfo{height:32px;padding:0 10px;border:1px solid #cbd6df;border-radius:8px;background:#fff;color:#4f6476;font-weight:700;cursor:pointer}
#finalToggleInfo:hover{background:#f2f6fa}
#dfFloatingTextTools{width:298px!important;max-width:calc(100vw - 12px);max-height:calc(100vh - 20px);overflow-y:auto!important;overscroll-behavior:contain;border:1px solid #bbd2e9!important;border-radius:12px!important;box-shadow:0 14px 38px rgba(19,44,77,.19)!important}.df-text-tool-head{background:linear-gradient(90deg,#e8f4ff,#f5faff)!important;color:#235b91!important;cursor:grab;user-select:none}.df-text-tool-head.dragging{cursor:grabbing}.df-text-tool-head strong{font-size:12px}.df-text-tool-head .df-tool-sub{margin-left:auto;font-size:9px;color:#87a1b7;white-space:nowrap}.df-text-tool-head button{width:24px;height:24px;border-radius:6px;background:#fff}.df-tool-body{padding:9px!important;gap:7px!important;font-size:10px}.df-floating-text-tools .text-symbol-tool-btn{min-height:32px}.df-tool-align-buttons button.active{background:#e0f0ff;border-color:#5c9cc9;color:#135989}

/* v1.6.5.45: compact MY샵-matched typography popup */
#dfFloatingTextTools{box-sizing:border-box;width:298px!important;padding:0;border:1px solid #bbd2e9!important;border-radius:12px!important;box-shadow:0 14px 38px rgba(19,44,77,.19)!important;background:#fff;overflow-y:auto!important}
#dfFloatingTextTools .df-text-tool-head{box-sizing:border-box;position:sticky;top:0;z-index:55;display:flex;align-items:center;gap:6px;padding:8px 10px;background:linear-gradient(90deg,#e8f4ff,#f5faff)!important;color:#235b91;font-size:12px;min-height:36px}
#dfFloatingTextTools .df-tool-grip{font-size:16px}
#dfFloatingTextTools .df-tool-sub{font-size:9px;white-space:nowrap}
#dfFloatingTextTools .df-tool-body{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;padding:9px!important;font-size:10px}
#dfFloatingTextTools .df-tool-body label{display:grid;gap:5px;min-width:0;font-size:10px;font-weight:750;color:#57748c}
#dfFloatingTextTools .df-font-field{display:grid;gap:5px;margin:0}
#dfFloatingTextTools .df-font-preview-toggle{height:33px;min-height:33px;padding:6px 8px;display:flex;align-items:center;gap:5px;border:1px solid #cddde9;border-radius:7px;font-size:12px;max-width:100%;background:#fff}
#dfFloatingTextTools .df-font-preview-popup{position:absolute;left:7px;right:7px;top:81px;z-index:75;background:#fff;border:1px solid #d7e5ef;border-radius:8px;box-shadow:0 7px 25px #182d413d;padding:7px;max-height:min(300px,55vh);overflow-y:auto}
#dfFloatingTextTools .df-font-preview-list{max-height:205px}
#dfFloatingTextTools .df-ms-style-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end;gap:9px}
#dfFloatingTextTools .df-ms-style-row input,#dfFloatingTextTools .df-ms-style-row select{box-sizing:border-box;display:block;width:100%;min-width:0;height:31px;border:1px solid #d1dfeb;border-radius:7px;padding:3px 7px;background:#fff;color:#263d53;font-size:12px}
#dfFloatingTextTools .df-visually-hidden{display:none!important}
#dfFloatingTextTools .df-ms-color-row{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,.95fr);align-items:end;gap:9px}
#dfFloatingTextTools .df-ms-color-row input[type=color]{box-sizing:border-box;width:100%;height:31px;min-width:0;border:1px solid #cddde9;border-radius:7px;padding:3px 6px;background:#fff}
#dfFloatingTextTools #dfToolUnderline{height:31px;min-width:0;border:1px solid #cbdde9;border-radius:7px;background:#f7fbff;color:#416c88;font-size:10px}
#dfFloatingTextTools #dfToolUnderline.is-active{background:#e0f0ff;border-color:#5c9cc9;color:#135989}
#dfFloatingTextTools .df-ms-align-block{display:block!important;margin:1px 0 0;min-width:0}
#dfFloatingTextTools .df-ms-align-label{font-size:10px;font-weight:750;color:#57748c;margin-bottom:5px}
#dfFloatingTextTools .df-tool-align-buttons{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px}
#dfFloatingTextTools .df-tool-align-buttons button{box-sizing:border-box;display:block;min-width:0!important;min-height:32px;white-space:nowrap;padding:6px 2px!important;font-size:10px;border:1px solid #cbdde9;border-radius:7px;background:#fff;color:#58748b}
#dfFloatingTextTools .df-tool-align-buttons button.active,#dfFloatingTextTools .df-tool-align-buttons button[aria-pressed=true]{border-color:#5c9cc9;background:#e0f0ff;color:#135989;font-weight:800}
#dfFloatingTextTools #textSymbols{box-sizing:border-box;width:100%;max-width:100%;margin:0;padding:5px 9px 0!important;border:0;background:#fff}
#dfFloatingTextTools .text-symbol-tool-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
#dfFloatingTextTools .text-symbol-tool-btn{box-sizing:border-box;display:flex;justify-content:center;align-items:center;min-height:32px!important;padding:5px!important;border:1px solid #cbdde9;border-radius:7px;background:#f7fbff;color:#416c88;gap:5px;font-size:10px;font-weight:750}
#dfFloatingTextTools .text-symbol-tool-btn svg{width:16px;height:16px}
#dfFloatingTextTools .text-symbol-picker{max-height:230px;overflow:auto}
#dfFloatingTextTools .df-ms-toolbar-hint{padding:1px 9px 9px;margin:0;font-size:9px;color:#96a5ae;line-height:1.45}
.left-pane .output-name-settings{margin:0 0 10px;padding:10px;border:1px solid #d9e5f0;border-radius:8px;background:#f9fbff}
.left-pane .output-name-settings strong{font-size:11px;color:#466b8a}
.left-module[data-left-module=tabs] .tab-create-area{min-height:0;overflow-y:auto;transition:none}

/* v1.6.5.48 — table edge border and grouped row/column typography */
.table-edge-border-options{border:1px solid #dbe7f1;border-radius:9px;background:#f7fafc;padding:11px}
.table-edge-border-options>strong{font-size:12px;display:block;margin-bottom:7px}
.table-edge-border-options>label{font-size:12px;display:flex;align-items:center;gap:7px;cursor:pointer}
.df-table-format-workbench{border:1px solid #bdd7df;background:#f2f8fa;border-radius:12px;padding:12px;margin:12px 0;display:grid;gap:9px;min-width:0}
.df-table-format-workbench>strong{font-size:13px;color:#275b76}
.df-batch-line{display:grid;grid-template-columns:minmax(0,1fr) minmax(95px,1fr);gap:7px;min-width:0}
.df-batch-line>label{font-size:10px;color:#54727f;font-weight:700;min-width:0}
.df-batch-line input,.df-batch-line select{display:block;width:100%;margin-top:4px;max-width:100%;min-width:0;padding:5px;border:1px solid #d7e1e9;border-radius:6px}
.df-batch-line input[type=color]{height:36px}
.df-batch-underline{font-size:11px;display:flex;align-items:center;gap:5px}
.df-batch-actions{display:flex;flex-wrap:wrap;gap:6px}
.df-batch-actions button{border:1px solid #adcad6;background:white;padding:7px 9px;border-radius:7px;cursor:pointer;font-size:10px;font-weight:750;color:#2c637d}
.df-batch-actions #tableApplySelectedRows,.df-batch-actions #tableApplyAllRows{background:#1b706b;color:white;border-color:#1b706b}
.df-table-format-workbench>small{color:#657d85}
.table-row-check{display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center;cursor:pointer;color:#344f60;font-size:11px}
.table-row-check input{width:15px;height:15px}
.table-column-format-item .table-column-format-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;min-width:0}
.table-column-format-item .table-column-format-row label{min-width:0}
.table-column-format-item .table-column-format-row input,.table-column-format-item .table-column-format-row select{width:100%;min-width:0;max-width:100%;height:32px}
.table-column-format-item .table-column-format-row button{font-size:11px;color:#5e7894;border:1px solid #d5e1ee;border-radius:6px;background:#fff;cursor:pointer}

/* v1.6.5.49: heading row typography workbench */
.df-table-header-controls{min-width:0;border:1px solid #cbdde9;border-radius:11px;background:#f8fbff;padding:12px;margin:12px 0}
.df-header-section-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px;justify-content:space-between;color:#285f87;font-size:12px}
.df-header-section-head small{font-size:10px;color:#7794aa}
.df-header-cards{display:grid;grid-template-columns:1fr;gap:6px;margin-top:10px}
.df-header-card{border:1px solid #d8e6f2;border-radius:8px;background:#fff;min-width:0}
.df-header-card summary{padding:9px;cursor:pointer;display:flex;align-items:center;gap:7px;font-size:11px;list-style:none;color:#4e667d}
.df-header-card summary::-webkit-details-marker{display:none}
.df-header-card summary::after{content:'⌄';margin-left:auto;font-weight:bold}
.df-header-card[open] summary::after{content:'⌃'}
.df-header-card summary strong{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.df-header-no{display:inline-block;background:#e4f0fa;color:#26638e;padding:3px 6px;border-radius:5px;font-size:10px;white-space:nowrap}
.df-header-form{padding:10px;border-top:1px solid #ecf1f6;display:grid;gap:9px}
.df-header-form label{display:grid;gap:3px;min-width:0;font-size:10px;color:#57758e;font-weight:700}
.df-header-form .field{height:33px;min-width:0;width:100%;max-width:100%;padding:4px 6px}
.df-header-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px;align-items:end}
.df-header-form .df-header-ink{width:100%;height:33px;max-width:100%;border:1px solid #ccddeb;border-radius:5px;padding:2px}
.df-header-form .df-header-under{display:flex;flex-direction:row;align-items:center;gap:6px;padding:7px 0;white-space:nowrap}
.df-header-reset{padding:8px 10px;background:#fff;color:#57758e;border:1px solid #d5e2ec;border-radius:6px;cursor:pointer;font-size:10px}
.df-header-reset:hover{background:#edf6fd}

.df-gridline-controls{display:flex;gap:8px;align-items:center}.df-gridline-controls input[type=range]{flex:1;min-width:0}.df-gridline-controls input[type=number]{width:76px;padding:7px!important;min-width:76px}.df-gridline-controls+.small-help{margin-top:4px}

/* v1.6.5.56: HEX fields adjacent to every native color picker */
.df-hex-input{display:inline-block!important;box-sizing:border-box!important;width:95px!important;max-width:100%!important;height:30px!important;padding:5px 6px!important;margin:3px 0 3px 6px!important;vertical-align:middle!important;flex:0 0 95px!important;border:1px solid #c3d5e2!important;border-radius:6px!important;background:#fff!important;color:#273f4b!important;font:600 11px ui-monospace,Consolas,monospace!important;letter-spacing:.3px!important}
.df-hex-input:focus{outline:2px solid #76b1db!important;outline-offset:1px!important}
.df-hex-input.df-hex-invalid{border-color:#d65a5a!important;background:#fff5f5!important}
.df-ms-align-block .df-tool-align-buttons{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important}
.df-ms-align-block .df-tool-align-buttons button{font-size:10px!important;padding:6px 1px!important;min-width:0!important}
.gallery-align-buttons{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important}
.gallery-align-buttons button{font-size:10px!important;white-space:nowrap}

/* v1.6.5.57 — photo-only gallery, independent visibility and custom frames */
.gallery-photo-design{border:1px solid #b8d5e6;background:#f6fbff;border-radius:10px;padding:13px;margin:12px 0;display:grid;gap:9px}
.gallery-photo-design>strong{font-size:13px;color:#225d86}
.gallery-photo-only-toggle{display:flex;align-items:flex-start;gap:9px;background:#eaf6ff;border:1px solid #c0dcef;padding:10px;border-radius:8px;cursor:pointer}
.gallery-photo-only-toggle input{width:17px;height:17px;flex:0 0 auto;accent-color:#1689b3;margin-top:2px}
.gallery-photo-only-toggle span{display:grid;gap:3px;min-width:0}
.gallery-photo-only-toggle b{font-size:12px;color:#195f83}
.gallery-photo-only-toggle small{font-size:10px;line-height:1.5;color:#668394}
.gallery-show-title-toggle{display:flex;align-items:center;gap:8px;font-size:11px;color:#3f667b}
.gallery-show-title-toggle input{accent-color:#1689b3}
.gallery-aspect-fields{display:grid;grid-template-columns:minmax(0,1fr) 10px minmax(0,1fr);align-items:center;gap:7px}
.gallery-aspect-fields label{min-width:0;display:grid;gap:4px;font-size:10px;color:#5e7786;font-weight:700}
.gallery-aspect-fields .field{width:100%;min-width:0}
.gallery-aspect-fields>span{text-align:center;color:#809db0}
.gallery-item-aspect-fields{padding:4px 0 8px}
.gallery-schema-row{grid-template-columns:16px 15px minmax(0,1fr) 49px repeat(3,25px)!important}
.gallery-schema-visible{display:flex;align-items:center;justify-content:center;gap:3px;white-space:nowrap;font-size:10px;color:#416b82;cursor:pointer}
.gallery-schema-visible input{width:13px;height:13px;accent-color:#1689b3}
.gallery-schema-row:has(.gallery-schema-visible input:not(:checked)){background:#f2f5f7}

/* v1.6.5.58: distinguish output image frame resizing from internal photograph zoom */
.image-frame-width-handle{position:absolute;right:-18px;top:50%;transform:translateY(-50%);min-width:42px;padding:4px 6px;border-radius:6px;background:#fff;border:1px solid #2683d4;color:#1e5d95;font-size:11px;font-weight:700;box-shadow:0 1px 4px #12335c2e;opacity:0;pointer-events:none;cursor:ew-resize;white-space:nowrap}
.image-transform-unit.active .image-frame-width-handle,.image-photo-stage:hover .image-frame-width-handle{opacity:1;pointer-events:auto}

.image-transform-unit.active{outline:none!important}.image-transform-unit.active .image-transform-outline{border-color:#2683d4!important}

/* v1.6.5.60 — Word-style paragraph indent and table WYSIWYG width grips */
.df-toolbar-indent{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px;color:#52677b;font-size:11px;font-weight:700}
.df-toolbar-indent input{width:92px;height:32px;border-radius:6px;border:1px solid #d3e0eb;padding:5px 8px;background:#fff;color:#21384a}
.df-indent-property{display:grid;gap:5px;margin:8px 0;font-size:12px;color:#52677b;font-weight:700}
.df-table-width-property{background:#eff7ff;border:1px solid #d3e8fa;border-radius:9px;padding:11px;display:grid;gap:7px}
.df-table-width-controls{display:flex;align-items:center;gap:9px;min-width:0}
.df-table-width-controls input[type=range]{width:100%;min-width:40px;flex:1}
.df-table-width-controls input[type=number]{width:82px;flex:none}
.df-table-width-controls span{font-size:11px;color:#668099}
.df-table-width-grip,.df-table-column-grip{position:absolute;z-index:100;pointer-events:auto;display:flex;align-items:center;justify-content:center;transform:translate(-50%,-50%);cursor:ew-resize;touch-action:none;user-select:none;border:1px solid #2d8fd1;color:#1675ad;background:#f5fbff;font-size:16px;line-height:1;padding:0;box-shadow:0 2px 6px #1a426644}
.df-table-width-grip{width:29px;height:29px;border-radius:50%;background:#1576bb;color:#fff;box-shadow:0 1px 4px #1b589755}
.df-table-column-grip{width:15px;height:34px;border-radius:9px;opacity:.9}
.df-table-width-grip:hover,.df-table-column-grip:hover{outline:2px solid #68b8ec;outline-offset:1px}
.ms-common-type-settings{border:1px solid #e0e8e9;border-radius:9px;margin:11px 0 14px;padding:7px;background:#f9fcfc}
.ms-common-type-settings>summary{cursor:pointer;font-size:11px;font-weight:700;color:#327879;padding:6px;line-height:1.6}
.ms-common-type-settings .ms-prop-panel{background:#fff}
.ms-text-indent-tool{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0;font-size:11px}
.ms-text-indent-tool input{width:92px;height:32px;border:1px solid #d7e2e3;padding:5px;border-radius:6px}
/* Custom stickers library */
.df-sticker-modal.hidden{display:none!important}
.df-sticker-modal{position:fixed;inset:0;z-index:200300;background:rgba(19,32,45,.54);display:flex;justify-content:center;align-items:center;padding:16px;font-family:Pretendard,'Malgun Gothic',sans-serif}
.df-sticker-dialog{width:min(640px,96vw);max-height:88vh;overflow:auto;border-radius:16px;background:#fff;color:#243b4b;box-shadow:0 25px 68px #152b4655;padding:19px}
.df-sticker-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid #e3ecf3;padding-bottom:12px}
.df-sticker-head strong{font-size:17px}.df-sticker-head p{font-size:11px;color:#7b91a2}.df-sticker-head button,.df-sticker-commands button{border:1px solid #cadae8;background:#fff;border-radius:8px;padding:8px 12px;cursor:pointer;color:#285575;font-weight:750}
.df-sticker-commands{display:flex;gap:12px;align-items:center;margin:16px 0;font-size:11px;color:#718392}.df-sticker-commands button{background:#eaf5fd;color:#14649d;white-space:nowrap}
.df-sticker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:10px;max-height:46vh;overflow:auto;min-height:135px}
.df-sticker-item{position:relative;border:1px solid #dce7ed;border-radius:9px;padding:6px;background:#f9fcfd}.df-sticker-item>button:first-child{display:flex;flex-direction:column;align-items:center;width:100%;border:none;background:none;cursor:pointer;gap:5px;padding:0}.df-sticker-item img{width:65px;height:65px;object-fit:contain}.df-sticker-item small{max-width:80px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:10px;color:#506f7e}.df-sticker-remove{position:absolute;right:1px;top:1px;border:0;border-radius:5px;background:#fff;color:#b34352;cursor:pointer}
.df-sticker-empty{grid-column:1/-1;padding:35px;text-align:center;font-size:12px;color:#7e919c}.df-sticker-foot{font-size:11px;color:#8192a0;margin-top:12px}.df-sticker-trigger{width:100%;border:1px solid #d5e5f2;background:#f3faff;color:#24648a;padding:8px;border-radius:8px;font-size:11px;font-weight:750;cursor:pointer}
.df-inline-sticker-images{display:inline-flex;gap:4px;align-items:center;vertical-align:middle;margin-left:6px}.df-inline-sticker-images img{width:42px;height:42px;object-fit:contain;vertical-align:middle}.df-text-sticker-layer{position:absolute;bottom:0;left:0;display:flex;gap:6px;padding:3px 8px;pointer-events:none;z-index:7}.df-text-sticker-layer img{width:52px;height:52px;object-fit:contain}

/* v1.6.5.66: final assembly is a seamless preview of the JPG composite. */
.final-zoom-stage{background:#fff}
.final-zoom-stage .final-unit{box-shadow:none!important;border:0!important;outline:none!important;filter:none!important;background:#fff;line-height:0}
.final-zoom-stage .final-unit canvas{display:block;width:100%;max-width:100%;height:auto;vertical-align:top;border:0;outline:0;box-shadow:none;image-rendering:auto}
.final-zoom-stage .final-gap-unit{box-shadow:none;border:0;outline:0}

/* v1.6.5.70: separate gallery heading typography from item defaults. */
.gallery-heading-properties{border:1px solid #d6e5f3;border-radius:12px;background:#f8fbff;padding:12px;margin:8px 0 14px;}
.gallery-heading-properties>strong{display:block;margin:0 0 5px;color:#244a70;font-size:13px;}
.gallery-heading-properties .prop-row{gap:9px;}
.gallery-heading-properties .gallery-align-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;}
.gallery-heading-properties .gallery-align-buttons button{min-width:0;font-size:11px;padding:7px 3px;}
.gallery-body-font-default{border:1px solid #e2e9f0;border-radius:10px;margin-bottom:12px;background:#fff;}
.gallery-body-font-default summary{padding:10px 12px;color:#5f7388;cursor:pointer;font-weight:700;font-size:12px;}
.gallery-body-font-default[open] summary{border-bottom:1px solid #edf1f5;}
.gallery-body-font-default .font-pc-panel{padding:10px;}


/* v1.6.5.72 multi selection + common props */
.block-entry.multi-selected{background:#f8fbff;border-color:#b9d6f2;box-shadow:inset 0 0 0 1px #d9ebfb}
.preview-unit.multi-selected{outline:2px solid #89bdea;outline-offset:-2px;z-index:1}
.bulk-common-card{padding:12px;border:1px solid #dce8f3;border-radius:12px;background:linear-gradient(180deg,#fbfdff,#f6fbff)}
.bulk-common-card strong{display:block;color:#235c8b}

/* v1.6.5.73 공통 편집창 · 캔버스 가장자리 선택 */
.df-multi-edge{position:absolute;top:50%;left:-17px;transform:translateY(-50%);width:32px;height:34px;border-radius:9px;border:1px solid #8ab8e0;background:#fff;color:#2f79b2;font-size:17px;font-weight:900;z-index:32;box-shadow:0 2px 7px #17365124;cursor:pointer;opacity:.20;line-height:1;display:grid;place-items:center}
.preview-unit:hover>.df-multi-edge,.preview-unit.active>.df-multi-edge,.preview-unit.multi-selected>.df-multi-edge,.df-multi-edge:focus-visible{opacity:1}
.preview-unit.multi-selected{outline:3px solid #78aeef!important;outline-offset:-3px}
.df-common-float{position:fixed;z-index:1605;box-sizing:border-box;width:304px;max-height:min(75vh,690px);border:1px solid #bfd4e6;border-radius:13px;background:#fff;box-shadow:0 14px 42px #0e35512f;overflow:hidden}
.df-common-float.hidden,.df-common-dock.hidden{display:none!important}
.df-common-float-head{display:flex;align-items:center;gap:6px;padding:10px 12px;background:linear-gradient(90deg,#e6f5ff,#f4faff);border-bottom:1px solid #dce8f3;cursor:grab;user-select:none;color:#24577f}
.df-common-float-head.dragging{cursor:grabbing}.df-common-float-head strong{font-size:12px}.df-common-float-head .df-common-float-count{margin-left:auto;color:#6a94b3;font-size:10px}
.df-common-float-head button{width:26px;height:26px;border-radius:6px;border:1px solid #d4e3f0;background:#fff;color:#356c96;font-size:18px}
.df-common-float-body{max-height:calc(min(75vh,690px) - 47px);overflow:auto;padding:12px;display:grid;gap:12px}
.df-common-dock{position:fixed;top:210px;z-index:1606;width:38px;height:48px;border-radius:9px 0 0 9px;border:1px solid #8bb9dc;background:#e7f4ff;color:#195f92;font-size:22px;box-shadow:0 4px 14px #1f598834;cursor:pointer}
.df-common-summary{color:#607a91;font-size:10px;line-height:1.55}
.df-common-group{display:grid;gap:9px;border:1px solid #dfebf2;border-radius:10px;padding:10px;background:#fbfdff}
.df-common-group>strong{color:#285e86;font-size:12px}
.df-common-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.df-common-group label{display:grid;gap:5px;min-width:0;font-size:10px;font-weight:700;color:#587083}
.df-common-group label input:not([type=checkbox]),.df-common-group label select{box-sizing:border-box;width:100%;height:33px;min-width:0;border:1px solid #d2e0ec;border-radius:7px;background:#fff;color:#273f55;padding:5px 7px;font-size:12px}
.df-common-group label input[type=color]{padding:3px 5px}
.df-common-group label.df-common-check{display:flex;align-items:center;gap:7px}
.df-common-group small{color:#8b9eaf;font-size:10px;line-height:1.5}
.df-common-link{font-size:10px;font-weight:700;border:1px solid #bad9ee;background:#edf7ff;color:#2b71a1;border-radius:7px;padding:7px;justify-self:start}
@media(max-width:740px){.df-common-float{width:min(300px,calc(100vw - 20px));left:10px!important;top:110px!important}.df-multi-edge{left:2px;opacity:.95}}

.df75-final-back{color:#175f92!important;background:#eef8ff!important;border-color:#b7d6ee!important;font-weight:800!important;white-space:nowrap}
.df75-final-back:hover{background:#d7efff!important}
.df75-image-rotate{border:1px solid #d8e8f4;border-radius:9px;padding:10px;background:#f8fbff}
.df75-rotate-row{display:flex;align-items:center;gap:7px}.df75-rotate-row input[type=range]{width:100%;flex:1;min-width:60px}.df75-rotate-row input[type=number]{width:62px!important;flex:0 0 62px}.df75-rotate-row span{font-weight:700;font-size:11px}

.image-transform-outline .df75-image-rotate-grip{display:none;position:absolute;top:-35px;left:50%;transform:translateX(-50%);width:25px;height:25px;line-height:22px;text-align:center;border:2px solid #2f8bcc;border-radius:50%;background:#fff;color:#1675bb;cursor:grab;box-shadow:0 2px 6px #274a6d30;font-size:18px;z-index:25;pointer-events:auto}
.image-transform-unit.active .df75-image-rotate-grip,.image-transform-unit:hover .df75-image-rotate-grip{display:block}

/* v1.6.5.78 Gallery Excel import with detected column mapping */
.df78-auto-row{flex:1;min-width:190px;padding:11px 13px;background:#f1f8fa;border:1px solid #d2e6e9;border-radius:10px;align-self:end}
.df78-auto-row strong,.df78-map-section strong{font-size:12px;color:#215e71}
.df78-auto-row p{font-size:10px;color:#587586;line-height:1.6;margin-top:4px}
.df78-map-section{padding:13px;border:1px solid #d6e7ed;border-radius:12px;background:#fbfdfe;margin:11px 0}
.df78-map-section strong small{font-size:10px;color:#8199a4;margin-left:5px}
.df78-gallery-mapping{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:13px}
.df78-gallery-mapping label{min-width:0;display:grid;gap:5px;color:#466273;font-size:11px;font-weight:700}
.df78-gallery-mapping .field{min-width:0}
@media (max-width:750px){.df78-gallery-mapping{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v1.6.5.78 measurement frame resize handles */
.df78-measure-side{position:absolute;z-index:16;touch-action:none;opacity:0;background:#eef8ff;border:1px solid #2791d2;box-shadow:0 1px 3px #18365055;border-radius:5px}
.measure-unit:hover .df78-measure-side,.measure-unit.active .df78-measure-side,.measure-unit.measure-resizing .df78-measure-side{opacity:1}
.df78-measure-side.top,.df78-measure-side.bottom{width:55px;height:10px;left:50%;transform:translateX(-50%);cursor:ns-resize}
.df78-measure-side.bottom{bottom:-5px}.df78-measure-side.top{margin-top:-5px}
.df78-measure-side.left,.df78-measure-side.right{width:10px;height:55px;top:50%;transform:translateY(-50%);cursor:ew-resize}
.df78-measure-side.left{left:-5px}.df78-measure-side.right{right:-5px}


/* v1.6.5.79: measurement label batch typography */
.measure-batch-format{background:#fff;border:1px solid #bcd9ed;border-radius:11px;padding:12px 11px;margin:10px 0 9px;box-shadow:0 2px 8px rgba(45,115,158,.06)}
.measure-batch-format>strong{display:block;font-size:12px;color:#1b628e;margin-bottom:11px}
.measure-batch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.measure-batch-grid>label{min-width:0;display:flex;flex-direction:column;gap:5px;font-size:10px;font-weight:700;color:#4d687d}
.measure-batch-grid .field,.measure-batch-grid select{width:100%;min-width:0;box-sizing:border-box;max-width:100%;font-size:12px}
.measure-batch-grid .measure-batch-color{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap}
.measure-batch-color input[type=color]{width:58px;height:32px;border-radius:7px;border:1px solid #c4d9e8;cursor:pointer;background:#fff;padding:2px}
.measure-batch-color #measureBulkColorHint{font-size:9px;color:#678299;font-weight:500}
.measure-batch-grid .measure-batch-underline{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:11px}
.measure-bulk-empty{border:1px dashed #abcce0;border-radius:9px;background:#f8fcff;padding:10px;font-size:11px;line-height:1.6;color:#537d99;margin-top:9px}
.measure-batch-format>.small-help{display:block;margin-top:9px;line-height:1.5}

/* v1.6.5.80: spreadsheet columns A/B/C mapped to user-selected spec roles */
.df78-gallery-mapping{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.df80-column-role{min-width:0;background:#fff;border:1px solid #d9e5eb;border-radius:10px;padding:10px 11px;display:grid;gap:8px;box-shadow:0 1px 2px rgba(25,59,76,.04)}
.df80-column-source{display:flex;align-items:center;gap:8px;min-width:0}
.df80-col-letter{border-radius:6px;background:#e4f1f5;padding:5px 9px;color:#116476;font-weight:800;font-size:11px;white-space:nowrap}
.df80-column-source strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#253d50}
.df80-column-role>label{display:grid;gap:5px;font-size:10px;font-weight:700;color:#657e8b}
.df80-column-role .field{width:100%;min-width:0}
@media(max-width:650px){.df78-gallery-mapping{grid-template-columns:1fr}}

/* v1.6.5.81: live Photoshop-style guide X/Y position while dragging. */
.df81-guide-coordinate{position:fixed;z-index:150;pointer-events:none;user-select:none;white-space:nowrap;
  background:rgba(34,39,47,.95);color:#fff;border:1px solid rgba(255,255,255,.16);border-radius:5px;
  padding:5px 8px;font:600 11px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:.1px;box-shadow:0 3px 12px rgba(0,0,0,.25)}

/* v1.6.5.82 — editor canvas zoom, center of slider is the native 100% */
.df82-preview-zoom{display:flex;align-items:center;gap:5px;min-width:240px;border:1px solid #d5e3ef;background:#f6faff;border-radius:10px;padding:5px 7px;white-space:nowrap}
.df82-preview-zoom button{flex:0 0 auto;width:25px;height:26px;padding:0;border:1px solid #ccddec;background:white;border-radius:6px;color:#28649a;font-size:15px;font-weight:800}
.df82-preview-zoom input[type=range]{flex:1 1 110px;min-width:70px;max-width:160px;accent-color:#2679cb;cursor:pointer}
.df82-preview-zoom output{width:44px;text-align:right;display:inline-block;font-weight:800;color:#255a84;font-size:11px;font-variant-numeric:tabular-nums}
.df82-preview-zoom #previewZoomReset{width:39px;height:25px;font-size:10px}
.df82-preview-zoom button:hover{background:#e7f3ff}
.preview-scroll{align-items:safe center}
#previewStage{transform-origin:top center}
@media(max-width:1180px){.center-toolbar{padding:13px 12px;flex-wrap:wrap;gap:8px}.toolbar-right{flex-wrap:wrap}.df82-preview-zoom{min-width:215px}}

/* v1.6.5.88 — crop inside a photo+specification card without changing the mask. */
.df-gallery-photo-zone{position:absolute;box-sizing:border-box;z-index:1;cursor:zoom-in;border:1px solid transparent;border-radius:2px;user-select:none}
.df-gallery-photo-zone:hover{border-color:#1487cf;box-shadow:inset 0 0 0 2px #1487cf33}
.df-gallery-photo-zone-editing{cursor:grab;outline:2px dashed #167cca;outline-offset:-2px;z-index:2}
.df-gallery-item-cropping{cursor:default!important;background:transparent!important}
.df-gallery-item-cropping .gallery-item-overlay-tools{display:none!important}
.df-gallery-crop-view{position:absolute;inset:0;overflow:hidden;cursor:grab;touch-action:none;background:#f5f6f7}
.df-gallery-crop-view.dragging{cursor:grabbing}
.df-gallery-crop-view img{position:absolute;display:block;max-width:none;max-height:none;pointer-events:none;user-select:none;-webkit-user-drag:none}
.df-gallery-crop-panel{position:fixed;z-index:20000;box-sizing:border-box;width:300px;max-width:calc(100vw - 24px);border:1px solid #acd1ed;box-shadow:0 8px 28px #12334d38;border-radius:12px;background:#fff;padding:12px 13px;font-family:inherit;font-size:12px;color:#34495a}
.df-gallery-crop-panel-header,.df-gallery-crop-panel-footer,.df-gallery-crop-zoom{display:flex;align-items:center;gap:10px;justify-content:space-between}
.df-gallery-crop-panel-header strong{font-size:13px;color:#165b91}
.df-gallery-crop-panel button{cursor:pointer;border-radius:6px;background:#eff8ff;color:#145c93;border:1px solid #acd2ed;padding:5px 8px;font-size:12px}
.df-gallery-crop-panel button:hover{background:#d8eeff}
.df-gallery-crop-panel p{margin:8px 0 10px;font-size:11px;line-height:1.55;color:#5c6c7c}
.df-gallery-crop-zoom{margin:6px 0 12px}
.df-gallery-crop-zoom label{white-space:nowrap;font-weight:700}
.df-gallery-crop-zoom input[type=range]{min-width:0;flex:1;accent-color:#167cca}
.df-gallery-crop-zoom output{width:39px;text-align:right;font-variant-numeric:tabular-nums;font-weight:800;color:#145c93}
.df-gallery-crop-panel-footer{justify-content:space-between}
.df-gallery-crop-panel-footer button:last-child{background:#167cca;color:#fff;border-color:#167cca}

/* v1.6.5.89 — keep photo/spec ↑ ↓ × buttons above the crop hit-zone.
   The crop layer in v1.6.5.88 had z-index:1; without a higher toolbar
   stacking level, pointer hits went to the photo instead of the controls. */
.gallery-preview-unit .gallery-item-overlay-tools{z-index:10;pointer-events:none}
.gallery-preview-unit .gallery-hitbox:hover .gallery-item-overlay-tools,
.gallery-preview-unit .gallery-hitbox.selected .gallery-item-overlay-tools{pointer-events:auto}
.gallery-preview-unit .gallery-item-overlay-tools button{position:relative;z-index:1;cursor:pointer;touch-action:manipulation}
.gallery-preview-unit .gallery-item-overlay-tools button:focus-visible{outline:2px solid #1f80cf;outline-offset:2px}

/* DetailFlow v1.6.5.91: unobtrusive gallery badge controls and direct editing */
.gallery-badge-properties{border:1px solid #d6e4ed;border-radius:9px;padding:8px 10px;margin:9px 0;background:#f7fbff}
.gallery-badge-properties>summary{cursor:pointer;color:#24445e;font-weight:750;font-size:12px}
.gallery-badge-properties>summary small{float:right;color:#66839a;font-size:10px;font-weight:500}
.gallery-badge-properties[open]>summary{margin-bottom:10px}
.gallery-badge-properties .gallery-badge-show-toggle{display:flex;align-items:center;gap:5px;margin-bottom:9px;color:#25455c;font-size:12px}
.gallery-badge-properties input[type=color]{width:100%;min-height:34px;cursor:pointer}
.df-gallery-badge-trigger{font:700 12px/1.2 sans-serif;padding:4px 6px;border-radius:5px;border:1px solid #b9d0e3;background:#fff;color:#24648d;cursor:pointer;box-shadow:0 2px 7px #172b3e32;opacity:0;pointer-events:none!important;transition:opacity .12s ease;white-space:nowrap}
.gallery-preview-unit.active .df-gallery-badge-trigger.for-selected,.df-gallery-badge-trigger:focus-visible{opacity:.95;pointer-events:auto!important}
.df-gallery-badge-trigger:hover,.df-gallery-badge-trigger:focus-visible{opacity:1!important}
.df-gallery-badge-colors-btn{font-size:12px;padding:2px 4px;min-height:23px;min-width:25px}
.df-gallery-badge-edit:focus{outline:2px solid #249bd8!important;box-shadow:0 0 0 2px #fff7!important;user-select:text!important}
.df-gallery-badge-popover{position:fixed;z-index:2147483000;width:248px;box-sizing:border-box;padding:12px;background:white;color:#1e3650;border:1px solid #aac9e1;border-radius:10px;box-shadow:0 9px 26px #142e4c42;font:12px/1.4 'Malgun Gothic',sans-serif}
.df-gallery-badge-popover-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.df-gallery-badge-popover-head b{font-size:13px;color:#1d4c77}
.df-gallery-badge-popover-head button{background:#f0f4f9;border:1px solid #c6d9e7;border-radius:5px;padding:1px 8px;font-size:16px;cursor:pointer}
.df-gallery-badge-popover label{display:block;font-size:12px;margin:7px 0}
.df-gallery-badge-popover input[type=text]{display:block;width:100%;box-sizing:border-box;padding:8px;border:1px solid #bbd0e0;border-radius:6px;margin-top:4px;font-size:13px;color:#1a3450}
.df-gallery-badge-popover .df-gallery-badge-popover-check{display:flex;align-items:center;gap:6px}
.df-gallery-badge-colors{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.df-gallery-badge-colors input{display:block;width:100%;height:35px;border:1px solid #c1cfdb;border-radius:5px;background:white;cursor:pointer}
.df-gallery-badge-popover p{font-size:10px;line-height:1.5;color:#627a8a;margin:6px 0 0}

/* v1.6.5.92 · Per-photo badge typography and optional transparent backing */
.gallery-badge-typography{display:grid;gap:9px;border:1px solid #dce7f1;border-radius:8px;background:#fff;padding:10px;margin-top:10px}
.gallery-badge-typography>strong{font-size:11px;color:#2a5d82;margin:0 0 3px}
.gallery-badge-typography label{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:11px}
.gallery-badge-typography .prop-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.gallery-badge-typography .prop-row>*{min-width:0}
.gallery-badge-typography select,.gallery-badge-typography input{max-width:100%;min-width:0;box-sizing:border-box}
.gallery-badge-properties .gallery-badge-no-bg-toggle{display:flex;align-items:center;gap:7px;font-size:11px;margin-top:9px}
.gallery-badge-typography .gallery-badge-inline-check{flex-direction:row;align-items:center;justify-content:center;padding-top:14px}
.gallery-badge-properties input[type=color]:disabled,.df-gallery-badge-popover input[type=color]:disabled{opacity:.38;cursor:not-allowed}
