*{box-sizing:border-box}:root{--primary-color:#6366f1;--bg-color:#f8fafc;--card-bg:#fff;--border-color:#e2e8f0;--text-color:#1e293b;--text-muted:#64748b;--error-color:#ef4444;--success-color:#22c55e;--editor-bg:#fff;--input-bg:#fff;--dropdown-bg:#fff;--hover-bg:#f1f5f9;--btn-outline-bg:#fff;--btn-danger-hover:#fef2f2}.dark-theme{--bg-color:#0b0f19;--card-bg:#131c2e;--border-color:#222f47;--text-color:#f3f4f6;--text-muted:#94a3b8;--editor-bg:#0d1527;--input-bg:#0d1527;--dropdown-bg:#131c2e;--hover-bg:#1e293b;--btn-outline-bg:#131c2e;--btn-danger-hover:#3b1818}body{background-color:var(--bg-color);color:var(--text-color);-webkit-font-smoothing:antialiased;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.container{overflow-anchor:none;max-width:1000px;margin:0 auto;padding:2rem}h1{color:var(--text-color);margin-bottom:1.5rem;font-size:1.875rem}.tabs{border-bottom:1px solid var(--border-color);gap:1rem;margin-bottom:2rem;display:flex}.tab{cursor:pointer;color:var(--text-muted);border-bottom:2px solid #0000;padding:.75rem 1.5rem;font-weight:600;transition:all .2s}.tab:hover{color:var(--primary-color)}.tab.active{color:var(--primary-color);border-bottom-color:var(--primary-color)}.card{background:var(--card-bg);border:1px solid var(--border-color);border-radius:.75rem;margin-bottom:1.5rem;padding:1.5rem;box-shadow:0 1px 3px #0000001a}.section-title{justify-content:space-between;align-items:center;margin-bottom:1rem;font-size:1.125rem;font-weight:600;display:flex}textarea{border:1px solid var(--border-color);resize:vertical;background-color:var(--input-bg);width:100%;min-height:100px;color:var(--text-color);border-radius:.5rem;padding:.75rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.875rem}textarea:focus{outline:2px solid var(--primary-color);outline-offset:-1px}.editor-container{border:1px solid var(--border-color);background-color:var(--editor-bg);border-radius:.5rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace}.editor-container:focus-within{outline:2px solid var(--primary-color);outline-offset:-1px}.grok-editor{min-height:100px}.token.grok-rule-name{color:#6366f1;font-weight:700}.token.grok-braces,.token.grok-pattern{color:#fb923c}.token.grok-capture{color:#22c55e}.token.grok-type{color:#818cf8;font-style:italic}.token.comment{color:#94a3b8}.token.dd-builtin{color:#5a40ad;font-weight:600}input[type=text]{border:1px solid var(--border-color);background-color:var(--input-bg);width:100%;color:var(--text-color);border-radius:.5rem;padding:.75rem;font-size:.875rem}input:focus{outline:2px solid var(--primary-color);outline-offset:-1px}.sample-row{border-bottom:1px solid var(--border-color);margin-bottom:1.5rem;padding-bottom:1.5rem}.sample-row:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}.sample-header{align-items:center;gap:.5rem;margin-bottom:.5rem;display:flex}.btn{cursor:pointer;border:1px solid #0000;border-radius:.5rem;align-items:center;gap:.5rem;padding:.5rem 1rem;font-size:.875rem;font-weight:500;transition:all .2s;display:inline-flex}.btn-primary{background-color:var(--primary-color);color:#fff}.btn-primary:hover{opacity:.9}.btn-outline{background-color:var(--btn-outline-bg);border-color:var(--border-color);color:var(--text-color)}.btn-outline:hover{background-color:var(--hover-bg)}.btn-danger{color:var(--error-color)}.btn-danger:hover{background-color:var(--btn-danger-hover)}.result-container{background-color:var(--editor-bg);border:1px solid var(--border-color);color:var(--text-color);white-space:pre-wrap;border-radius:.5rem;min-height:42px;margin-top:1rem;padding:1rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.8125rem;position:relative;overflow-x:auto}.timestamp-val{cursor:help;-webkit-text-decoration:underline dotted #64748b;text-decoration:underline dotted #64748b;position:relative}.timestamp-val:hover:after{content:attr(data-iso);color:#fff;white-space:nowrap;z-index:10;background-color:#0f172a;border-radius:4px;margin-bottom:4px;padding:.25rem .5rem;font-size:10px;position:absolute;bottom:100%;left:50%;transform:translate(-50%);box-shadow:0 4px 6px -1px #0000001a}.result-error{color:#fca5a5}.label-text{color:var(--text-muted);margin-bottom:.5rem;font-size:.875rem;font-weight:500;display:block}.history-item{border-bottom:1px solid var(--border-color);justify-content:space-between;align-items:center;padding:1rem;display:flex}.history-item:last-child{border-bottom:none}.history-info{flex:1}.history-date{color:var(--text-muted);margin-bottom:.25rem;font-size:.75rem}.history-summary{white-space:nowrap;text-overflow:ellipsis;max-width:500px;font-size:.875rem;font-weight:500;overflow:hidden}.loading-indicator{color:#64748b;text-transform:uppercase;letter-spacing:.05em;font-size:10px;font-weight:700;position:absolute;top:8px;right:12px}.toast{color:#fff;z-index:50;background-color:#1e293b;border-radius:9999px;align-items:center;gap:.5rem;padding:.75rem 1.5rem;font-size:.875rem;font-weight:500;animation:.3s ease-out toast-in;display:flex;position:fixed;bottom:2rem;left:50%;transform:translate(-50%);box-shadow:0 10px 15px -3px #0000001a}.dialog-backdrop{z-index:100;background-color:#0006;justify-content:center;align-items:center;padding:1rem;animation:.15s ease-out backdrop-in;display:flex;position:fixed;inset:0}@keyframes backdrop-in{0%{opacity:0}to{opacity:1}}.dialog{background:var(--card-bg);border:1px solid var(--border-color);border-radius:.75rem;flex-direction:column;width:100%;max-width:560px;max-height:80vh;animation:.15s ease-out dialog-in;display:flex;box-shadow:0 20px 40px -8px #00000040}@keyframes dialog-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.dialog-header{flex-shrink:0;align-items:baseline;gap:.75rem;padding:1.25rem 1.5rem 0;display:flex}.dialog-title{color:var(--text-color);font-size:1rem;font-weight:600}.dialog-subtitle{color:var(--text-muted);font-size:.8125rem}.dialog-search{flex-shrink:0;padding:1rem 1.5rem 0}.dialog-search input{border:1px solid var(--border-color);background:var(--bg-color);width:100%;color:var(--text-color);border-radius:.5rem;padding:.5rem .75rem;font-size:.875rem}.dialog-search input:focus{outline:2px solid var(--primary-color);outline-offset:-1px}.dialog-list-header{flex-shrink:0;padding:.75rem 1.5rem 0}.dialog-list{flex:1;min-height:0;margin-top:.25rem;padding:.25rem 1.5rem;overflow-y:auto}.dialog-empty{text-align:center;color:var(--text-muted);padding:2rem 0;font-size:.875rem}.dialog-check-row{border-bottom:1px solid var(--border-color);cursor:pointer;align-items:center;gap:.625rem;padding:.5rem 0;font-size:.875rem;display:flex}.dialog-check-row:last-child{border-bottom:none}.dialog-check-row:hover{color:var(--text-color)}.dialog-check-row input[type=checkbox]{width:15px;height:15px;accent-color:var(--primary-color);cursor:pointer;flex-shrink:0}.dialog-check-all{color:var(--text-muted);font-weight:500}.dialog-count{color:var(--text-muted);margin-left:auto;font-size:.75rem}.dialog-item-name{white-space:nowrap;text-overflow:ellipsis;color:var(--text-color);flex:1;overflow:hidden}.dialog-item-name em{color:var(--text-muted);font-style:italic}.dialog-item-meta{color:var(--text-muted);flex-shrink:0;font-size:.75rem}.dialog-footer{border-top:1px solid var(--border-color);flex-shrink:0;justify-content:flex-end;gap:.5rem;padding:1rem 1.5rem;display:flex}.ac-dropdown{z-index:200;background-color:var(--dropdown-bg);border:1px solid var(--border-color);border-radius:.5rem;min-width:260px;max-width:380px;max-height:260px;margin:0;padding:4px 0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.8125rem;list-style:none;position:absolute;overflow-y:auto;box-shadow:0 8px 24px -4px #00000024,0 2px 6px -1px #00000014}.ac-item{cursor:pointer;white-space:nowrap;color:var(--text-color);align-items:center;gap:.5rem;padding:5px 10px;display:flex;overflow:hidden}.ac-item-active,.ac-item:hover{background-color:var(--hover-bg)}.header-row{justify-content:space-between;align-items:center;margin-bottom:1.5rem;display:flex}.header-row h1{margin-bottom:0}.theme-switch-widget{cursor:pointer;-webkit-user-select:none;user-select:none;background-color:#cbd5e1;border-radius:999px;align-items:center;width:72px;height:24px;padding:2px;transition:background-color .2s;display:inline-flex;position:relative}.theme-switch-widget:focus-visible{outline:2px solid var(--primary-color);outline-offset:2px}.theme-switch-widget.light-active{background-color:#e2e8f0}.theme-switch-widget.system-active{background-color:#94a3b8}.theme-switch-widget.dark-active{background-color:var(--primary-color)}.theme-switch-knob{color:#64748b;background-color:#fff;border-radius:50%;justify-content:center;align-items:center;width:20px;height:20px;transition:transform .2s cubic-bezier(.4,0,.2,1);display:flex;transform:translate(0);box-shadow:0 1px 3px #0003}.theme-switch-widget.light-active .theme-switch-knob{color:#ea580c;background-color:#fff7ed;transform:translate(0)}.theme-switch-widget.system-active .theme-switch-knob{color:#0284c7;background-color:#f0f9ff;transform:translate(24px)}.theme-switch-widget.dark-active .theme-switch-knob{color:#6366f1;background-color:#1e293b;transform:translate(48px)}.ac-kind{letter-spacing:0;border-radius:3px;flex-shrink:0;justify-content:center;align-items:center;width:18px;height:18px;font-size:10px;font-weight:700;display:inline-flex}.ac-kind-matcher{color:#5a40ad;background:#ede9fe}.ac-kind-filter{color:#0369a1;background:#e0f2fe}.ac-label{color:var(--text-color);flex-shrink:0;font-weight:600}.ac-desc{color:var(--text-muted);text-overflow:ellipsis;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:.75rem;overflow:hidden}code[class*=language-],pre[class*=language-]{color:#000;text-shadow:0 1px #fff;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;tab-size:4;-webkit-hyphens:none;hyphens:none;background:0 0;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;line-height:1.5}pre[class*=language-]::-moz-selection{text-shadow:none;background:#b3d4fc}pre[class*=language-] ::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-]::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-] ::-moz-selection{text-shadow:none;background:#b3d4fc}pre[class*=language-]::selection{text-shadow:none;background:#b3d4fc}pre[class*=language-] ::selection{text-shadow:none;background:#b3d4fc}code[class*=language-]::selection{text-shadow:none;background:#b3d4fc}code[class*=language-] ::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{margin:.5em 0;padding:1em;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{white-space:normal;border-radius:.3em;padding:.1em}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:#708090}.token.punctuation{color:#999}.token.namespace{opacity:.7}.token.property,.token.tag,.token.boolean,.token.number,.token.constant,.token.symbol,.token.deleted{color:#905}.token.selector,.token.attr-name,.token.string,.token.char,.token.builtin,.token.inserted{color:#690}.token.operator,.token.entity,.token.url,.language-css .token.string,.style .token.string{color:#9a6e3a;background:#ffffff80}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.function,.token.class-name{color:#dd4a68}.token.regex,.token.important,.token.variable{color:#e90}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}
