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