:root{--rusty-primary:#6366f1;--rusty-primary-hover:#4f46e5;--rusty-bg:#fff;--rusty-bg-secondary:#f8fafc;--rusty-border:#e2e8f0;--rusty-text:#1e293b;--rusty-text-muted:#64748b;--rusty-radius:8px;--rusty-shadow:0 1px 3px #0000001a, 0 1px 2px #0000000f;--rusty-shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -2px #0000000d}html.dark,.dark,:root.dark{--rusty-bg:#18181b;--rusty-bg-secondary:#09090b;--rusty-border:#3f3f46;--rusty-text:#f3f4f6;--rusty-text-muted:#d1d5db;--rusty-shadow:0 1px 3px #00000080, 0 1px 2px #0006;--rusty-shadow-lg:0 10px 15px -3px #00000080, 0 4px 6px -2px #0006}.gradient-title{color:#6366f1;background:linear-gradient(135deg,#6366f1,#ec4899);-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text}@supports not ((-webkit-background-clip:text) or (background-clip:text)){.gradient-title{color:#6366f1}}.rusty-modal-overlay{z-index:9999;background:#00000080;justify-content:center;align-items:center;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.rusty-modal{background:var(--rusty-bg);min-width:400px;max-width:90vw;box-shadow:var(--rusty-shadow-lg);border-radius:12px;padding:24px}.rusty-modal h3{color:var(--rusty-text);margin:0 0 16px;font-size:18px;font-weight:600}.rusty-modal-hint{color:var(--rusty-text-muted);margin:-8px 0 16px;font-size:14px}.rusty-modal-field{margin-bottom:16px}.rusty-modal-field label{color:var(--rusty-text);margin-bottom:6px;font-size:14px;font-weight:500;display:block}.rusty-modal-field input,.rusty-modal-field textarea{border:1px solid var(--rusty-border);background:var(--rusty-bg);width:100%;color:var(--rusty-text);box-sizing:border-box;border-radius:6px;padding:10px 12px;font-size:14px}.rusty-modal-field input:focus,.rusty-modal-field textarea:focus{border-color:var(--rusty-primary);outline:none;box-shadow:0 0 0 3px #6366f11a}.rusty-modal-field textarea{resize:vertical;min-height:80px}.rusty-modal-actions{justify-content:flex-end;gap:12px;margin-top:24px;display:flex}.rusty-btn-cancel{border:1px solid var(--rusty-border);background:var(--rusty-bg);color:var(--rusty-text);cursor:pointer;border-radius:6px;padding:10px 20px;font-size:14px;transition:all .15s}.rusty-btn-cancel:hover{background:var(--rusty-bg-secondary)}.rusty-btn-primary{background:var(--rusty-primary);color:#fff;cursor:pointer;border:none;border-radius:6px;padding:10px 20px;font-size:14px;transition:all .15s}.rusty-btn-primary:hover:not(:disabled){background:var(--rusty-primary-hover)}.rusty-btn-primary:disabled{opacity:.5;cursor:not-allowed}.rusty-tabs{gap:8px;margin-bottom:16px;display:flex}.rusty-tabs button{border:1px solid var(--rusty-border);background:var(--rusty-bg);color:var(--rusty-text);cursor:pointer;border-radius:6px;padding:8px 16px;font-size:14px;transition:all .15s}.rusty-tabs button:hover{background:var(--rusty-bg-secondary)}.rusty-tabs button.active{background:var(--rusty-primary);color:#fff;border-color:var(--rusty-primary)}.rusty-preview{border:1px solid var(--rusty-border);background:var(--rusty-bg-secondary);border-radius:6px;margin-top:12px;padding:12px}.rusty-preview img{-o-object-fit:contain;object-fit:contain;max-width:100%;max-height:200px}.rusty-embed{height:0;margin:16px 0;padding-bottom:56.25%;position:relative;overflow:hidden}.rusty-embed iframe{width:100%;height:100%;position:absolute;top:0;left:0}.rusty-table-grid{background:var(--rusty-bg-secondary);border:1px solid var(--rusty-border);border-radius:6px;flex-direction:column;gap:4px;padding:8px;display:flex}.rusty-table-grid-row{gap:4px;display:flex}.rusty-table-grid-cell{border:1px solid var(--rusty-border);cursor:pointer;background:var(--rusty-bg);border-radius:4px;width:28px;height:28px;transition:all .15s}.rusty-table-grid-cell:hover{border-color:var(--rusty-primary)}.rusty-table-grid-cell.active{z-index:1;background:#6366f1;border-color:#4f46e5;transform:scale(1.1);box-shadow:0 0 0 2px #6366f14d}.rusty-modal-wide{min-width:450px}.rusty-modal-row{margin-bottom:16px}.rusty-checkbox{cursor:pointer;color:var(--rusty-text);align-items:center;gap:8px;font-size:14px;display:inline-flex}.rusty-checkbox input[type=checkbox]{width:18px;height:18px;accent-color:var(--rusty-primary)}.rusty-editor-content a{color:var(--rusty-primary);cursor:pointer;text-decoration:underline;position:relative}.rusty-editor-content a:hover{color:var(--rusty-primary-hover)}.rusty-editor-content a:after{content:"Ctrl+Click to open";color:#fff;white-space:nowrap;opacity:0;pointer-events:none;background:#1e293b;border-radius:4px;padding:4px 8px;font-size:11px;transition:opacity .2s;position:absolute;bottom:100%;left:50%;transform:translate(-50%)}.rusty-editor-content a:hover:after{opacity:1}.theme-toggle{border:1px solid var(--rusty-border);color:#475569;cursor:pointer;width:44px;height:44px;box-shadow:var(--rusty-shadow);background:#fff;border-radius:12px;justify-content:center;align-items:center;transition:all .2s;display:flex}.theme-toggle:hover{color:#1e293b;background:#f1f5f9;transform:scale(1.05)}.dark .theme-toggle{color:#fcd34d;box-shadow:none;background:#1e293bcc;border-color:#334155}.dark .theme-toggle:hover{background:#334155e6}.rusty-table{border-collapse:collapse;table-layout:fixed;border-radius:8px;width:100%;margin:16px 0;overflow:hidden;box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f}.rusty-table th,.rusty-table td{resize:horizontal;min-width:50px;position:relative;overflow:hidden}.rusty-table th:after,.rusty-table td:after{content:"";cursor:col-resize;background:0 0;width:4px;transition:background .2s;position:absolute;top:0;bottom:0;right:0}.rusty-table th:hover:after,.rusty-table td:hover:after{background:var(--rusty-primary);opacity:.5}.rusty-resize-handle{cursor:col-resize;z-index:10;-webkit-user-select:none;user-select:none;background:0 0;width:6px;transition:background .2s;position:absolute;top:0;bottom:0;right:0}.rusty-resize-handle:hover,.rusty-resize-handle.active{background:var(--rusty-primary)}.dark{--rusty-bg:#1e293b;--rusty-bg-secondary:#0f172a;--rusty-border:#334155;--rusty-text:#e2e8f0;--rusty-text-muted:#94a3b8}.dark .rusty-editor{background:var(--rusty-bg);border-color:var(--rusty-border)}.dark .rusty-toolbar{background:var(--rusty-bg-secondary);border-color:var(--rusty-border)}.dark .rusty-toolbar-button{color:var(--rusty-text)}.dark .rusty-toolbar-button:hover{background:#334155}.dark .rusty-editor-content{background:var(--rusty-bg);color:var(--rusty-text)}.dark .rusty-modal{background:#1e293b;border:1px solid #334155}.dark .rusty-modal h3{color:#f1f5f9}.dark .rusty-modal-field label{color:#e2e8f0}.dark .rusty-modal-field input,.dark .rusty-modal-field textarea{color:#e2e8f0;background:#0f172a;border-color:#334155}.dark .rusty-btn-cancel{color:#e2e8f0;background:#334155;border-color:#475569}.dark .rusty-btn-cancel:hover{background:#475569}.dark .rusty-tabs button{color:#94a3b8;background:#0f172a;border-color:#334155}.dark .rusty-tabs button:hover{background:#1e293b}.dark .rusty-tabs button.active{background:var(--rusty-primary);border-color:var(--rusty-primary);color:#fff}.dark .rusty-table-grid{background:#0f172a;border-color:#334155}.dark .rusty-table-grid-cell,.dark .rusty-toolbar-dropdown{background:#1e293b;border-color:#334155}.dark .rusty-toolbar-dropdown button{color:#e2e8f0}.dark .rusty-toolbar-dropdown button:hover{background:#334155}.dark .rusty-editor-footer{background:#0f172a;border-color:#334155}.dark .rusty-editor-credit{color:#94a3b8}.dark .rusty-editor-credit:hover{color:var(--rusty-primary)}:root:not(.dark),html:not(.dark){--rusty-bg:#fff;--rusty-bg-secondary:#f8fafc;--rusty-border:#e2e8f0;--rusty-text:#1e293b;--rusty-text-muted:#64748b}:root:not(.dark) .rusty-editor,html:not(.dark) .rusty-editor{background:#fff;border-color:#e2e8f0}:root:not(.dark) .rusty-toolbar,html:not(.dark) .rusty-toolbar{background:#f8fafc;border-color:#e2e8f0}:root:not(.dark) .rusty-toolbar-button,html:not(.dark) .rusty-toolbar-button{color:#1e293b}:root:not(.dark) .rusty-toolbar-button:hover,html:not(.dark) .rusty-toolbar-button:hover{background:#e2e8f0}:root:not(.dark) .rusty-editor-content,html:not(.dark) .rusty-editor-content{color:#1e293b;background:#fff}:root:not(.dark) .rusty-modal,html:not(.dark) .rusty-modal{background:#fff;border-color:#e2e8f0}:root:not(.dark) .rusty-modal h3,html:not(.dark) .rusty-modal h3,:root:not(.dark) .rusty-modal-field label,html:not(.dark) .rusty-modal-field label{color:#1e293b}:root:not(.dark) .rusty-modal-field input,:root:not(.dark) .rusty-modal-field textarea,html:not(.dark) .rusty-modal-field input,html:not(.dark) .rusty-modal-field textarea,:root:not(.dark) .rusty-btn-cancel,html:not(.dark) .rusty-btn-cancel{color:#1e293b;background:#fff;border-color:#e2e8f0}:root:not(.dark) .rusty-btn-cancel:hover,html:not(.dark) .rusty-btn-cancel:hover{background:#f8fafc}:root:not(.dark) .rusty-toolbar-dropdown,html:not(.dark) .rusty-toolbar-dropdown{background:#fff;border-color:#e2e8f0}:root:not(.dark) .rusty-toolbar-dropdown button,html:not(.dark) .rusty-toolbar-dropdown button{color:#1e293b}:root:not(.dark) .rusty-toolbar-dropdown button:hover,html:not(.dark) .rusty-toolbar-dropdown button:hover{background:#f8fafc}.rusty-editor{border:1px solid var(--rusty-border);border-radius:var(--rusty-radius);background:var(--rusty-bg);box-shadow:var(--rusty-shadow);flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;display:flex;overflow:hidden}.rusty-editor--disabled{opacity:.6;pointer-events:none}.rusty-toolbar{background:var(--rusty-bg-secondary);border-bottom:1px solid var(--rusty-border);flex-wrap:wrap;align-items:center;gap:2px;padding:8px 12px;display:flex}.rusty-toolbar--disabled{opacity:.5;pointer-events:none}.rusty-toolbar-item-wrapper{display:inline-flex;position:relative}.rusty-toolbar-button{width:32px;height:32px;color:var(--rusty-text);cursor:pointer;background:0 0;border:none;border-radius:6px;justify-content:center;align-items:center;padding:0;transition:all .15s;display:flex}.rusty-toolbar-button:hover:not(:disabled){background:var(--rusty-border)}.rusty-toolbar-button:active:not(:disabled){transform:scale(.95)}.rusty-toolbar-button--active{background:var(--rusty-primary)!important;color:#fff!important}.rusty-toolbar-button:disabled{opacity:.4;cursor:not-allowed}.rusty-toolbar-button svg{width:18px;height:18px}.rusty-toolbar-separator{background:var(--rusty-border);width:1px;height:24px;margin:0 8px}.rusty-toolbar-dropdown{z-index:100;background:var(--rusty-bg);border:1px solid var(--rusty-border);border-radius:var(--rusty-radius);min-width:140px;box-shadow:var(--rusty-shadow-lg);margin-top:4px;padding:4px;position:absolute;top:100%;left:0}.rusty-toolbar-dropdown button{width:100%;color:var(--rusty-text);text-align:left;cursor:pointer;background:0 0;border:none;border-radius:4px;padding:8px 12px;font-size:14px;display:block}.rusty-toolbar-dropdown button:hover{background:var(--rusty-bg-secondary)}.rusty-editor-content-wrapper{flex:1;position:relative}.rusty-editor-content{color:var(--rusty-text);outline:none;min-height:200px;padding:16px 20px;font-size:16px;line-height:1.7}.rusty-editor-content:empty:before{content:attr(data-placeholder);color:var(--rusty-text-muted);pointer-events:none}.rusty-editor-content:focus{background:var(--rusty-bg)}.rusty-editor-content p{margin:0 0 1em}.rusty-editor-content h1,.rusty-editor-content h2,.rusty-editor-content h3,.rusty-editor-content h4,.rusty-editor-content h5,.rusty-editor-content h6{margin:1.5em 0 .5em;font-weight:600;line-height:1.3}.rusty-editor-content h1{font-size:2em}.rusty-editor-content h2{font-size:1.5em}.rusty-editor-content h3{font-size:1.25em}.rusty-editor-content h4{font-size:1.1em}.rusty-editor-content h5{font-size:1em}.rusty-editor-content h6{font-size:.9em}.rusty-editor-content ul,.rusty-editor-content ol{margin:0 0 1em;padding-left:2em}.rusty-editor-content li{margin-bottom:.25em}.rusty-editor-content blockquote{border-left:4px solid var(--rusty-primary);background:var(--rusty-bg-secondary);margin:1em 0;padding:.5em 1em;font-style:italic}.rusty-editor-content pre{background:var(--rusty-bg-secondary);border-radius:var(--rusty-radius);margin:1em 0;padding:1em;font-family:Fira Code,Monaco,Consolas,monospace;font-size:14px;overflow-x:auto}.rusty-editor-content code{background:var(--rusty-bg-secondary);border-radius:4px;padding:.2em .4em;font-family:Fira Code,Monaco,Consolas,monospace;font-size:.9em}.rusty-editor-content pre code{background:0 0;padding:0}.rusty-editor-content a{color:var(--rusty-primary);text-decoration:underline}.rusty-editor-content img{border-radius:var(--rusty-radius);max-width:100%;height:auto}.rusty-editor-content table{border-collapse:collapse;table-layout:fixed;width:100%;margin:1em 0}.rusty-editor-content th,.rusty-editor-content td{border:1px solid var(--rusty-border);text-align:left;padding:8px 12px;position:relative;overflow:hidden}.rusty-editor-content th{background:var(--rusty-bg-secondary);font-weight:600}.rusty-table--striped tbody tr:nth-child(2n){background-color:#00000005}.dark .rusty-table--striped tbody tr:nth-child(2n){background-color:#ffffff0d}.rusty-table--bordered th,.rusty-table--bordered td{border-width:2px}.rusty-table--minimal th,.rusty-table--minimal td{border-width:0 0 1px}.rusty-table--dark{color:#f8fafc;background-color:#1e293b;border-color:#334155}.rusty-table--dark th{color:#f8fafc;background-color:#0f172a;border-color:#334155}.rusty-table--dark td{border-color:#334155}.rusty-table--dark .rusty-resize-handle:hover{background-color:#60a5fa}.rusty-editor-loading{background:var(--rusty-bg);color:var(--rusty-text-muted);z-index:10;flex-direction:column;justify-content:center;align-items:center;gap:12px;display:flex;position:absolute;top:0;bottom:0;left:0;right:0}.rusty-editor-spinner{border:3px solid var(--rusty-border);border-top-color:var(--rusty-primary);border-radius:50%;width:32px;height:32px;animation:.8s linear infinite rusty-spin}@keyframes rusty-spin{to{transform:rotate(360deg)}}.rusty-editor-error{text-align:center;color:#ef4444;border-radius:var(--rusty-radius);background:#fef2f2;border:1px solid #fecaca;padding:24px}.rusty-editor-sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.rusty-editor-footer{background:var(--rusty-bg-secondary);border-top:1px solid var(--rusty-border);color:var(--rusty-text-muted);padding:6px 12px;font-size:12px;justify-content:flex-end!important;display:flex!important}.rusty-editor-credit{color:var(--rusty-text-muted);gap:4px;text-decoration:none;transition:color .15s;align-items:center!important;display:flex!important}.rusty-editor-credit:hover{color:var(--rusty-primary)}.rusty-editor-credit svg{width:14px;height:14px}.rusty-editor-footer.rusty-credit-protected{visibility:visible!important;opacity:1!important;pointer-events:auto!important;z-index:10!important;height:auto!important;min-height:20px!important;padding:8px 12px!important;display:flex!important;position:relative!important}.rusty-credit-link{color:#6b7280;visibility:visible!important;opacity:1!important;pointer-events:auto!important;align-items:center!important;gap:4px!important;width:auto!important;height:auto!important;font-size:12px!important;text-decoration:none!important;display:inline-flex!important}.dark .rusty-credit-link{color:#94a3b8}.rusty-credit-link:hover{color:var(--rusty-primary)}.rusty-credit-link svg{visibility:visible!important;opacity:1!important;fill:currentColor!important;width:14px!important;height:14px!important;display:block!important}.rusty-color-grid{grid-template-columns:repeat(5,1fr);gap:12px;padding:8px 0;display:grid}.rusty-color-btn{aspect-ratio:1;border:1px solid var(--rusty-border);cursor:pointer;border-radius:8px;width:100%;padding:0;transition:all .2s}.rusty-color-btn:hover{border-color:var(--rusty-primary);z-index:10;transform:scale(1.15);box-shadow:0 4px 6px -1px #0000001a}.rusty-color-btn.active{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--rusty-primary)}
