.font-dropdown-component,.font-dropdown-wrapper{position:relative}.font-dropdown-toggle{color:#333;cursor:pointer;text-align:left;background:#fff;border:1px solid #ddd;border-radius:6px;width:100%;padding:8px 12px;font-size:14px;transition:all .2s;position:relative}.font-dropdown-toggle:hover{background:#f8fbff;border-color:#009cff}.font-dropdown-toggle:focus{border-color:#009cff;outline:none;box-shadow:0 0 0 2px #009cff1a}.font-dropdown-toggle:after{content:"▼";color:#666;font-size:10px;transition:transform .2s;position:absolute;top:50%;right:12px;transform:translateY(-50%)}.font-dropdown-toggle:hover:after{color:#009cff}.font-dropdown-overlay{z-index:20000;opacity:0;background:0 0;transition:opacity .2s;display:none;position:fixed;inset:0}.font-dropdown-overlay.open{opacity:1;display:block}.font-dropdown-menu{z-index:20010;opacity:0;visibility:hidden;box-sizing:border-box;background:#fff;border:1px solid #ddd;border-radius:8px;flex-direction:column;max-height:400px;transition:all .2s;display:flex;position:fixed;overflow:hidden;transform:translateY(-8px);box-shadow:0 8px 24px #00000026}.font-dropdown-menu.open{opacity:1;visibility:visible;transform:translateY(0)}.font-dropdown-search{background:#fafafa;border-bottom:1px solid #eee;padding:12px}.font-dropdown-search input{border:1px solid #ddd;border-radius:4px;outline:none;width:100%;padding:8px 12px;font-size:13px;transition:border-color .2s}.font-dropdown-search input:focus{border-color:#009cff;box-shadow:0 0 0 2px #009cff1a}.font-dropdown-list{background:#fff;flex:1;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:2px;max-height:300px;padding:8px;display:grid;overflow-y:auto}.font-dropdown-item{cursor:pointer;color:#333;text-align:center;white-space:nowrap;text-overflow:ellipsis;border-radius:4px;min-height:36px;padding:8px 10px;font-size:14px;transition:all .15s;position:relative;overflow:hidden}.font-dropdown-item:hover,.font-dropdown-item.focused{color:#009cff;background:#f0f9ff}.font-dropdown-item.selected{color:#009cff;background:#e6f4ff;font-weight:600}@media (max-width:768px){.font-dropdown-overlay.open{display:block}.font-dropdown-menu{border-radius:16px 16px 0 0;max-height:45vh;transform:translateY(100%);width:100vw!important;position:fixed!important;inset:auto 0 0!important}.font-dropdown-menu.open{transform:translateY(0)}.font-dropdown-search{padding:16px}.font-dropdown-search input{padding:12px 16px;font-size:16px}.font-dropdown-item{text-align:center;color:#111;white-space:normal;word-break:break-word;-webkit-hyphens:auto;hyphens:auto;min-height:48px;text-overflow:unset;padding:12px 6px;font-size:15px;line-height:1.4;overflow:visible}.font-dropdown-list{grid-template-columns:repeat(3,1fr);grid-auto-rows:minmax(48px,auto);align-items:stretch;gap:6px;max-height:calc(45vh - 80px);padding:10px;display:grid}}.watermark-control-group .font-dropdown-component{width:100%}.watermark-control-group .font-dropdown-toggle{font-family:inherit}.font-dropdown-list::-webkit-scrollbar{width:6px}.font-dropdown-list::-webkit-scrollbar-track{background:#f1f1f1}.font-dropdown-list::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px}.font-dropdown-list::-webkit-scrollbar-thumb:hover{background:#a8a8a8}
.watermark-history-root.hidden{display:none!important}.watermark-history-root.open{display:block}.watermark-history-backdrop,.watermark-history-modal{transition:none!important}.watermark-history-backdrop{z-index:2104;background:#00000073;position:fixed;inset:0}.watermark-history-overlay{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#0003;position:fixed;inset:0}.watermark-history-modal{z-index:2106;background:#fff;border-radius:16px;flex-direction:column;width:800px;max-width:95vw;max-height:85vh;display:flex;position:fixed;top:50%;left:50%;overflow:hidden;transform:translate(-50%,-50%);box-shadow:0 12px 24px -10px #0000002e}.watermark-history-header{background:linear-gradient(90deg,#fff,#f7fafc);border-bottom:1px solid #eef0f2;justify-content:space-between;align-items:center;padding:6px 13px;display:flex}.watermark-history-toolbar{background:#fff;border-bottom:1px solid #eef0f2;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:8px 20px;display:flex}.watermark-history-search-section{flex:none;width:220px;max-width:260px}.watermark-history-search-box{box-sizing:border-box;background:#fff;border:1px solid #e2e8f0;border-radius:6px;align-items:center;height:36px;padding:2px 12px;transition:all .2s;display:flex;position:relative}.watermark-history-search-box:focus-within{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.watermark-history-search-box i{color:#94a3b8;margin-right:8px;font-size:12px}.watermark-history-search-input{color:#475569;background:0 0;border:none;outline:none;flex:1;padding:0;font-size:12px}.watermark-history-search-input::placeholder{color:#94a3b8}.watermark-history-search-clear{color:#94a3b8;cursor:pointer;background:0 0;border:none;border-radius:4px;padding:2px;transition:color .2s}.watermark-history-search-clear:hover{color:#64748b}.watermark-history-status{color:#64748b;flex:none;font-size:12px;font-weight:500}.watermark-history-grid-control{flex:none;align-items:center;gap:8px;display:flex;position:relative}.watermark-history-grid-label{color:#64748b;font-size:11px;font-weight:500}.watermark-history-grid-dropdown{position:relative}.watermark-history-grid-selected{color:#374151;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:6px;align-items:center;gap:6px;min-width:45px;padding:6px 12px 6px 8px;font-size:11px;display:flex}.watermark-history-grid-selected:hover{background:#f0f9ff;border-color:#009cff}.watermark-history-grid-selected i{color:#94a3b8;font-size:9px}.watermark-history-grid-dropdown.open .watermark-history-grid-selected i{transform:rotate(180deg)}.watermark-history-grid-options{z-index:1000;background:#fff;border:1px solid #e2e8f0;border-radius:6px;margin-top:2px;position:absolute;top:100%;left:0;right:0;overflow:hidden;box-shadow:0 4px 12px #0000001a}.watermark-history-grid-option{color:#374151;cursor:pointer;text-align:left;background:0 0;border:none;justify-content:space-between;align-items:center;width:100%;padding:8px 12px;font-size:11px;display:flex}.watermark-history-grid-option:hover{background:#f0f9ff}.watermark-history-grid-option.active{color:#009cff;background:#e6f4ff;font-weight:600}.watermark-history-grid-option.active:after{content:"✓";font-size:10px}.watermark-history-name-section{background:#fafbfc;border-bottom:1px solid #f1f5f9;padding:0}.watermark-history-name-display{color:#1e293b;cursor:pointer;box-sizing:border-box;background:#f0f8ff;border-radius:0;justify-content:space-between;align-items:center;min-height:20px;margin:0;padding:3px 5px;font-family:inherit;font-size:12px;font-weight:600;line-height:1.5;transition:none;display:flex}.watermark-history-name-display:hover{background:#f0f8ff}.watermark-history-name-input{color:#1e293b;box-sizing:border-box;background:#fff;border:1px solid #e2e8f0;border-radius:6px;outline:none;width:100%;min-height:20px;margin:0;padding:3px 5px;font-family:inherit;font-size:12px;font-weight:600;line-height:1.5}.watermark-history-name-input:focus,.watermark-history-name-input:focus-visible,.watermark-history-name-input:active{box-shadow:none;border-color:#e2e8f0;outline:none}.watermark-history-name-edit-container{z-index:2200;align-items:center;gap:4px;height:24px;padding-right:4px;display:flex;position:relative}.watermark-history-name-edit-container .watermark-history-name-input{z-index:2201;border-top-right-radius:0;border-bottom-right-radius:0;flex:1;height:100%}.watermark-history-name-actions{z-index:2201;height:100%;display:flex}.watermark-history-name-save{color:#fff;cursor:pointer;background:#009cff;border:1px solid #007ecc;border-radius:0 6px 6px 0;justify-content:center;align-items:center;width:24px;height:24px;padding:0;font-size:10px;display:flex}.watermark-history-name-save:hover{background:#007ecc}.watermark-history-pin-btn{cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;background:0 0;border:none;flex-shrink:0;padding:0;font-size:12px;transition:color .2s}.watermark-history-pin-btn.pinned{color:#009cff!important;opacity:1!important}.watermark-history-pin-btn.unpinned{color:#999!important;opacity:.6!important}@media (hover:hover) and (pointer:fine){.watermark-history-pin-btn.unpinned:hover{color:#009cff!important}}@media (max-width:768px){.watermark-history-name-input{appearance:none;-webkit-tap-highlight-color:transparent;z-index:2201;min-height:24px;padding:3px 5px;font-size:12px;position:relative}.watermark-history-name-display{-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;justify-content:space-between;align-items:center;min-height:24px;padding:3px 5px;display:flex}.watermark-history-name-save{width:24px;height:24px;font-size:10px}}.watermark-history-title-section{align-items:center;gap:10px;display:flex}.watermark-history-icon-btn{cursor:pointer;background:0 0;border:none;border-radius:10px;padding:0;transition:opacity .2s}.watermark-history-icon-btn:disabled{cursor:not-allowed}.watermark-history-icon{background:#009cff;border-radius:10px;justify-content:center;align-items:center;width:34px;height:34px;display:flex}.watermark-history-icon i{color:#fff;font-size:16px}.watermark-history-title{color:#1e293b;letter-spacing:.3px;text-align:left;font-size:17px;font-weight:600}.watermark-history-subtitle{color:#64748b;text-align:left;margin-top:-2px;font-size:12px}.watermark-history-controls{align-items:center;gap:8px;display:flex}.watermark-history-refresh-btn{cursor:pointer;color:#64748b;background:0 0;border:1px solid #e2e8f0;border-radius:6px;flex:none;align-items:center;gap:4px;padding:4px 8px;font-size:11px;transition:all .2s;display:flex}.watermark-history-refresh-btn:hover:not(:disabled){color:#0369a1;background:#f0f9ff;border-color:#bae6fd}.watermark-history-refresh-btn:disabled{opacity:.6;cursor:not-allowed}.watermark-history-refresh-btn .spinning{animation:1s linear infinite spin}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0)}to{-webkit-transform:rotate(360deg)}}@keyframes spin-reverse{0%{transform:rotate(0)}to{transform:rotate(-360deg)}}@-webkit-keyframes spin-reverse{0%{-webkit-transform:rotate(0)}to{-webkit-transform:rotate(-360deg)}}.spinning-reverse{animation:1s linear infinite spin-reverse}.watermark-history-icon i.spinning-reverse{transform-origin:50%;animation:1s linear infinite spin-reverse!important}.watermark-history-refresh-btn i{font-size:10px}.watermark-history-clear-btn{cursor:pointer;color:#64748b;white-space:nowrap;background:0 0;border:1px solid #e2e8f0;border-radius:6px;align-items:center;gap:4px;padding:4px 8px;font-size:11px;transition:all .2s;display:flex}.watermark-history-clear-btn:hover{color:#dc2626;background:#fef2f2;border-color:#fecaca}.watermark-history-clear-btn i{font-size:10px}.watermark-history-close-btn{cursor:pointer;color:#64748b;background:0 0;border:none;border-radius:8px;justify-content:center;align-items:center;width:34px;height:34px;transition:background-color .2s;display:flex}.watermark-history-close-btn:hover{background:#f1f5f9}.watermark-history-close-btn i{font-size:15px}.watermark-history-content{overscroll-behavior:contain;will-change:scroll-position;flex:1;min-height:200px;max-height:none;padding:16px 20px;overflow-y:auto;transform:translateZ(0)}.watermark-history-content.hide-scrollbar{scrollbar-width:none;-ms-overflow-style:none}.watermark-history-content.hide-scrollbar::-webkit-scrollbar{display:none}.watermark-history-empty{text-align:center;flex-direction:column;justify-content:center;min-height:200px;padding-top:40px;padding-bottom:20px;display:flex}.watermark-history-empty-icon{background:#f1f5f9;border-radius:50%;justify-content:center;align-items:center;width:64px;height:64px;margin:0 auto 12px;display:flex}.watermark-history-empty-icon i{color:#94a3b8;font-size:24px}.watermark-history-empty-title{color:#475569;margin-bottom:4px;font-size:15px;font-weight:500}.watermark-history-empty-subtitle{color:#64748b;font-size:12px;line-height:16px}.watermark-history-grid{will-change:contents;grid-auto-rows:auto;place-items:start center;gap:16px;display:grid}.watermark-history-grid.grid-1{grid-template-columns:repeat(1,1fr)}.watermark-history-grid.grid-2{grid-template-columns:repeat(2,1fr)}.watermark-history-grid.grid-3{grid-template-columns:repeat(3,1fr)}.watermark-history-grid.grid-4{grid-template-columns:repeat(4,1fr)}.watermark-history-grid.grid-5{grid-template-columns:repeat(5,1fr)}.watermark-history-grid.grid-1 .watermark-history-entry,.watermark-history-grid.grid-2 .watermark-history-entry,.watermark-history-grid.grid-3 .watermark-history-entry,.watermark-history-grid.grid-4 .watermark-history-entry,.watermark-history-grid.grid-5 .watermark-history-entry{width:100%}.watermark-history-entry{cursor:pointer;background:#fff;border:1px solid #f1f5f9;border-radius:16px;width:100%;max-width:100%;overflow:hidden;box-shadow:0 1px 4px #00000014}.watermark-history-root.open .watermark-history-entry{content-visibility:auto;contain-intrinsic-size:320px 380px;contain:layout paint style}.watermark-history-preview{aspect-ratio:1;box-sizing:border-box;background-image:repeating-linear-gradient(45deg,#e6f4ff 0 10px,#f0f9ff 10px 20px);width:100%;height:auto;display:block;position:relative;overflow:hidden}.watermark-history-preview-image,.watermark-history-preview-canvas,.watermark-history-preview:before{display:none}.watermark-history-preview-mark{white-space:nowrap;pointer-events:none;z-index:5;border-radius:2px;padding:0;font-family:inherit;position:absolute}.watermark-history-preview-mark[style*="background-color: rgb(0, 156, 255)"]{padding:2px 4px}.watermark-history-details{background:#f0f8ff;border-top:1px solid #f1f5f9;padding:10px 14px 12px}.watermark-history-meta{justify-content:space-between;align-items:center;display:flex}.watermark-history-count{color:#1e293b;background:#f0f9ff;border:1px solid #e0f2fe;border-radius:12px;padding:2px 8px;font-size:11px;font-weight:500}.watermark-history-date{color:#64748b;font-size:10px}.watermark-history-description{display:none}.watermark-history-actions{gap:8px;margin-top:10px;display:flex}.watermark-history-load-btn{color:#fff;cursor:pointer;background-color:#009cff;border:none;border-radius:6px;flex:1;justify-content:center;align-items:center;gap:6px;padding:7px 12px;font-size:12px;font-weight:500;transition:all .2s;display:flex;box-shadow:0 1px 2px #0000001a}.watermark-history-load-btn:hover{filter:brightness(.98)}.watermark-history-load-btn i{font-size:10px}.watermark-history-load-btn span{position:relative;top:.5px}.watermark-history-delete-btn{color:#64748b;cursor:pointer;background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;justify-content:center;align-items:center;min-width:32px;padding:7px;font-size:10px;transition:all .2s;display:flex;box-shadow:0 1px 2px #0000000d}.watermark-history-delete-btn:hover{color:#dc2626;background:#fef2f2}@media (max-width:768px){.watermark-history-modal{border-radius:12px;width:96vw;max-height:90vh}.watermark-history-header{gap:6px}.watermark-history-title-section{order:1}.watermark-history-search-section{order:2;width:100%;max-width:none}.watermark-history-controls{order:3;justify-content:flex-end;gap:6px}.watermark-history-clear-btn,.watermark-history-refresh-btn{gap:3px;padding:4px 6px;font-size:10px}.watermark-history-grid{gap:12px}.watermark-history-grid .watermark-history-entry{max-width:100%;width:100%!important}.watermark-history-content{padding:12px 16px}.watermark-history-count{display:none}}@media (max-width:480px){.watermark-history-grid .watermark-history-entry{max-width:100%!important}.watermark-history-title{font-size:15px}.watermark-history-subtitle{font-size:11px}.watermark-history-toolbar{gap:6px;padding:8px 12px}.watermark-history-status{text-align:left;order:4;width:100%}}
