html,body{margin:0;padding:0}.toast{position:fixed;top:20px;right:20px;background:#fff;border-radius:8px;box-shadow:0 4px 12px #00000026;border-left:4px solid;z-index:1000;transform:translate(100%);transition:transform .3s ease-in-out;max-width:400px;min-width:300px}.toast-visible{transform:translate(0)}.toast-content{display:flex;align-items:center;padding:12px 16px;gap:10px}.toast-icon{font-size:18px;flex-shrink:0}.toast-message{flex:1;font-size:14px;font-weight:500;color:#374151;line-height:1.4}.toast-close{background:none;border:none;font-size:18px;color:#6b7280;cursor:pointer;padding:0;width:20px;height:20px;display:flex;align-items:center;justify-content:center;border-radius:2px;transition:background-color .2s}.toast-close:hover{background-color:#f3f4f6}.toast-success{border-left-color:#10b981;background-color:#f0fdf4}.toast-error{border-left-color:#ef4444;background-color:#fef2f2}.toast-warning{border-left-color:#f59e0b;background-color:#fffbeb}.toast-info{border-left-color:#3b82f6;background-color:#eff6ff}.toast-success .toast-message,.toast-success .toast-close{color:#065f46}.toast-error .toast-message,.toast-error .toast-close{color:#991b1b}.toast-warning .toast-message,.toast-warning .toast-close{color:#92400e}.toast-info .toast-message,.toast-info .toast-close{color:#1e40af}@media(max-width:768px){.toast{top:10px;right:10px;left:10px;max-width:none;min-width:auto}}.toast:nth-child(2){top:80px}.toast:nth-child(3){top:140px}.toast:nth-child(4){top:200px}[data-theme=dark] .toast{background:#1e1e2e;box-shadow:0 4px 12px #0006}[data-theme=dark] .toast-message{color:#cdd6f4}[data-theme=dark] .toast-close{color:#a6adc8}[data-theme=dark] .toast-close:hover{background-color:#313244}[data-theme=dark] .toast-success{border-left-color:#a6e3a1;background-color:#a6e3a11a}[data-theme=dark] .toast-success .toast-message,[data-theme=dark] .toast-success .toast-close{color:#a6e3a1}[data-theme=dark] .toast-error{border-left-color:#f38ba8;background-color:#f38ba81a}[data-theme=dark] .toast-error .toast-message,[data-theme=dark] .toast-error .toast-close{color:#f38ba8}[data-theme=dark] .toast-warning{border-left-color:#f9e2af;background-color:#f9e2af1a}[data-theme=dark] .toast-warning .toast-message,[data-theme=dark] .toast-warning .toast-close{color:#f9e2af}[data-theme=dark] .toast-info{border-left-color:#89b4fa;background-color:#89b4fa1a}[data-theme=dark] .toast-info .toast-message,[data-theme=dark] .toast-info .toast-close{color:#89b4fa}.yaml-editor-wrapper{--editor-bg: #ffffff;--editor-border: #e1e5e9;--toolbar-bg: #f8f9fa;--toolbar-label: #495057;--toolbar-hint: #6c757d;--line-numbers-bg: #f8f9fa;--line-numbers-color: #6c757d;--line-numbers-border: #e1e5e9;--textarea-caret: #24292e;--textarea-placeholder: #6c757d;--textarea-selection: rgba(0, 123, 255, .3);--textarea-readonly-bg: #f8f9fa;--textarea-readonly-color: #24292e;--scrollbar-track: #f8f9fa;--scrollbar-thumb: #ced4da;--scrollbar-thumb-hover: #adb5bd;--search-input-border: #ced4da;--search-input-focus: #007bff;--search-btn-bg: white;--search-btn-color: #495057;--search-btn-border: #ced4da;--search-btn-hover-bg: #e9ecef;--match-count-color: #6c757d;--search-highlight: #ffeb3b;--current-match-bg: #ff9800;--syn-key: #d73a49;--syn-colon: #24292e;--syn-value: #032f62;--syn-string: #22863a;--syn-number: #005cc5;--syn-boolean: #e36209;--syn-array: #6f42c1;--syn-comment: #6a737d;--syn-list-dash: #d73a49}[data-theme=dark] .yaml-editor-wrapper{--editor-bg: #1e1e2e;--editor-border: #313244;--toolbar-bg: #181825;--toolbar-label: #cdd6f4;--toolbar-hint: #a6adc8;--line-numbers-bg: #181825;--line-numbers-color: #6c7086;--line-numbers-border: #313244;--textarea-caret: #cdd6f4;--textarea-placeholder: #6c7086;--textarea-selection: rgba(137, 180, 250, .3);--textarea-readonly-bg: #181825;--textarea-readonly-color: #cdd6f4;--scrollbar-track: #181825;--scrollbar-thumb: #45475a;--scrollbar-thumb-hover: #585b70;--search-input-border: #45475a;--search-input-focus: #89b4fa;--search-btn-bg: #313244;--search-btn-color: #cdd6f4;--search-btn-border: #45475a;--search-btn-hover-bg: #45475a;--match-count-color: #a6adc8;--search-highlight: #f9e2af;--current-match-bg: #fab387;--syn-key: #f38ba8;--syn-colon: #cdd6f4;--syn-value: #89b4fa;--syn-string: #a6e3a1;--syn-number: #89b4fa;--syn-boolean: #fab387;--syn-array: #cba6f7;--syn-comment: #6c7086;--syn-list-dash: #f38ba8}.yaml-editor-wrapper{flex:1;display:flex;flex-direction:column;margin:20px;border-radius:12px;overflow:hidden;box-shadow:0 10px 40px #0000001a;background:var(--editor-bg);border:1px solid var(--editor-border);min-height:400px;height:100%}.editor-toolbar{padding:12px 20px;background:var(--toolbar-bg);border-bottom:1px solid var(--editor-border);display:flex;justify-content:space-between;align-items:center}.toolbar-left{display:flex;align-items:center;gap:15px}.toolbar-right{display:flex;align-items:center;gap:10px}.search-toggle-btn{padding:6px 12px;background:#007bff;border:none;border-radius:6px;color:#fff;font-size:.9em;font-weight:500;cursor:pointer;transition:all .2s ease}.search-toggle-btn:hover{background:#0056b3;transform:translateY(-1px);box-shadow:0 2px 8px #007bff4d}.toolbar-label{font-weight:600;font-size:1.1em;color:var(--toolbar-label)}.toolbar-hint{font-size:.85em;color:var(--toolbar-hint);font-style:italic}.search-replace-panel{background:var(--toolbar-bg);border-bottom:1px solid var(--editor-border);padding:12px 20px;display:flex;flex-direction:column;gap:8px}.search-row,.replace-row{display:flex;align-items:center;gap:8px}.search-input,.replace-input{flex:1;padding:6px 10px;border:1px solid var(--search-input-border);border-radius:4px;font-size:.9em;outline:none;transition:border-color .2s ease;background:var(--editor-bg);color:var(--toolbar-label)}.search-input:focus,.replace-input:focus{border-color:var(--search-input-focus);box-shadow:0 0 0 2px #007bff1a}.search-replace-panel button{padding:6px 12px;border:1px solid var(--search-btn-border);border-radius:4px;background:var(--search-btn-bg);color:var(--search-btn-color);font-size:.85em;cursor:pointer;transition:all .2s ease}.search-replace-panel button:hover:not(:disabled){background:var(--search-btn-hover-bg);border-color:var(--search-btn-border)}.search-replace-panel button:disabled{opacity:.5;cursor:not-allowed}.close-search{background:#dc3545!important;color:#fff!important;border-color:#dc3545!important}.close-search:hover:not(:disabled){background:#c82333!important}.match-count{font-size:.85em;color:var(--match-count-color);min-width:40px;text-align:center}.match-case-label{display:flex;align-items:center;gap:4px;font-size:.85em;color:var(--match-count-color);cursor:pointer}.editor-with-lines{flex:1;display:flex;background:var(--editor-bg);position:relative}.line-numbers{padding:20px 12px 20px 8px;text-align:right;font-family:Monaco,Menlo,Ubuntu Mono,Consolas,monospace;font-size:14px;line-height:1.5;color:var(--line-numbers-color);background:var(--line-numbers-bg);border-right:1px solid var(--line-numbers-border);-webkit-user-select:none;user-select:none;overflow:hidden;flex:0 0 auto;min-width:50px}.line-numbers::-webkit-scrollbar{width:0;display:none}.line-numbers div{line-height:1.5;padding:0 4px}.editor-text-container{flex:1;position:relative;background:var(--editor-bg);overflow:hidden}.indent-guides-svg{position:absolute;top:20px;left:20px;pointer-events:none;z-index:1;transform-origin:top left}.syntax-highlighter{position:absolute;inset:0;width:100%;height:100%;padding:20px;font-family:Monaco,Menlo,Ubuntu Mono,Consolas,monospace;font-size:14px;line-height:1.5;color:transparent;pointer-events:none;overflow:auto;overflow-y:auto;overflow-x:auto;white-space:pre;tab-size:2;overflow-wrap:normal;z-index:1;box-sizing:border-box;transform:translateZ(0);-webkit-font-smoothing:antialiased;text-rendering:optimizeSpeed;scrollbar-width:none;-ms-overflow-style:none}.syntax-highlighter::-webkit-scrollbar{display:none}.syntax-highlighter .yaml-key{color:var(--syn-key)!important;font-weight:600}.syntax-highlighter .yaml-colon{color:var(--syn-colon)!important}.syntax-highlighter .yaml-value{color:var(--syn-value)!important}.syntax-highlighter .yaml-string{color:var(--syn-string)!important}.syntax-highlighter .yaml-number{color:var(--syn-number)!important;font-weight:500}.syntax-highlighter .yaml-boolean{color:var(--syn-boolean)!important;font-weight:500}.syntax-highlighter .yaml-array{color:var(--syn-array)!important}.syntax-highlighter .yaml-comment{color:var(--syn-comment)!important;font-style:italic}.syntax-highlighter .yaml-list-dash{color:var(--syn-list-dash)!important;font-weight:700}.syntax-highlighter .search-highlight{background:var(--search-highlight)!important;color:#333!important;border-radius:2px;padding:1px 2px}.syntax-highlighter .current-match{background:var(--current-match-bg)!important;color:#fff!important;box-shadow:0 0 0 1px #f57c00}.yaml-textarea{width:100%;height:100%;padding:20px;font-family:Monaco,Menlo,Ubuntu Mono,Consolas,monospace;font-size:14px;line-height:1.5;background:transparent;color:transparent;caret-color:var(--textarea-caret);border:none;outline:none;resize:none;tab-size:2;white-space:pre;overflow-wrap:normal;overflow-y:auto;overflow-x:auto;box-sizing:border-box;position:relative;z-index:2;transform:translateZ(0);-webkit-font-smoothing:antialiased;text-rendering:optimizeSpeed}.yaml-textarea::placeholder{color:var(--textarea-placeholder);opacity:1}.yaml-textarea::selection{background:var(--textarea-selection);color:transparent!important}.yaml-textarea[readonly]{background:var(--textarea-readonly-bg);cursor:default;opacity:.9;color:var(--textarea-readonly-color)!important}.yaml-textarea[readonly]::placeholder{color:var(--textarea-placeholder)}.yaml-textarea[readonly]:focus{outline:none;box-shadow:none}.yaml-textarea[readonly]+.syntax-highlighter{display:none}.yaml-textarea::-webkit-scrollbar{width:12px;height:12px}.yaml-textarea::-webkit-scrollbar-track{background:var(--scrollbar-track)}.yaml-textarea::-webkit-scrollbar-thumb{background:var(--scrollbar-thumb);border-radius:6px}.yaml-textarea::-webkit-scrollbar-thumb:hover{background:var(--scrollbar-thumb-hover)}@media(max-width:768px){.search-replace-panel{padding:8px 12px}.search-row,.replace-row{flex-direction:column;align-items:stretch;gap:6px}.search-input,.replace-input{margin-bottom:4px}.toolbar-hint{display:none}}.yaml-textarea:focus+.syntax-highlighter{outline:2px solid rgba(0,123,255,.3);outline-offset:-2px}.search-replace-panel{animation:slideDown .2s ease-out}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@media(max-width:768px){.yaml-textarea{-webkit-overflow-scrolling:touch;will-change:scroll-position}.syntax-highlighter{will-change:transform;-webkit-font-smoothing:antialiased;transform:translateZ(0)}.line-numbers{will-change:scroll-position}.indent-guides-svg{will-change:transform}.editor-with-lines{overscroll-behavior:contain}}.ai-assistant-overlay{position:fixed;inset:0;background:#00000080;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:1000;display:flex;align-items:center;justify-content:center;padding:1vh 1vw}.ai-assistant-container{background:#fff;border-radius:16px;box-shadow:0 20px 40px #00000026;width:98vw;max-width:none;height:98vh;max-height:none;display:flex;flex-direction:column;overflow:hidden}.ai-assistant-header{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:20px;display:flex;justify-content:space-between;align-items:center}.header-content{flex:1;min-width:0}.header-content h3{margin:0;font-size:1.5em;font-weight:600}.header-content p{margin:5px 0 0;opacity:.9;font-size:.9em}.api-status{margin-top:8px}.api-connected{background:#10b98133;color:#10b981;padding:4px 8px;border-radius:12px;font-size:.8em;font-weight:600}.api-disconnected{background:#f59e0b33;color:#f59e0b;padding:4px 8px;border-radius:12px;font-size:.8em;font-weight:600}.clear-or-exit{display:flex;gap:12px;align-items:center;margin-left:auto;justify-content:flex-end;flex-shrink:0}.api-key-btn{background:#fff3;border:1px solid rgba(255,255,255,.3);color:#fff;padding:8px 12px;border-radius:8px;font-size:.85em;cursor:pointer;transition:all .2s ease}.api-key-btn:hover{background:#ffffff4d}.close-btn{background:#fff3;border:none;color:#fff;width:32px;height:32px;border-radius:50%;font-size:1.2em;cursor:pointer;transition:background .2s ease}.close-btn:hover{background:#ffffff4d}.clear-chat-btn{background:#ef444433;border:1px solid rgba(239,68,68,.3);color:#fff;padding:6px 12px;border-radius:6px;font-size:.85em;font-weight:500;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:4px}.clear-chat-btn:hover{background:#ef44444d;border-color:#ef444480;transform:translateY(-1px)}.api-key-config{background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:16px 20px}.api-key-form{display:flex;flex-direction:column;gap:12px}.api-key-input{width:100%;padding:10px 12px;border:2px solid #e2e8f0;border-radius:8px;font-size:.9em;font-family:Monaco,Menlo,monospace}.api-key-input:focus{outline:none;border-color:#667eea}.api-key-actions{display:flex;gap:8px;justify-content:flex-end}.save-key-btn,.clear-key-btn,.cancel-key-btn{padding:6px 12px;border-radius:6px;font-size:.85em;cursor:pointer;transition:all .2s ease}.save-key-btn{background:#10b981;color:#fff;border:none}.save-key-btn:hover:not(:disabled){background:#059669}.save-key-btn:disabled{opacity:.6;cursor:not-allowed}.clear-key-btn{background:#ef4444;color:#fff;border:none}.clear-key-btn:hover{background:#dc2626}.cancel-key-btn{background:#6b7280;color:#fff;border:none}.cancel-key-btn:hover{background:#4b5563}.api-key-help{margin-top:12px;font-size:.8em;color:#64748b}.api-key-help p{margin:4px 0}.api-key-help a{color:#667eea;text-decoration:none}.api-key-help a:hover{text-decoration:underline}.api-key-help code{background:#0f172a1a;padding:2px 6px;border-radius:4px;font-family:Monaco,Menlo,monospace;font-size:.8em}.api-key-env-notice{background:linear-gradient(135deg,#e0f2fe,#b3e5fc);border:1px solid #0288d1;border-radius:8px;padding:16px;display:flex;flex-direction:column;gap:12px}.env-notice-content h4{margin:0;color:#01579b;font-size:1em}.env-notice-content p{margin:8px 0 0;color:#0277bd;font-size:.9em;line-height:1.4}.env-notice-content code{background:#01579b1a;padding:2px 6px;border-radius:4px;font-family:Monaco,Menlo,monospace;font-size:.85em;color:#01579b}.messages-container{flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:16px}.message{display:flex;flex-direction:column;gap:8px}.message.user{align-items:flex-end}.message.assistant{align-items:flex}.message-content{max-width:100%;border-radius:16px;padding:12px 16px;word-wrap:break-word}.message.user .message-content{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.message.assistant .message-content{background:#f8fafc;border:1px solid #e2e8f0;color:#1e293b}.message-text{line-height:1.5;white-space:pre-wrap}.message-time{font-size:.75em;color:#64748b;padding:0 8px}.suggestions-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px;margin-top:12px}.suggestion-pill{background:#fff;border:2px solid #e2e8f0;border-radius:20px;padding:8px 12px;font-size:.85em;cursor:pointer;transition:all .2s ease;text-align:left}.suggestion-pill:hover{border-color:#667eea;background:#f0f4ff;transform:translateY(-1px)}.yaml-output{margin-top:12px;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden}.yaml-header{background:#f8fafc;padding:10px 12px;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;align-items:center;font-size:.85em;font-weight:600}.use-yaml-btn{background:linear-gradient(135deg,#10b981,#059669);color:#fff;border:none;border-radius:16px;padding:6px 12px;font-size:.8em;font-weight:600;cursor:pointer;transition:all .2s ease}.use-yaml-btn:hover{transform:translateY(-1px);box-shadow:0 4px 12px #10b9814d}.yaml-code{background:#1a1a1a;color:#e2e8f0;padding:16px;border-radius:8px;font-family:Courier New,monospace;font-size:.9rem;line-height:1.4;overflow-x:auto;margin:0;border:1px solid #334155}.analysis-summary{background:linear-gradient(135deg,#f0f9ff,#e0f2fe);border:1px solid #0ea5e9;border-radius:10px;padding:16px;margin-top:12px}.analysis-header{font-weight:600;color:#0c4a6e;margin-bottom:12px;font-size:.95rem}.analysis-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin-bottom:12px}.metric{display:flex;justify-content:space-between;align-items:center;padding:8px;background:#fff;border-radius:6px;border:1px solid #e2e8f0}.metric-label{font-size:.85rem;color:#64748b;font-weight:500}.metric-value{font-size:.85rem;font-weight:600;padding:2px 6px;border-radius:4px}.metric-value.good{background:#dcfce7;color:#166534}.metric-value.warning{background:#fef3c7;color:#92400e}.metric-value.critical{background:#fecaca;color:#991b1b}.analysis-issues{display:flex;gap:8px;margin-bottom:8px;flex-wrap:wrap}.issue-count{font-size:.8rem;font-weight:600;padding:4px 8px;border-radius:12px;color:#fff}.issue-count.critical{background:#ef4444}.issue-count.warning{background:#f59e0b}.analysis-note{font-size:.8rem;color:#475569;font-style:italic;text-align:center;padding:8px;background:#ffffff80;border-radius:6px}.typing-indicator{display:flex;gap:4px;align-items:center;padding:8px 0}.typing-indicator span{width:8px;height:8px;border-radius:50%;background:#64748b;animation:typing 1.4s infinite ease-in-out}.typing-indicator span:nth-child(2){animation-delay:.2s}.typing-indicator span:nth-child(3){animation-delay:.4s}@keyframes typing{0%,80%,to{transform:scale(.8);opacity:.5}40%{transform:scale(1);opacity:1}}.input-container{border-top:1px solid #e2e8f0;padding:16px 20px;background:#f8fafc}.input-wrapper{display:flex;gap:12px;align-items:flex-end}.input-wrapper textarea{flex:1;border:2px solid #e2e8f0;border-radius:12px;padding:12px 16px;font-family:inherit;font-size:.9em;line-height:1.4;resize:none;outline:none;transition:border-color .2s ease}.input-wrapper textarea:focus{border-color:#667eea}.input-wrapper textarea:disabled{opacity:.6;cursor:not-allowed}.send-btn{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:12px;width:44px;height:44px;font-size:1.2em;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center}.send-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 6px 16px #667eea4d}.send-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.message.assistant .message-content.success{background:linear-gradient(135deg,#d1fae5,#a7f3d0);border-color:#10b981;color:#065f46}.message.assistant .message-content.error{background:linear-gradient(135deg,#fee2e2,#fecaca);border-color:#ef4444;color:#991b1b}.messages-container::-webkit-scrollbar,.yaml-code::-webkit-scrollbar{width:6px}.messages-container::-webkit-scrollbar-track,.yaml-code::-webkit-scrollbar-track{background:#f1f5f9}.messages-container::-webkit-scrollbar-thumb,.yaml-code::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}.messages-container::-webkit-scrollbar-thumb:hover,.yaml-code::-webkit-scrollbar-thumb:hover{background:#94a3b8}@media(max-width:768px){.ai-assistant-overlay{padding:3vh 3vw}.ai-assistant-container{width:94vw;height:90vh;border-radius:12px}.ai-assistant-header{flex-direction:column;align-items:stretch;padding:16px}.header-content{margin-bottom:16px}.header-content h3{font-size:1.2em}.header-content p{font-size:.8em;margin:2px 0 0}.api-status{margin-top:4px}.clear-or-exit{margin-left:0!important;justify-content:space-between!important;gap:0;width:100%;display:flex!important;flex-direction:row!important}.clear-chat-btn{order:1!important;flex:0 0 auto;min-width:120px;text-align:center;align-self:flex-start}.close-btn{order:2!important;flex:0 0 auto;min-width:80px;text-align:center;align-self:flex-end}.suggestions-grid{grid-template-columns:1fr}.message-content{max-width:95%}}[data-theme=dark] .ai-assistant-overlay{background:#000000b3}[data-theme=dark] .ai-assistant-container{background:#1e1e2e;box-shadow:0 20px 40px #0006}[data-theme=dark] .ai-assistant-header{background:linear-gradient(135deg,#45475a,#313244)}[data-theme=dark] .api-key-config{background:#181825;border-bottom-color:#313244}[data-theme=dark] .api-key-input{background:#1e1e2e;border-color:#45475a;color:#cdd6f4}[data-theme=dark] .api-key-input:focus{border-color:#89b4fa}[data-theme=dark] .api-key-help{color:#a6adc8}[data-theme=dark] .api-key-help a{color:#89b4fa}[data-theme=dark] .api-key-help code{background:#cdd6f41a;color:#cdd6f4}[data-theme=dark] .api-key-env-notice{background:linear-gradient(135deg,#1e2a3a,#1a2332);border-color:#89b4fa}[data-theme=dark] .env-notice-content h4{color:#89b4fa}[data-theme=dark] .env-notice-content p{color:#a6adc8}[data-theme=dark] .env-notice-content code{background:#89b4fa1a;color:#89b4fa}[data-theme=dark] .messages-container{background:#1e1e2e}[data-theme=dark] .message.assistant .message-content{background:#181825;border-color:#313244;color:#cdd6f4}[data-theme=dark] .message-time{color:#6c7086}[data-theme=dark] .suggestion-pill{background:#181825;border-color:#313244;color:#cdd6f4}[data-theme=dark] .suggestion-pill:hover{border-color:#89b4fa;background:#1e2a3a}[data-theme=dark] .yaml-output{border-color:#313244}[data-theme=dark] .yaml-header{background:#181825;border-bottom-color:#313244;color:#cdd6f4}[data-theme=dark] .yaml-code{background:#11111b;color:#cdd6f4;border-color:#313244}[data-theme=dark] .analysis-summary{background:linear-gradient(135deg,#1e2a3a,#1a2332);border-color:#89b4fa}[data-theme=dark] .ai-assistant-container .analysis-header{color:#89b4fa}[data-theme=dark] .metric{background:#1e1e2e;border-color:#313244}[data-theme=dark] .metric-label{color:#a6adc8}[data-theme=dark] .metric-value.good{background:#1e3a2a;color:#a6e3a1}[data-theme=dark] .metric-value.warning{background:#302c1e;color:#f9e2af}[data-theme=dark] .metric-value.critical{background:#302028;color:#f38ba8}[data-theme=dark] .analysis-note{color:#a6adc8;background:#1e1e2e80}[data-theme=dark] .typing-indicator span{background:#6c7086}[data-theme=dark] .input-container{border-top-color:#313244;background:#181825}[data-theme=dark] .input-wrapper textarea{background:#1e1e2e;border-color:#45475a;color:#cdd6f4}[data-theme=dark] .input-wrapper textarea:focus{border-color:#89b4fa}[data-theme=dark] .message.assistant .message-content.success{background:linear-gradient(135deg,#1e3a2a,#1a3325);border-color:#a6e3a1;color:#a6e3a1}[data-theme=dark] .message.assistant .message-content.error{background:linear-gradient(135deg,#302028,#2a1a22);border-color:#f38ba8;color:#f38ba8}[data-theme=dark] .messages-container::-webkit-scrollbar-track,[data-theme=dark] .yaml-code::-webkit-scrollbar-track{background:#181825}[data-theme=dark] .messages-container::-webkit-scrollbar-thumb,[data-theme=dark] .yaml-code::-webkit-scrollbar-thumb{background:#45475a}[data-theme=dark] .messages-container::-webkit-scrollbar-thumb:hover,[data-theme=dark] .yaml-code::-webkit-scrollbar-thumb:hover{background:#585b70}.analysis-panel{background:linear-gradient(135deg,#f8f9ff,#f0f4ff);border:1px solid #e1e8ff;border-radius:12px;padding:20px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color:#2d3748;box-shadow:0 4px 12px #4facfe1a;max-height:80vh;overflow-y:auto}.analysis-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:15px;border-bottom:2px solid #e1e8ff}.analysis-header h3{margin:0;font-size:1.4rem;font-weight:600;color:#1a365d}.overall-status{font-size:1.5rem;padding:8px 12px;border-radius:8px;background:#fff;border:1px solid #e1e8ff}.overall-status.excellent{background:linear-gradient(135deg,#10b981,#059669);color:#fff}.overall-status.good{background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff}.overall-status.needs-improvement{background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff}.overall-status.needs-attention{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff}.overall-status.error{background:linear-gradient(135deg,#7c2d12,#991b1b);color:#fff}.analysis-section{margin-bottom:24px;background:#fff;border-radius:10px;padding:16px;border:1px solid #e2e8f0;box-shadow:0 2px 4px #0000000d}.analysis-section h4{margin:0 0 16px;font-size:1.1rem;font-weight:600;color:#2d3748;display:flex;align-items:center;gap:8px}.analysis-loading,.analysis-empty{text-align:center;padding:40px 20px;color:#64748b;font-style:italic;background:#fff;border-radius:10px;border:1px solid #e2e8f0}.loading-spinner{width:20px;height:20px;border:2px solid #e2e8f0;border-top:2px solid #3b82f6;border-radius:50%;animation:spin 1s linear infinite}.summary-section{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none}.summary-content{display:flex;justify-content:space-between;align-items:center;gap:20px}.summary-message{font-size:1.1rem;flex:1}.overall-score{font-weight:600;white-space:nowrap}.overall-score .excellent{color:#10b981}.overall-score .good{color:#3b82f6}.overall-score .warning{color:#f59e0b}.overall-score .critical{color:#ef4444}.recommendations-list{display:flex;flex-direction:column;gap:12px}.recommendation{display:flex;gap:12px;padding:12px;border-radius:8px;border-left:4px solid}.recommendation.high{background:#fef2f2;border-color:#ef4444}.recommendation.medium{background:#fffbeb;border-color:#f59e0b}.recommendation.low{background:#f0f9ff;border-color:#3b82f6}.rec-priority{font-size:.75rem;font-weight:600;text-transform:uppercase;padding:2px 6px;border-radius:4px;color:#fff;min-width:60px;text-align:center}.recommendation.high .rec-priority{background:#ef4444}.recommendation.medium .rec-priority{background:#f59e0b}.recommendation.low .rec-priority{background:#3b82f6}.rec-content{flex:1}.rec-message{font-weight:600;margin-bottom:4px}.rec-action{font-size:.9rem;color:#64748b}.score-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px}.score-card{background:linear-gradient(135deg,#f8fafc,#f1f5f9);border:1px solid #e2e8f0;border-radius:10px;padding:16px;text-align:center;transition:transform .2s ease}.score-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000001a}.score-header{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:12px}.score-icon{font-size:1.2rem}.score-title{font-size:.9rem;font-weight:600;color:#475569}.score-value{font-size:1.8rem;font-weight:700;margin-bottom:8px}.score-value.excellent{color:#10b981}.score-value.good{color:#3b82f6}.score-value.warning{color:#f59e0b}.score-value.critical{color:#ef4444}.score-level{font-size:.85rem;color:#64748b}.complexity-details{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:8px}.complexity-item{background:#f8fafc;padding:8px 12px;border-radius:6px;font-size:.9rem;border-left:3px solid #3b82f6}.issue{margin-bottom:16px;border-radius:8px;padding:12px;border-left:4px solid}.issue.critical{background:#fef2f2;border-color:#ef4444}.issue.warning{background:#fffbeb;border-color:#f59e0b}.issue.info{background:#f0f9ff;border-color:#3b82f6}.issue-header{display:flex;align-items:center;gap:8px;margin-bottom:8px}.issue-icon{font-size:1.1rem}.issue-type{font-weight:600;flex:1}.issue-severity{font-size:.75rem;font-weight:600;text-transform:uppercase;padding:2px 6px;border-radius:4px;color:#fff}.issue.critical .issue-severity{background:#ef4444}.issue.warning .issue-severity{background:#f59e0b}.issue.info .issue-severity{background:#3b82f6}.issue-message{font-size:.95rem;margin-bottom:8px;color:#374151}.issue-details{font-size:.85rem;color:#6b7280}.issue-detail{margin-bottom:4px;padding-left:12px;border-left:2px solid #e5e7eb}.issue-detail-more{font-style:italic;color:#9ca3af;padding-left:12px}.performance-recommendations{display:flex;flex-direction:column;gap:12px}.performance-rec{padding:12px;border-radius:8px;border:1px solid #e5e7eb}.performance-rec.warning{background:#fffbeb;border-color:#f59e0b}.performance-rec.info{background:#f0f9ff;border-color:#3b82f6}.perf-rec-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.perf-rec-category{font-weight:600;font-size:.9rem}.perf-rec-impact{font-size:.75rem;font-weight:600;text-transform:uppercase;padding:2px 6px;border-radius:4px;color:#fff}.perf-rec-impact.high{background:#ef4444}.perf-rec-impact.medium{background:#f59e0b}.perf-rec-impact.low{background:#10b981}.perf-rec-message{font-size:.9rem;color:#374151}.best-practices-suggestions{display:flex;flex-direction:column;gap:12px}.bp-suggestion{padding:12px;border-radius:8px;background:#f8fafc;border:1px solid #e2e8f0}.bp-suggestion-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.bp-suggestion-category{font-weight:600;font-size:.9rem;color:#475569}.bp-suggestion-impact{font-size:.75rem;font-weight:600;text-transform:uppercase;padding:2px 6px;border-radius:4px;color:#fff}.bp-suggestion-impact.high{background:#ef4444}.bp-suggestion-impact.medium{background:#f59e0b}.bp-suggestion-impact.low{background:#10b981}.bp-suggestion-message{font-size:.9rem;color:#374151;margin-bottom:8px}.bp-suggestion-details{font-size:.85rem;color:#6b7280}.bp-suggestion-detail{margin-bottom:4px;padding-left:12px;border-left:2px solid #e5e7eb}.bp-suggestion-detail-more{font-style:italic;color:#9ca3af;padding-left:12px;margin-top:4px}.detail-header{font-weight:600;color:#374151;margin:8px 0 6px;font-size:.9rem}.typo-details{background:#f8fafc;border-radius:6px;padding:12px;margin-top:8px}.typo-item{background:#fff;border:1px solid #e5e7eb;border-radius:6px;padding:10px;margin-bottom:8px}.typo-item:last-child{margin-bottom:0}.typo-correction{display:flex;align-items:center;gap:8px;margin-bottom:6px;font-weight:600}.typo-wrong{background:#fecaca;color:#991b1b;padding:2px 6px;border-radius:4px;font-family:monospace}.typo-arrow{color:#6b7280;font-weight:700}.typo-right{background:#dcfce7;color:#166534;padding:2px 6px;border-radius:4px;font-family:monospace}.typo-location{font-size:.85rem;color:#6b7280;margin-bottom:4px}.typo-location code{background:#f3f4f6;padding:1px 4px;border-radius:3px;font-size:.8rem}.typo-context{font-size:.85rem;color:#6b7280}.typo-context em{background:#fffbeb;padding:1px 4px;border-radius:3px;font-style:normal}.typo-confidence{font-size:.75rem;font-weight:600;padding:2px 6px;border-radius:12px;margin-left:8px}.typo-confidence.high{background:#dcfce7;color:#166534}.typo-confidence.medium{background:#fef3c7;color:#92400e}.typo-source{font-size:.8rem;color:#6b7280;margin-top:4px;font-style:italic}.typo-item-simple{background:#fff;border:1px solid #e5e7eb;border-radius:6px;padding:8px 12px;margin-bottom:6px;font-size:.9rem}.typo-item-simple:last-child{margin-bottom:0}.typo-correction-line{display:flex;align-items:center;gap:8px;margin-bottom:4px}.typo-item-simple .typo-wrong{background:#fecaca;color:#991b1b;padding:2px 6px;border-radius:4px;font-family:monospace;font-weight:600}.typo-item-simple .typo-arrow{color:#6b7280;font-weight:700}.typo-item-simple .typo-right{background:#dcfce7;color:#166534;padding:2px 6px;border-radius:4px;font-family:monospace;font-weight:600}.typo-meta{font-size:.75rem;color:#6b7280;text-align:left}.confidence-high{color:#166534;font-weight:600}.confidence-medium{color:#92400e;font-weight:600}.formatting-details{background:#f0f9ff;border-radius:6px;padding:12px;margin-top:8px}.formatting-item{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #e0f2fe;border-radius:4px;padding:8px;margin-bottom:6px;font-size:.9rem}.formatting-item:last-child{margin-bottom:0}.formatting-icon{font-size:1.1rem;color:#0369a1;font-weight:700;min-width:20px;text-align:center}@media(max-width:768px){.analysis-panel{padding:16px}.summary-content{flex-direction:column;gap:12px;text-align:center}.score-cards,.complexity-details{grid-template-columns:1fr}.recommendation{flex-direction:column;gap:8px}.rec-priority{align-self:flex-start}}[data-theme=dark] .analysis-panel{background:linear-gradient(135deg,#1e1e2e,#181825);border-color:#313244;color:#cdd6f4;box-shadow:0 4px 12px #0000004d}[data-theme=dark] .analysis-header{border-bottom-color:#313244}[data-theme=dark] .analysis-header h3{color:#cdd6f4}[data-theme=dark] .overall-status{background:#313244;border-color:#45475a}[data-theme=dark] .analysis-section{background:#1e1e2e;border-color:#313244;box-shadow:0 2px 4px #0003}[data-theme=dark] .analysis-section h4{color:#cdd6f4}[data-theme=dark] .analysis-loading,[data-theme=dark] .analysis-empty{color:#a6adc8;background:#1e1e2e;border-color:#313244}[data-theme=dark] .loading-spinner{border-color:#45475a;border-top-color:#89b4fa}[data-theme=dark] .score-card{background:linear-gradient(135deg,#1e1e2e,#181825);border-color:#313244}[data-theme=dark] .score-card:hover{box-shadow:0 4px 12px #0000004d}[data-theme=dark] .score-title,[data-theme=dark] .score-level{color:#a6adc8}[data-theme=dark] .complexity-item{background:#181825;border-left-color:#89b4fa;color:#cdd6f4}[data-theme=dark] .issue.critical{background:#302028;border-color:#f38ba8}[data-theme=dark] .issue.warning{background:#302c1e;border-color:#f9e2af}[data-theme=dark] .issue.info{background:#1e2a3a;border-color:#89b4fa}[data-theme=dark] .issue-message{color:#cdd6f4}[data-theme=dark] .issue-details{color:#a6adc8}[data-theme=dark] .issue-detail{border-left-color:#45475a}[data-theme=dark] .issue-detail-more{color:#6c7086}[data-theme=dark] .recommendation.high{background:#302028;border-color:#f38ba8}[data-theme=dark] .recommendation.medium{background:#302c1e;border-color:#f9e2af}[data-theme=dark] .recommendation.low{background:#1e2a3a;border-color:#89b4fa}[data-theme=dark] .rec-content .rec-message{color:#cdd6f4}[data-theme=dark] .rec-action{color:#a6adc8}[data-theme=dark] .performance-rec{border-color:#313244}[data-theme=dark] .performance-rec.warning{background:#302c1e;border-color:#f9e2af}[data-theme=dark] .performance-rec.info{background:#1e2a3a;border-color:#89b4fa}[data-theme=dark] .perf-rec-message{color:#cdd6f4}[data-theme=dark] .bp-suggestion{background:#181825;border-color:#313244}[data-theme=dark] .bp-suggestion-category{color:#a6adc8}[data-theme=dark] .bp-suggestion-message{color:#cdd6f4}[data-theme=dark] .bp-suggestion-details{color:#a6adc8}[data-theme=dark] .bp-suggestion-detail{border-left-color:#45475a}[data-theme=dark] .bp-suggestion-detail-more{color:#6c7086}[data-theme=dark] .typo-details{background:#181825}[data-theme=dark] .typo-item,[data-theme=dark] .typo-item-simple{background:#1e1e2e;border-color:#313244}[data-theme=dark] .typo-wrong{background:#45283a;color:#f38ba8}[data-theme=dark] .typo-right{background:#1e3a2a;color:#a6e3a1}[data-theme=dark] .typo-location,[data-theme=dark] .typo-context,[data-theme=dark] .typo-source,[data-theme=dark] .typo-meta{color:#a6adc8}[data-theme=dark] .typo-location code{background:#313244}[data-theme=dark] .typo-context em{background:#302c1e}[data-theme=dark] .typo-confidence.high{background:#1e3a2a;color:#a6e3a1}[data-theme=dark] .typo-confidence.medium{background:#302c1e;color:#f9e2af}[data-theme=dark] .formatting-details{background:#181825}[data-theme=dark] .formatting-item{background:#1e1e2e;border-color:#313244;color:#cdd6f4}[data-theme=dark] .formatting-icon{color:#89b4fa}.presence-bar{display:flex;align-items:center;gap:16px;padding:6px 16px;background:#f0f4f8;border-bottom:1px solid #e1e5e9;font-size:.85em;min-height:36px;flex-wrap:wrap}.presence-status{display:flex;align-items:center;gap:6px}.presence-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.presence-dot.connected{background:#22c55e;box-shadow:0 0 6px #22c55e80;animation:pulse-green 2s infinite}.presence-dot.disconnected{background:#ef4444}@keyframes pulse-green{0%,to{box-shadow:0 0 4px #22c55e66}50%{box-shadow:0 0 10px #22c55eb3}}.presence-label{color:#6c757d;font-weight:500}.presence-users{display:flex;align-items:center;gap:4px}.presence-avatar-wrapper{position:relative}.presence-avatar-wrapper+.presence-avatar-wrapper{margin-left:-8px}.presence-avatar-wrapper+.presence-overflow{margin-left:-8px}.presence-avatar{width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:.75em;font-weight:700;cursor:pointer;border:2px solid white;box-shadow:0 1px 3px #00000026;transition:transform .15s ease;-webkit-user-select:none;user-select:none}.presence-avatar:hover{transform:scale(1.15);z-index:2}.presence-overflow{background:#6c757d;font-size:.65em;cursor:default}.presence-popover{position:absolute;top:calc(100% + 8px);left:0;background:#1e1e2e;border:1px solid #333;border-radius:10px;width:200px;box-shadow:0 8px 24px #00000059;z-index:100;overflow:hidden;animation:popover-in .15s ease}@keyframes popover-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.popover-header{display:flex;align-items:center;gap:10px;padding:12px;border-bottom:2px solid}.popover-avatar{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:14px;flex-shrink:0}.popover-name{font-weight:600;font-size:13px;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.popover-details{padding:8px 12px}.popover-row{display:flex;align-items:center;justify-content:space-between;padding:4px 0}.popover-label{font-size:11px;color:#888;text-transform:uppercase;letter-spacing:.5px}.popover-badge{font-size:11px;padding:2px 8px;border-radius:10px;font-weight:600}.badge-edit{background:#1b3a1b;color:#4ade80}.badge-view{background:#1b2a3a;color:#60a5fa}.popover-status{display:flex;align-items:center;gap:5px;font-size:11px;color:#ccc}.status-dot{width:6px;height:6px;border-radius:50%}.status-dot.online{background:#22c55e;box-shadow:0 0 4px #22c55e80}.presence-users .presence-avatar-wrapper+.presence-avatar-wrapper .presence-avatar{margin-left:0}.presence-count{color:#6c757d;margin-left:6px;white-space:nowrap}.presence-typing{display:flex;align-items:center;gap:6px;color:#6c757d;margin-left:auto}.typing-indicator{display:flex;gap:3px;align-items:center}.typing-dot{width:5px;height:5px;border-radius:50%;background:#6c757d;animation:typing-bounce 1.4s infinite ease-in-out both}.typing-dot:nth-child(1){animation-delay:-.32s}.typing-dot:nth-child(2){animation-delay:-.16s}.typing-dot:nth-child(3){animation-delay:0s}@keyframes typing-bounce{0%,80%,to{transform:scale(0);opacity:.5}40%{transform:scale(1);opacity:1}}.presence-share-btn{margin-left:auto;padding:4px 14px;font-size:12px;font-weight:600;background:#1976d2;color:#fff;border:none;border-radius:5px;cursor:pointer;white-space:nowrap;transition:background .15s}.presence-share-btn:hover{background:#1565c0}.typing-label{font-size:.85em;font-style:italic}.remote-cursors-container{position:absolute;inset:0;pointer-events:none;z-index:5;overflow:hidden}.remote-cursor{position:absolute;width:2px;pointer-events:none;z-index:5;transition:top .1s ease,left .1s ease}.remote-cursor-line{width:2px;height:21px;animation:cursor-blink 1.2s infinite}@keyframes cursor-blink{0%,to{opacity:1}50%{opacity:.4}}.remote-cursor-label{position:absolute;top:-18px;left:0;font-size:10px;color:#fff;padding:1px 5px;border-radius:3px;white-space:nowrap;font-weight:600;letter-spacing:.02em;box-shadow:0 1px 3px #0003}.remote-selection{position:absolute;opacity:.2;pointer-events:none;z-index:4}[data-theme=dark] .presence-bar{background:#181825;border-bottom-color:#45475a}[data-theme=dark] .presence-label{color:#a6adc8}[data-theme=dark] .presence-avatar{border-color:#1e1e2e}[data-theme=dark] .presence-overflow{background:#585b70}[data-theme=dark] .presence-count,[data-theme=dark] .presence-typing{color:#a6adc8}[data-theme=dark] .typing-dot{background:#a6adc8}[data-theme=dark] .presence-share-btn{background:#89b4fa;color:#1e1e2e}[data-theme=dark] .presence-share-btn:hover{background:#a5c8ff}.shortcuts-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:10000;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.shortcuts-panel{background:#1e1e2e;border:1px solid #444;border-radius:12px;width:480px;max-width:90vw;max-height:80vh;overflow-y:auto;box-shadow:0 20px 60px #00000080;color:#e0e0e0}.shortcuts-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #333}.shortcuts-header h2{margin:0;font-size:18px;font-weight:600;color:#fff}.shortcuts-close{background:none;border:none;color:#999;font-size:18px;cursor:pointer;padding:4px 8px;border-radius:4px;transition:all .15s}.shortcuts-close:hover{color:#fff;background:#333}.shortcuts-body{padding:16px 20px}.shortcuts-section{margin-bottom:20px}.shortcuts-section:last-child{margin-bottom:0}.shortcuts-section h3{font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:1px;color:#888;margin:0 0 10px}.shortcuts-grid{display:flex;flex-direction:column;gap:6px}.shortcut-row{display:flex;align-items:center;justify-content:space-between;padding:6px 10px;border-radius:6px;transition:background .15s}.shortcut-row:hover{background:#2a2a3e}.shortcut-row kbd{background:#2d2d44;border:1px solid #444;border-radius:4px;padding:3px 8px;font-family:-apple-system,BlinkMacSystemFont,SF Mono,Fira Code,monospace;font-size:12px;color:#ccc;white-space:nowrap;min-width:120px}.shortcut-row span{font-size:13px;color:#bbb;text-align:right}.tree-info-panel{position:fixed;right:0;top:80px;bottom:20px;background:#fffffffa;border-left:3px solid #667eea;box-shadow:-4px 0 20px #0000001a;z-index:100;transition:all .3s ease;display:flex;flex-direction:column}.tree-info-panel.collapsed{width:40px;overflow:hidden}.tree-info-panel.expanded{width:320px}.panel-toggle{padding:12px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;cursor:pointer;font-size:.9em;font-weight:600;text-align:left;transition:all .2s ease;white-space:nowrap}.panel-toggle:hover{background:linear-gradient(135deg,#7b8ff5,#8b5cb8)}.tree-info-panel.collapsed .panel-toggle{writing-mode:vertical-rl;text-orientation:mixed;padding:20px 12px}.panel-content{flex:1;overflow-y:auto;padding:20px}.info-section{margin-bottom:25px;padding-bottom:20px;border-bottom:1px solid #e0e0e0}.info-section:last-child{border-bottom:none}.info-section h3{color:#2c3e50;font-size:1.1em;margin-bottom:12px;display:flex;align-items:center;gap:8px}.info-item{display:flex;justify-content:space-between;align-items:center;padding:8px 0;font-size:.95em}.info-item .label{color:#7f8c8d;font-weight:500}.value-container{display:flex;align-items:center;gap:6px}.info-item .value{color:#2c3e50;font-weight:600}.copy-icon{background:transparent;border:none;cursor:pointer;font-size:.9em;padding:4px 6px;border-radius:4px;transition:all .2s ease;opacity:.6}.copy-icon:hover{opacity:1;background:#667eea1a;transform:scale(1.1)}.copy-icon:active{transform:scale(.95)}.level-info{margin-bottom:15px;padding:10px;background:#f8f9fa;border-radius:8px}.level-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.level-badge{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:4px 10px;border-radius:12px;font-size:.85em;font-weight:600}.node-count{color:#7f8c8d;font-size:.85em}.node-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.node-tag-container{display:inline-flex;align-items:center;gap:4px;background:#fff;padding:4px 8px;border-radius:12px;border:1px solid #d0d9ff;transition:all .2s ease}.node-tag-container:hover{border-color:#667eea;box-shadow:0 2px 4px #667eea1a}.node-tag{color:#667eea;font-size:.8em;font-family:Monaco,Menlo,monospace}.copy-icon-small{font-size:.75em;padding:2px 4px;opacity:.5}.node-tag-container:hover .copy-icon-small{opacity:.8}.copy-icon-small:hover{opacity:1!important}.tips-list{margin:0;padding-left:20px;color:#7f8c8d;font-size:.9em;line-height:1.8}.tips-list li{margin-bottom:6px}.panel-content::-webkit-scrollbar{width:8px}.panel-content::-webkit-scrollbar-track{background:#f1f1f1}.panel-content::-webkit-scrollbar-thumb{background:#667eea;border-radius:4px}.panel-content::-webkit-scrollbar-thumb:hover{background:#5568d3}[data-theme=dark] .tree-info-panel{background:#1e1e2efa;border-left-color:#cba6f7;box-shadow:-4px 0 20px #0006}[data-theme=dark] .panel-toggle{background:linear-gradient(135deg,#cba6f7,#89b4fa);color:#1e1e2e}[data-theme=dark] .panel-toggle:hover{background:linear-gradient(135deg,#d4b8fa,#a5c8ff)}[data-theme=dark] .panel-content{color:#cdd6f4}[data-theme=dark] .info-section{border-bottom-color:#45475a}[data-theme=dark] .info-section h3{color:#cdd6f4}[data-theme=dark] .info-item .label{color:#a6adc8}[data-theme=dark] .info-item .value{color:#cdd6f4}[data-theme=dark] .copy-icon:hover{background:#cba6f726}[data-theme=dark] .level-info{background:#181825}[data-theme=dark] .level-badge{background:linear-gradient(135deg,#cba6f7,#89b4fa);color:#1e1e2e}[data-theme=dark] .node-count{color:#a6adc8}[data-theme=dark] .node-tag-container{background:#313244;border-color:#585b70}[data-theme=dark] .node-tag-container:hover{border-color:#cba6f7;box-shadow:0 2px 4px #cba6f726}[data-theme=dark] .node-tag{color:#cba6f7}[data-theme=dark] .tips-list{color:#a6adc8}[data-theme=dark] .panel-content::-webkit-scrollbar-track{background:#181825}[data-theme=dark] .panel-content::-webkit-scrollbar-thumb{background:#cba6f7}[data-theme=dark] .panel-content::-webkit-scrollbar-thumb:hover{background:#d4b8fa}.search-panel{position:fixed;top:80px;left:20px;background:#fffffffa;border-radius:12px;box-shadow:0 4px 20px #00000026;transition:all .3s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.search-panel.collapsed{width:auto}.search-panel.expanded{width:320px}.search-toggle{padding:12px 20px;background:linear-gradient(135deg,#2563eb,#1e40af);color:#fff;border:none;border-radius:12px;cursor:pointer;font-size:.95em;font-weight:600;transition:all .2s ease;width:100%;display:flex;align-items:center;gap:8px;justify-content:center}.search-toggle:hover{background:linear-gradient(135deg,#3b82f6,#2563eb);transform:translateY(-1px);box-shadow:0 4px 12px #2563eb66}.search-content{padding:12px 16px 16px}.search-input-wrapper{position:relative;margin-bottom:12px}.search-input{width:100%;padding:10px 36px 10px 12px;border:2px solid #e2e8f0;border-radius:8px;font-size:.95em;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;transition:all .2s ease;background:#f8fafc}.search-input:focus{outline:none;border-color:#2563eb;background:#fff;box-shadow:0 0 0 3px #2563eb1a}.search-input::placeholder{color:#94a3b8}.clear-btn{position:absolute;right:8px;top:50%;transform:translateY(-50%);background:#e2e8f0;border:none;width:24px;height:24px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:14px;color:#64748b;transition:all .2s ease}.clear-btn:hover{background:#cbd5e1;color:#1e293b}.search-results{display:flex;justify-content:space-between;align-items:center;padding:10px;background:#f0f9ff;border-radius:8px;margin-bottom:12px;border:1px solid #bae6fd}.result-count{font-size:.9em;color:#0c4a6e;font-weight:600}.navigation-buttons{display:flex;gap:6px}.nav-btn{background:#2563eb;color:#fff;border:none;width:32px;height:32px;border-radius:6px;cursor:pointer;font-size:16px;display:flex;align-items:center;justify-content:center;transition:all .2s ease;font-weight:700}.nav-btn:hover{background:#1e40af;transform:translateY(-1px)}.nav-btn:active{transform:translateY(0)}.no-results{padding:12px;text-align:center;color:#64748b;font-size:.9em;background:#f8fafc;border-radius:8px;margin-bottom:12px}.search-hints{display:flex;flex-direction:column;gap:6px;padding-top:8px;border-top:1px solid #e2e8f0}.hint-item{display:flex;align-items:center;gap:8px;font-size:.85em;color:#64748b}.hint-item kbd{background:#f1f5f9;padding:3px 8px;border-radius:4px;border:1px solid #cbd5e1;font-size:.85em;font-family:SF Mono,Monaco,Menlo,monospace;color:#334155;min-width:60px;text-align:center;box-shadow:0 1px 2px #0000000d}@keyframes highlight-pulse{0%,to{filter:drop-shadow(0 0 8px rgba(37,99,235,.6))}50%{filter:drop-shadow(0 0 16px rgba(37,99,235,.8))}}.search-highlight{animation:highlight-pulse 1.5s ease-in-out infinite}@media(max-width:768px){.search-panel{position:fixed!important;top:60px!important;left:15px!important;height:45px!important}.search-input{height:45px!important;padding:12px 16px!important}}[data-theme=dark] .search-panel{background:#1e1e2efa;box-shadow:0 4px 20px #0006}[data-theme=dark] .search-toggle{background:linear-gradient(135deg,#89b4fa,#7c3aed)}[data-theme=dark] .search-toggle:hover{background:linear-gradient(135deg,#a5c8ff,#9561f5);box-shadow:0 4px 12px #89b4fa66}[data-theme=dark] .search-input{border-color:#45475a;background:#181825;color:#cdd6f4}[data-theme=dark] .search-input:focus{border-color:#89b4fa;background:#1e1e2e;box-shadow:0 0 0 3px #89b4fa26}[data-theme=dark] .search-input::placeholder{color:#6c7086}[data-theme=dark] .clear-btn{background:#45475a;color:#a6adc8}[data-theme=dark] .clear-btn:hover{background:#585b70;color:#cdd6f4}[data-theme=dark] .search-results{background:#89b4fa1a;border-color:#89b4fa40}[data-theme=dark] .result-count{color:#89b4fa}[data-theme=dark] .nav-btn{background:#89b4fa;color:#1e1e2e}[data-theme=dark] .nav-btn:hover{background:#a5c8ff}[data-theme=dark] .no-results{color:#a6adc8;background:#181825}[data-theme=dark] .search-hints{border-top-color:#45475a}[data-theme=dark] .hint-item{color:#a6adc8}[data-theme=dark] .hint-item kbd{background:#181825;border-color:#45475a;color:#cdd6f4;box-shadow:0 1px 2px #0000004d}} .diagram-container{position:relative;min-height:100vh;width:100vw;overflow:hidden}.diagram-viewer{--diagram-prop-key: #667eea;--diagram-prop-value: #2c3e50;position:absolute;inset:60px 0 0;width:100%;height:calc(100% - 60px);overflow:hidden;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Inter,Roboto,Helvetica Neue,Arial,sans-serif}.diagram-viewer.fullscreen{position:fixed;inset:0;width:100vw;height:100vh;z-index:1000;background:#fff}.diagram-svg{width:100%;height:100%;cursor:grab;background:#f8f9fa}.diagram-svg:active{cursor:grabbing}.dimension-overlay{position:absolute;top:10px;right:10px;background:#000000b3;color:#fff;padding:4px 8px;border-radius:4px;font-size:12px;font-family:monospace;z-index:1000;pointer-events:none}.node{cursor:pointer;transition:all .3s ease}.node-box{fill:#fff;stroke:#4a5568;stroke-width:2;filter:drop-shadow(0 2px 8px rgba(0,0,0,.12));transition:all .3s cubic-bezier(.4,0,.2,1)}.node:hover .node-box{fill:#f0f9ff;stroke:#2563eb;stroke-width:2.5;filter:drop-shadow(0 4px 16px rgba(37,99,235,.25));transform:translateY(-2px)}.node-name{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Inter,Roboto,Helvetica Neue,Arial,sans-serif;font-size:15px;font-weight:600;fill:#1e293b;letter-spacing:-.01em;pointer-events:none}.node-separator{stroke:#cbd5e1;stroke-width:1.5;stroke-dasharray:none}.node-property{font-family:SF Mono,Monaco,Menlo,Consolas,Courier New,monospace;font-size:13px;pointer-events:none;letter-spacing:-.02em}.prop-key{fill:#64748b;font-weight:600}.prop-value{fill:#0ea5e9;font-weight:500}.diagram-prop-key{color:#667eea}.diagram-prop-val{color:#2c3e50}.expand-icon{cursor:pointer}.icon-circle{fill:#2563eb;stroke:#1e40af;stroke-width:2.5;filter:drop-shadow(0 2px 4px rgba(37,99,235,.3));transition:all .2s cubic-bezier(.4,0,.2,1)}.expand-icon:hover .icon-circle{fill:#3b82f6;stroke:#2563eb;transform:scale(1.1)}.icon-text{fill:#fff;font-size:20px;font-weight:900;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif;pointer-events:none;-webkit-user-select:none;user-select:none}.diagram-controls{position:absolute;top:20px;right:20px;z-index:100;display:flex;gap:10px}.controls-panel{display:flex;gap:10px;align-items:center}.control-group{display:flex;gap:8px;align-items:center}.toggle-all-btn{padding:10px 20px;font-size:.9em;font-weight:600;color:#fff;background:linear-gradient(135deg,#667eea,#764ba2);border:none;border-radius:25px;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 12px #667eea4d;margin-right:25px}.toggle-all-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px #667eea66}.toggle-all-btn:active{transform:translateY(0)}.zoom-controls{position:absolute;bottom:30px;right:30px;z-index:100;display:flex;flex-direction:column;gap:12px;background:#fffffff2;padding:12px;border-radius:12px;box-shadow:0 4px 20px #00000026;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);margin-right:25px}.zoom-controls-group{display:flex;flex-direction:column;gap:6px}.zoom-controls-group:not(:last-child){border-bottom:1px solid #e2e8f0;padding-bottom:8px}.zoom-btn{width:46px;height:38px;font-size:16px;font-weight:600;color:#334155;background:#fff;border:2px solid #e2e8f0;border-radius:8px;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 4px #0000000d;position:relative}.zoom-btn:hover{background:#f1f5f9;border-color:#cbd5e1;transform:scale(1.05);box-shadow:0 4px 8px #0000001a}.zoom-btn:active{transform:scale(.95)}.fit-btn,.actual-size-btn{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-color:transparent}.export-btn{background:linear-gradient(135deg,#4ade80,#22c55e);color:#fff;border-color:transparent}.export-btn:hover{background:linear-gradient(135deg,#22c55e,#16a34a);border-color:transparent}.fit-btn:hover,.actual-size-btn:hover{background:linear-gradient(135deg,#5a6fd8,#6a4190)}.fullscreen-btn{font-size:18px}.fullscreen-btn{font-size:20px}.node-count-badge{position:absolute;bottom:30px;left:30px;z-index:100;background:linear-gradient(135deg,#10b981,#059669);color:#fff;padding:10px 18px;border-radius:20px;box-shadow:0 4px 12px #10b9814d;display:flex;align-items:center;gap:6px;font-size:.9em;font-weight:600;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.node-count-label{opacity:.9;font-size:.85em}.node-count-numbers{font-size:1.1em;font-weight:700;padding:2px 8px;background:#fff3;border-radius:8px}.diagram-viewer:fullscreen{background:#fff}.diagram-viewer:fullscreen .diagram-svg{width:100vw;height:100vh}.guide-line{stroke:#cbd5e1;stroke-width:1;stroke-dasharray:5,5;opacity:.4;pointer-events:none}.link{fill:none;stroke:#94a3b8;stroke-width:2.5;stroke-opacity:.8;transition:all .3s cubic-bezier(.4,0,.2,1);stroke-linecap:square;stroke-linejoin:miter}.link:hover{stroke:#2563eb;stroke-width:3;stroke-opacity:1}.path-highlight.node-box{stroke:#10b981!important;stroke-width:3!important;fill:#d1fae5!important;filter:drop-shadow(0 4px 12px rgba(16,185,129,.4))}.path-highlight.node-name{fill:#047857!important;font-weight:700!important}.path-highlight.link{stroke:#10b981!important;stroke-width:4!important;stroke-opacity:1!important}.search-highlight{stroke:#f59e0b!important;stroke-width:3!important;fill:#fef3c7!important}.current-match{stroke:#dc2626!important;stroke-width:4!important;fill:#fee2e2!important;animation:pulse-highlight 1s ease-in-out infinite}.search-match{fill:#f59e0b!important;font-weight:700!important}@keyframes pulse-highlight{0%,to{filter:drop-shadow(0 0 8px rgba(220,38,38,.6))}50%{filter:drop-shadow(0 0 16px rgba(220,38,38,.9))}}@keyframes nodeEntry{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}.node-tooltip{position:absolute;background:#000c;color:#fff;padding:8px 12px;border-radius:6px;font-size:12px;pointer-events:none;z-index:1000;box-shadow:0 4px 8px #0003}.node-highlight-critical .node-box{fill:#fef2f2;stroke:#ef4444;stroke-width:3;filter:drop-shadow(0 4px 16px rgba(239,68,68,.4));animation:pulse-critical 2s ease-in-out infinite}.node-highlight-warning .node-box{fill:#fffbeb;stroke:#f59e0b;stroke-width:2.5;filter:drop-shadow(0 4px 16px rgba(245,158,11,.3));animation:pulse-warning 3s ease-in-out infinite}.node-highlight-positive .node-box{fill:#f0fdf4;stroke:#22c55e;stroke-width:2.5;filter:drop-shadow(0 4px 16px rgba(34,197,94,.3))}.node-highlight-info .node-box{fill:#f0f9ff;stroke:#3b82f6;stroke-width:2;filter:drop-shadow(0 4px 16px rgba(59,130,246,.25))}@keyframes pulse-critical{0%,to{stroke-width:3;filter:drop-shadow(0 4px 16px rgba(239,68,68,.4))}50%{stroke-width:4;filter:drop-shadow(0 6px 20px rgba(239,68,68,.6))}}@keyframes pulse-warning{0%,to{stroke-width:2.5;filter:drop-shadow(0 4px 16px rgba(245,158,11,.3))}50%{stroke-width:3;filter:drop-shadow(0 6px 20px rgba(245,158,11,.5))}}.node-highlight-critical:hover .node-box{fill:#fee2e2;stroke:#dc2626;transform:translateY(-3px)}.node-highlight-warning:hover .node-box{fill:#fef3c7;stroke:#d97706;transform:translateY(-2px)}.node-highlight-positive:hover .node-box{fill:#dcfce7;stroke:#16a34a;transform:translateY(-2px)}.node-highlight-info:hover .node-box{fill:#dbeafe;stroke:#2563eb;transform:translateY(-2px)}.highlight-legend{position:absolute;top:20px;right:20px;background:#fff;border-radius:8px;padding:12px;box-shadow:0 4px 12px #00000026;font-size:12px;z-index:100}.legend-item{display:flex;align-items:center;margin-bottom:6px}.legend-color{width:12px;height:12px;border-radius:2px;margin-right:8px}.legend-critical{background-color:#ef4444}.legend-warning{background-color:#f59e0b}.legend-positive{background-color:#22c55e}.legend-info{background-color:#3b82f6}.svg-copy-btn{background:transparent;border:none;cursor:pointer;font-size:12px;padding:2px 4px;opacity:.5;transition:all .2s ease;border-radius:3px;margin-left:4px;flex-shrink:0;pointer-events:auto}.svg-copy-btn:hover{opacity:1!important;background:#667eea1a;transform:scale(1.15)!important}.svg-copy-btn:active{transform:scale(.95)!important}.mobile-header-toggle{display:none}@media(max-width:768px){.diagram-viewer{inset:300px 0 0;width:100%;height:100vh;overflow-y:auto;z-index:1}.mobile-header-toggle{position:fixed;top:10px;left:50%;transform:translate(-50%);z-index:9999!important;background:#fffffff2;border:2px solid #e1e5e9;border-radius:20px;padding:8px 12px;font-size:16px;cursor:pointer;box-shadow:0 4px 12px #00000026;transition:all .3s ease;pointer-events:auto!important;touch-action:manipulation;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:block}.mobile-header-toggle:hover{background:#fff;border-color:#667eea;transform:translate(-50%) translateY(-2px);box-shadow:0 6px 16px #0003}.mobile-header-toggle:active{transform:translate(-50%) translateY(0)}.diagram-controls{position:fixed!important;bottom:20px!important;top:auto!important;right:15px;z-index:200;justify-content:flex-end}.toggle-all-btn{padding:4px 12px;font-size:.75em;height:28px;margin-right:0;margin-top:0!important;border-radius:14px;display:flex;align-items:center}.toggle-all-btn:hover{transform:translateY(-1px);box-shadow:0 5px 15px #667eea66}.node-count-badge{position:fixed!important;bottom:20px!important;left:15px!important;z-index:200}.zoom-controls{position:fixed!important;bottom:100px!important;right:5px!important;margin-right:0!important;padding:6px!important;border-radius:8px!important;gap:6px!important;z-index:150}.zoom-btn{width:32px!important;height:28px!important;font-size:12px!important;border-radius:6px!important;padding:0!important}.zoom-controls-group{gap:4px!important}.zoom-controls-group:not(:last-child){padding-bottom:4px!important}.tree-info-panel.collapsed{max-height:150px}.tree-info-panel{z-index:200}.svg-copy-btn{padding:6px 8px!important;font-size:14px!important;opacity:.8!important;background:#ffffffe6!important;border:1px solid rgba(0,0,0,.1)!important;border-radius:4px!important;touch-action:manipulation!important;-webkit-touch-callout:none!important;-webkit-user-select:none!important;-khtml-user-select:none!important;-moz-user-select:none!important;-ms-user-select:none!important;user-select:none!important}.svg-copy-btn:hover,.svg-copy-btn:active,.svg-copy-btn:focus{opacity:1!important;background:#667eea33!important;transform:none!important}}[data-theme=dark] .diagram-viewer{--diagram-prop-key: #cba6f7;--diagram-prop-value: #cdd6f4}[data-theme=dark] .diagram-viewer.fullscreen,[data-theme=dark] .diagram-svg{background:#1e1e2e}[data-theme=dark] .node-box{fill:#313244;stroke:#585b70;filter:drop-shadow(0 2px 8px rgba(0,0,0,.3))}[data-theme=dark] .node:hover .node-box{fill:#45475a;stroke:#89b4fa;filter:drop-shadow(0 4px 16px rgba(137,180,250,.25))}[data-theme=dark] .node-name{fill:#cdd6f4}[data-theme=dark] .node-separator{stroke:#585b70}[data-theme=dark] .prop-key{fill:#a6adc8}[data-theme=dark] .prop-value{fill:#89dceb}[data-theme=dark] .diagram-prop-key{color:#cba6f7}[data-theme=dark] .diagram-prop-val{color:#cdd6f4}[data-theme=dark] .icon-circle{fill:#89b4fa;stroke:#74c7ec;filter:drop-shadow(0 2px 4px rgba(137,180,250,.3))}[data-theme=dark] .expand-icon:hover .icon-circle{fill:#b4d0fb;stroke:#89b4fa}[data-theme=dark] .link{stroke:#585b70}[data-theme=dark] .link:hover{stroke:#89b4fa}[data-theme=dark] .guide-line{stroke:#45475a}[data-theme=dark] .zoom-controls{background:#1e1e2ef2;box-shadow:0 4px 20px #00000059}[data-theme=dark] .zoom-controls-group:not(:last-child){border-bottom-color:#45475a}[data-theme=dark] .zoom-btn{color:#cdd6f4;background:#313244;border-color:#45475a;box-shadow:0 2px 4px #00000026}[data-theme=dark] .zoom-btn:hover{background:#45475a;border-color:#585b70;box-shadow:0 4px 8px #0003}[data-theme=dark] .highlight-legend{background:#1e1e2e;box-shadow:0 4px 12px #00000059;color:#cdd6f4}[data-theme=dark] .path-highlight.node-box{fill:#1e3a2a!important;stroke:#a6e3a1!important;filter:drop-shadow(0 4px 12px rgba(166,227,161,.3))}[data-theme=dark] .path-highlight.node-name{fill:#a6e3a1!important}[data-theme=dark] .path-highlight.link{stroke:#a6e3a1!important}[data-theme=dark] .search-highlight{fill:#302c1e!important;stroke:#f9e2af!important}[data-theme=dark] .current-match{fill:#302028!important;stroke:#f38ba8!important}[data-theme=dark] .search-match{fill:#f9e2af!important}[data-theme=dark] .node-highlight-critical .node-box{fill:#302028;stroke:#f38ba8;filter:drop-shadow(0 4px 16px rgba(243,139,168,.3))}[data-theme=dark] .node-highlight-warning .node-box{fill:#302c1e;stroke:#f9e2af;filter:drop-shadow(0 4px 16px rgba(249,226,175,.25))}[data-theme=dark] .node-highlight-positive .node-box{fill:#1e3a2a;stroke:#a6e3a1;filter:drop-shadow(0 4px 16px rgba(166,227,161,.25))}[data-theme=dark] .node-highlight-info .node-box{fill:#1e2a3a;stroke:#89b4fa;filter:drop-shadow(0 4px 16px rgba(137,180,250,.2))}[data-theme=dark] .node-highlight-critical:hover .node-box{fill:#3d2530;stroke:#eba0ac}[data-theme=dark] .node-highlight-warning:hover .node-box{fill:#3d3525;stroke:#f9e2af}[data-theme=dark] .node-highlight-positive:hover .node-box{fill:#254a34;stroke:#a6e3a1}[data-theme=dark] .node-highlight-info:hover .node-box{fill:#253548;stroke:#89b4fa}[data-theme=dark] .node-tooltip{background:#11111be6}[data-theme=dark] .node-count-badge{box-shadow:0 4px 12px #00000059}@media(max-width:768px){[data-theme=dark] .mobile-header-toggle{background:#1e1e2ef2;border-color:#45475a;color:#cdd6f4;box-shadow:0 4px 12px #0000004d}[data-theme=dark] .mobile-header-toggle:hover{background:#313244;border-color:#89b4fa}[data-theme=dark] .svg-copy-btn{background:#1e1e2ee6!important;border-color:#ffffff1a!important;color:#cdd6f4}}[data-theme=dark] .diagram-viewer:fullscreen{background:#1e1e2e}.diagram-time-travel{display:flex;align-items:center;gap:8px;margin:12px 0 0}.diagram-time-travel label{font-weight:500;margin-right:4px}.diagram-time-travel input[type=range]{accent-color:#646cff;width:200px;margin:0 8px}.diagram-time-travel span{font-size:14px;color:#444}.diagram-content .search-panel{display:none!important}.diagram-content .diagram-viewer{position:relative!important;inset:0!important;width:100%!important;height:100%!important;overflow:hidden}.simple-combined-editor{height:100vh;display:flex;flex-direction:column;background-color:#f8fafc;overflow:hidden}.simple-header{padding:30px;background:#ffffffe6;box-shadow:0 2px 10px #0000001a;position:relative;flex-shrink:0}.tree-info{display:inline-block;font-size:.875rem;color:#64748b;background:#f1f5f9;padding:.25rem .75rem;border-radius:1rem;margin-bottom:8px}.back-btn{padding:6px 20px;font-size:.85em;font-weight:600;border-radius:20px;cursor:pointer;transition:all .3s ease;border:2px solid #d1d5db;background:#f1f5f9;color:#475569;white-space:nowrap}.back-btn:hover{background:#e2e8f0;transform:translateY(-2px);box-shadow:0 4px 12px #0000001a}.collab-indicator{font-size:.78rem;font-weight:600;border-radius:999px;padding:.26rem .72rem;border:1px solid transparent;white-space:nowrap}.collab-active{color:#166534;background:#dcfce7;border-color:#86efac}.collab-view{color:#1e3a8a;background:#dbeafe;border-color:#93c5fd}.collab-offline{color:#475569;background:#f1f5f9;border-color:#cbd5e1}.shared-badge{padding:.5rem 1rem;background:#f0f9ff;color:#0284c7;border:1px solid #7dd3fc;border-radius:.5rem;font-size:.875rem;font-weight:500;display:flex;align-items:center;gap:.5rem}.error-banner{background:#fef2f2;border-bottom:1px solid #fecaca;color:#dc2626;padding:.75rem 1.5rem;flex-shrink:0}.share-modal-overlay{position:fixed;inset:0;background:#0206178c;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;z-index:1100;padding:20px}.share-modal{width:min(680px,100%);max-height:min(88vh,760px);overflow-y:auto;background:linear-gradient(145deg,#fff,#f8fbff);border-radius:16px;border:1px solid #dbe7f7;box-shadow:0 18px 50px #0f172a33;padding:26px 24px 20px;position:relative}.share-modal-title{margin:0;color:#0f172a;font-size:1.35rem}.share-modal-subtitle{margin:8px 0 18px;color:#475569;font-size:.92rem}.share-modal-close{position:absolute;top:12px;right:12px;width:34px;height:34px;border-radius:50%;border:1px solid #cbd5e1;background:#fff;color:#475569;font-size:1rem;cursor:pointer}.share-modal-close:hover{background:#f1f5f9}.share-toggle-card{background:#f8fbff;border:1px solid #dbe7f7;border-radius:12px;padding:12px 14px}.share-toggle-label{display:flex;align-items:flex-start;gap:10px;color:#0f172a;font-weight:600}.share-toggle-label input{margin-top:2px}.share-toggle-label span{display:flex;flex-direction:column;gap:3px}.share-toggle-label small{color:#64748b;font-weight:400}.share-link-card{margin-top:14px;padding:12px 14px;border-radius:12px;border:1px solid #cfe2ff;background:#f4f8ff}.share-link-label{display:inline-block;font-size:.78rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#334155;margin-bottom:8px}.share-link-row{display:flex;gap:8px}.share-link-input{flex:1;border:1px solid #cbd5e1;border-radius:8px;padding:9px 10px;font-size:.84rem;color:#0f172a}.share-copy-btn{border:1px solid #1d4ed8;background:#1d4ed8;color:#fff;border-radius:8px;padding:0 14px;font-weight:600;cursor:pointer}.share-copy-btn:hover{background:#1e40af;border-color:#1e40af}.share-permissions-section{margin-top:16px;padding-top:14px;border-top:1px solid #e2e8f0}.user-permission-manager{display:flex;flex-direction:column;gap:10px}.user-permission-title{margin:2px 0 0;font-size:.95rem;color:#0f172a}.user-permission-empty{margin:0;font-size:.86rem;color:#64748b;padding:10px;border-radius:8px;background:#f8fafc;border:1px dashed #cbd5e1}.user-permission-list{display:flex;flex-direction:column;gap:8px;max-height:260px;overflow-y:auto;padding-right:2px}.user-permission-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:10px;background:#f8fafc;border:1px solid #e2e8f0}.user-permission-user{display:flex;align-items:center;gap:8px;min-width:0}.user-permission-user strong{color:#1e293b;font-size:.88rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px}.user-permission-badge{font-size:.73rem;font-weight:700;border-radius:999px;padding:3px 8px;text-transform:uppercase;letter-spacing:.03em}.user-permission-badge.is-edit{background:#dcfce7;color:#166534}.user-permission-badge.is-view{background:#dbeafe;color:#1e3a8a}.user-permission-badge.is-no-access{background:#f1f5f9;color:#475569}.user-permission-control{display:flex;align-items:center}.user-permission-select{border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#0f172a;font-size:.82rem;font-weight:600;padding:6px 9px;min-width:112px}.user-permission-readonly{font-size:.8rem;color:#64748b;font-weight:600}.share-user-search-wrap{margin-bottom:10px}.share-user-search{width:100%;border:1px solid #cbd5e1;border-radius:8px;padding:10px;font-size:.9rem}.share-user-loading{margin-top:6px;font-size:.82rem;color:#64748b}.share-status{margin-top:12px;padding:9px 10px;border-radius:8px;font-size:.88rem}.share-status-error{background:#fef2f2;border:1px solid #fecaca;color:#b91c1c}.share-status-success{background:#ecfdf3;border:1px solid #bbf7d0;color:#166534}.split-container{flex:1;display:flex;min-height:0;position:relative}.left-panel{background:#fff;display:flex;flex-direction:column;min-width:0;overflow:hidden}.left-panel .yaml-editor-wrapper{margin:0;border-radius:0;box-shadow:none;border:none;height:100%;flex:1;overflow-y:scroll}.right-panel{background:#fff;display:flex;flex-direction:column;min-width:0;overflow:hidden}.right-panel-container{flex:1;display:flex;min-height:0;position:relative}.search-panel-container{position:absolute;left:0;top:0;z-index:10;height:100%}.search-panel-container .search-panel{position:absolute!important;top:10px!important;left:10px!important;background:#fffffffa;border-radius:12px;box-shadow:0 4px 20px #00000026;z-index:10;transition:all .3s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.search-panel-container .search-panel.collapsed{width:auto;min-width:120px}.search-panel-container .search-toggle{min-width:100px!important;white-space:nowrap;padding:12px 16px!important}.search-panel-container .search-panel.expanded{width:320px!important;background:#f8fafcf2!important;border:1px solid #e2e8f0;height:auto;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.diagram-area{flex:1;position:relative;min-width:0;overflow:hidden}.diagram-area .diagram-content{width:100%;height:100%}.resizer{width:6px;background:#e2e8f0;cursor:col-resize;flex-shrink:0;position:relative;transition:background-color .2s ease}.resizer:hover{background:#cbd5e1}.resizer:active{background:#94a3b8}.resizer:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:2px;height:40px;background:#94a3b8;border-radius:1px}.diagram-placeholder{height:100%;display:flex;align-items:center;justify-content:center;background:#f8fafc}.placeholder-content{text-align:center;color:#64748b;max-width:300px}.placeholder-icon{font-size:4rem;margin-bottom:1rem;opacity:.5}.placeholder-content h3{margin:0 0 .5rem;font-size:1.25rem;color:#475569;font-weight:600}.placeholder-content p{margin:0;line-height:1.5}@media(max-width:968px){.simple-header{padding:15px}}@media(max-width:768px){.simple-header{padding:60px 20px 30px}.simple-combined-editor{height:auto!important;min-height:100vh;overflow-y:auto!important}.resizer{display:none}.share-btn{padding:.35rem .75rem!important;font-size:.8rem!important}.split-container{flex-direction:column;overflow-y:auto}.left-panel{width:100%!important;height:100vh!important;min-height:100vh;overflow-y:auto;display:flex;flex-direction:column;position:relative;z-index:1}.right-panel{width:100%!important;height:100vh!important;min-height:100vh;border-top:1px solid #e2e8f0;overflow-y:auto;display:flex;flex-direction:column}.right-panel-container{flex-direction:column;flex:1;height:100%}.search-panel-container{position:relative;width:100%;height:auto;border-right:none;border-bottom:1px solid #e2e8f0;flex-shrink:0}.search-panel-container .search-panel.expanded{width:100%;height:auto}.diagram-area{flex:1!important;margin-left:0!important;height:calc(100% - 60px);overflow:hidden}.left-panel .yaml-editor,.left-panel .monaco-editor{height:100%!important;flex:1}}body.dragging{-webkit-user-select:none;user-select:none;cursor:col-resize}body.dragging *{pointer-events:none}[data-theme=dark] .simple-combined-editor{background-color:#11111b}[data-theme=dark] .simple-header{background:#1e1e2ee6;box-shadow:0 2px 10px #0000004d}[data-theme=dark] .tree-info{color:#a6adc8;background:#313244}[data-theme=dark] .simple-combined-editor .back-btn{background:#313244;border-color:#45475a;color:#a6adc8}[data-theme=dark] .simple-combined-editor .back-btn:hover{background:#45475a}[data-theme=dark] .collab-active{color:#a6e3a1;background:#a6e3a126;border-color:#a6e3a14d}[data-theme=dark] .collab-view{color:#89b4fa;background:#89b4fa26;border-color:#89b4fa4d}[data-theme=dark] .collab-offline{color:#a6adc8;background:#313244;border-color:#45475a}[data-theme=dark] .shared-badge{background:#89b4fa1a;color:#89b4fa;border-color:#89b4fa40}[data-theme=dark] .error-banner{background:#f38ba81a;border-bottom-color:#f38ba84d;color:#f38ba8}[data-theme=dark] .share-modal{background:linear-gradient(145deg,#1e1e2e,#181825);border-color:#45475a;box-shadow:0 18px 50px #00000080}[data-theme=dark] .share-modal-title{color:#cdd6f4}[data-theme=dark] .share-modal-subtitle{color:#a6adc8}[data-theme=dark] .share-modal-close{background:#313244;border-color:#45475a;color:#a6adc8}[data-theme=dark] .share-modal-close:hover{background:#45475a}[data-theme=dark] .share-toggle-card{background:#181825;border-color:#45475a}[data-theme=dark] .share-toggle-label{color:#cdd6f4}[data-theme=dark] .share-toggle-label small{color:#a6adc8}[data-theme=dark] .share-link-card{background:#89b4fa0d;border-color:#89b4fa33}[data-theme=dark] .share-link-label{color:#a6adc8}[data-theme=dark] .share-link-input{background:#181825;border-color:#45475a;color:#cdd6f4}[data-theme=dark] .share-copy-btn{background:#89b4fa;border-color:#89b4fa;color:#1e1e2e}[data-theme=dark] .share-copy-btn:hover{background:#a5c8ff;border-color:#a5c8ff}[data-theme=dark] .share-permissions-section{border-top-color:#45475a}[data-theme=dark] .user-permission-title{color:#cdd6f4}[data-theme=dark] .user-permission-empty{color:#a6adc8;background:#181825;border-color:#45475a}[data-theme=dark] .user-permission-item{background:#181825;border-color:#45475a}[data-theme=dark] .user-permission-user strong{color:#cdd6f4}[data-theme=dark] .user-permission-badge.is-edit{background:#a6e3a126;color:#a6e3a1}[data-theme=dark] .user-permission-badge.is-view{background:#89b4fa26;color:#89b4fa}[data-theme=dark] .user-permission-badge.is-no-access{background:#313244;color:#a6adc8}[data-theme=dark] .user-permission-select{background:#313244;border-color:#45475a;color:#cdd6f4}[data-theme=dark] .user-permission-readonly{color:#a6adc8}[data-theme=dark] .share-user-search{background:#181825;border-color:#45475a;color:#cdd6f4}[data-theme=dark] .share-user-loading{color:#a6adc8}[data-theme=dark] .share-status-error{background:#f38ba81a;border-color:#f38ba84d;color:#f38ba8}[data-theme=dark] .share-status-success{background:#a6e3a11a;border-color:#a6e3a14d;color:#a6e3a1}[data-theme=dark] .left-panel,[data-theme=dark] .right-panel{background:#1e1e2e}[data-theme=dark] .search-panel-container .search-panel{background:#1e1e2efa;box-shadow:0 4px 20px #0006}[data-theme=dark] .search-panel-container .search-panel.expanded{background:#1e1e2ef2!important;border-color:#45475a}[data-theme=dark] .resizer{background:#45475a}[data-theme=dark] .resizer:hover{background:#585b70}[data-theme=dark] .resizer:active{background:#a6adc8}[data-theme=dark] .resizer:before{background:#a6adc8}[data-theme=dark] .diagram-placeholder{background:#181825}[data-theme=dark] .placeholder-content{color:#a6adc8}[data-theme=dark] .placeholder-content h3{color:#cdd6f4}.yaml-diff-visualization{flex:1;display:flex;flex-direction:column;height:100%;overflow:hidden}.yaml-diff-visualization.yaml-diff-visualization-empty{justify-content:center;align-items:center}.yaml-diff-empty-state{text-align:center;color:#6c757d;font-size:1.1rem}.yaml-diff-empty-state p{margin:.5rem 0}.yaml-diff-stats{padding:1rem;background:#f8f9fa;border-bottom:1px solid #e0e0e0}.yaml-diff-stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:1rem;max-width:600px;margin:0 auto}.yaml-diff-stat-item{display:flex;flex-direction:column;align-items:center;padding:.75rem;border-radius:8px;background:#fff;box-shadow:0 2px 4px #0000001a}.yaml-diff-stat-item.yaml-diff-stat-added{border-left:4px solid #28a745}.yaml-diff-stat-item.yaml-diff-stat-deleted{border-left:4px solid #dc3545}.yaml-diff-stat-item.yaml-diff-stat-modified{border-left:4px solid #ffc107}.yaml-diff-stat-item.yaml-diff-stat-unchanged{border-left:4px solid #6c757d}.yaml-diff-stat-number{font-size:1.5rem;font-weight:700;margin-bottom:.25rem}.yaml-diff-stat-item.yaml-diff-stat-added .yaml-diff-stat-number{color:#28a745}.yaml-diff-stat-item.yaml-diff-stat-deleted .yaml-diff-stat-number{color:#dc3545}.yaml-diff-stat-item.yaml-diff-stat-modified .yaml-diff-stat-number{color:#ffc107}.yaml-diff-stat-item.yaml-diff-stat-unchanged .yaml-diff-stat-number{color:#6c757d}.yaml-diff-stat-label{font-size:.875rem;color:#6c757d;text-transform:uppercase;letter-spacing:.5px}.yaml-diff-unified-view{flex:1;display:flex;flex-direction:column;overflow:hidden}.yaml-diff-view-header{padding:1rem;background:#fff;border-bottom:1px solid #e0e0e0;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem}.yaml-diff-view-title{margin:0;color:#495057}.yaml-diff-legend{display:flex;gap:1rem;flex-wrap:wrap}.yaml-diff-legend-item{display:flex;align-items:center;font-size:.875rem;padding:.25rem .5rem;border-radius:4px}.yaml-diff-legend-item.yaml-diff-legend-added{background:#28a7451a;color:#28a745}.yaml-diff-legend-item.yaml-diff-legend-deleted{background:#dc35451a;color:#dc3545}.yaml-diff-legend-item.yaml-diff-legend-modified{background:#ffc1071a;color:#ffc107}.yaml-diff-view-content{flex:1;overflow-y:auto;padding:1rem;background:#fefefe;scrollbar-gutter:stable both-edges;scrollbar-width:thin;scrollbar-color:#94a3b8 #f1f5f9}.yaml-diff-line{display:flex;margin-bottom:1px;font-family:Courier New,monospace;font-size:.875rem;line-height:1.5}.yaml-diff-line.yaml-diff-line-delete{background:#dc35451a}.yaml-diff-line.yaml-diff-line-insert{background:#28a7451a}.yaml-diff-line.yaml-diff-line-modify{background:#ffc1071a}.yaml-diff-line-numbers{display:flex;gap:.5rem;min-width:100px;padding:.25rem .5rem;background:#f8f9fa;border-right:1px solid #e0e0e0;font-size:.75rem;color:#6c757d}.yaml-diff-left-line-num,.yaml-diff-right-line-num{width:40px;text-align:right}.yaml-diff-line-content{flex:1;padding:.25rem .5rem}.yaml-diff-deleted-line,.yaml-diff-added-line{display:flex;align-items:flex-start}.yaml-diff-source-tag{display:inline-flex;align-items:center;border-radius:999px;padding:.1rem .45rem;margin-right:.5rem;font-size:.7rem;font-weight:700;letter-spacing:.02em;text-transform:uppercase}.yaml-diff-source-tag-original{background:#dc354524;color:#b91c1c}.yaml-diff-source-tag-modified{background:#28a74524;color:#15803d}.yaml-diff-source-tag-both{background:#64748b24;color:#334155}.yaml-diff-unchanged-line{display:flex;align-items:flex-start;opacity:.92}.yaml-diff-marker{min-width:20px;font-weight:700;margin-right:.5rem}.yaml-diff-deleted-line .yaml-diff-marker{color:#dc3545}.yaml-diff-added-line .yaml-diff-marker{color:#28a745}.yaml-diff-line-text{flex:1;white-space:pre-wrap;word-wrap:break-word}.yaml-diff-side-by-side-view{flex:1;display:flex;flex-direction:column;overflow:hidden}.yaml-diff-panels{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#e0e0e0;overflow:hidden}.yaml-diff-panel{background:#fff;display:flex;flex-direction:column;overflow:hidden}.yaml-diff-panel-header{padding:.75rem 1rem;background:#f8f9fa;border-bottom:1px solid #e0e0e0;font-weight:600;color:#495057;text-align:center}.yaml-diff-panel-content{flex:1;overflow-y:auto;font-family:Courier New,monospace;font-size:.875rem;line-height:1.5;scrollbar-gutter:stable both-edges;scrollbar-width:thin;scrollbar-color:#94a3b8 #f1f5f9}.yaml-diff-panel-content .yaml-diff-line{display:flex;padding:.25rem .5rem;margin:0}.yaml-diff-side-marker{width:24px;min-width:24px;text-align:center;font-weight:700;margin-right:.4rem;border-radius:4px;line-height:1.2}.yaml-diff-side-marker-equal{color:#64748b}.yaml-diff-side-marker-delete{color:#dc2626;background:#dc26261f}.yaml-diff-side-marker-insert{color:#16a34a;background:#16a34a1f}.yaml-diff-side-marker-modify{color:#ca8a04;background:#ca8a0424}.yaml-diff-side-marker-missing{color:#64748b;background:#64748b1f}.yaml-diff-panel-content .yaml-diff-line-content.yaml-diff-line-missing{color:#64748b;font-style:italic;opacity:.9}.yaml-diff-panel-content .yaml-diff-line-number{min-width:50px;padding-right:.5rem;color:#6c757d;text-align:right;border-right:1px solid #f0f0f0;margin-right:.5rem}.yaml-diff-panel-content .yaml-diff-line-content{flex:1;white-space:pre;word-wrap:normal}.yaml-diff-panel-content .yaml-diff-line.yaml-diff-line-delete{background:#dc354526}.yaml-diff-panel-content .yaml-diff-line.yaml-diff-line-insert{background:#28a74526}.yaml-diff-panel-content .yaml-diff-line.yaml-diff-line-modify{background:#ffc10726}.yaml-diff-view-content::-webkit-scrollbar,.yaml-diff-panel-content::-webkit-scrollbar{width:10px;height:10px}.yaml-diff-view-content::-webkit-scrollbar-track,.yaml-diff-panel-content::-webkit-scrollbar-track{background:#f1f5f9}.yaml-diff-view-content::-webkit-scrollbar-thumb,.yaml-diff-panel-content::-webkit-scrollbar-thumb{background:#94a3b8;border-radius:8px;border:2px solid #f1f5f9}.yaml-diff-view-content::-webkit-scrollbar-thumb:hover,.yaml-diff-panel-content::-webkit-scrollbar-thumb:hover{background:#64748b}@media(max-width:768px){.yaml-diff-stats-grid{grid-template-columns:repeat(2,1fr);gap:.5rem}.yaml-diff-stat-item{padding:.5rem}.yaml-diff-stat-number{font-size:1.25rem}.yaml-diff-view-header{flex-direction:column;align-items:flex-start;padding:.75rem}.yaml-diff-legend{gap:.5rem}.yaml-diff-legend-item{font-size:.75rem}.yaml-diff-panels{grid-template-columns:1fr;grid-template-rows:1fr 1fr}.yaml-diff-line{font-size:.75rem}.yaml-diff-line-numbers{min-width:80px;font-size:.7rem}.yaml-diff-left-line-num,.yaml-diff-right-line-num{width:35px}.yaml-diff-panel-content .yaml-diff-line-number{min-width:40px;font-size:.75rem}}[data-theme=dark] .yaml-diff-empty-state{color:#a6adc8}[data-theme=dark] .yaml-diff-stats{background:#181825;border-bottom-color:#45475a}[data-theme=dark] .yaml-diff-stat-item{background:#1e1e2e;box-shadow:0 2px 4px #0000004d}[data-theme=dark] .yaml-diff-stat-label{color:#a6adc8}[data-theme=dark] .yaml-diff-view-header{background:#1e1e2e;border-bottom-color:#45475a}[data-theme=dark] .yaml-diff-view-title{color:#cdd6f4}[data-theme=dark] .yaml-diff-view-content{background:#181825}[data-theme=dark] .yaml-diff-line-numbers{background:#11111b;border-right-color:#45475a;color:#6c7086}[data-theme=dark] .yaml-diff-line.yaml-diff-line-delete{background:#f38ba81a}[data-theme=dark] .yaml-diff-line.yaml-diff-line-insert{background:#a6e3a11a}[data-theme=dark] .yaml-diff-line.yaml-diff-line-modify{background:#f9e2af1a}[data-theme=dark] .yaml-diff-line-text{color:#cdd6f4}[data-theme=dark] .yaml-diff-source-tag-original{background:#f38ba826;color:#f38ba8}[data-theme=dark] .yaml-diff-source-tag-modified{background:#a6e3a126;color:#a6e3a1}[data-theme=dark] .yaml-diff-source-tag-both{background:#a6adc826;color:#a6adc8}[data-theme=dark] .yaml-diff-deleted-line .yaml-diff-marker{color:#f38ba8}[data-theme=dark] .yaml-diff-added-line .yaml-diff-marker{color:#a6e3a1}[data-theme=dark] .yaml-diff-panels{background:#45475a}[data-theme=dark] .yaml-diff-panel{background:#1e1e2e}[data-theme=dark] .yaml-diff-panel-header{background:#181825;border-bottom-color:#45475a;color:#cdd6f4}[data-theme=dark] .yaml-diff-panel-content .yaml-diff-line-number{color:#6c7086;border-right-color:#313244}[data-theme=dark] .yaml-diff-panel-content .yaml-diff-line-content{color:#cdd6f4}[data-theme=dark] .yaml-diff-panel-content .yaml-diff-line-content.yaml-diff-line-missing{color:#6c7086}[data-theme=dark] .yaml-diff-panel-content .yaml-diff-line.yaml-diff-line-delete{background:#f38ba81f}[data-theme=dark] .yaml-diff-panel-content .yaml-diff-line.yaml-diff-line-insert{background:#a6e3a11f}[data-theme=dark] .yaml-diff-panel-content .yaml-diff-line.yaml-diff-line-modify{background:#f9e2af1f}[data-theme=dark] .yaml-diff-view-content::-webkit-scrollbar-track,[data-theme=dark] .yaml-diff-panel-content::-webkit-scrollbar-track{background:#181825}[data-theme=dark] .yaml-diff-view-content::-webkit-scrollbar-thumb,[data-theme=dark] .yaml-diff-panel-content::-webkit-scrollbar-thumb{background:#585b70;border-color:#181825}[data-theme=dark] .yaml-diff-view-content::-webkit-scrollbar-thumb:hover,[data-theme=dark] .yaml-diff-panel-content::-webkit-scrollbar-thumb:hover{background:#a6adc8}[data-theme=dark] .yaml-diff-legend-item.yaml-diff-legend-added{background:#a6e3a11a;color:#a6e3a1}[data-theme=dark] .yaml-diff-legend-item.yaml-diff-legend-deleted{background:#f38ba81a;color:#f38ba8}[data-theme=dark] .yaml-diff-legend-item.yaml-diff-legend-modified{background:#f9e2af1a;color:#f9e2af}.yaml-diff-compare-page{display:flex;flex-direction:column;height:100vh;background:#f8f9fa}.yaml-diff-header-section{background:#fff;border-bottom:2px solid #e0e0e0;padding:1.5rem 2rem;box-shadow:0 2px 4px #0000001a}.yaml-diff-title-container{margin-bottom:1.5rem}.yaml-diff-back-btn{background:#6c757d;color:#fff;border:none;padding:.5rem 1rem;border-radius:6px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:.5rem;margin-bottom:1rem}.yaml-diff-back-btn:hover{background:#545b62;transform:translateY(-1px);box-shadow:0 2px 4px #6c757d4d}.yaml-diff-main-title{margin:0 0 .5rem;color:#2c3e50;font-size:2rem;font-weight:700}.yaml-diff-subtitle{margin:0;color:#6c757d;font-size:1.1rem}.yaml-diff-controls-container{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem}.yaml-diff-view-controls{display:flex;background:#f8f9fa;border-radius:8px;padding:.25rem;border:1px solid #e0e0e0}.yaml-diff-view-toggle{background:transparent;border:none;padding:.5rem 1rem;border-radius:6px;cursor:pointer;font-size:.875rem;font-weight:500;color:#6c757d;transition:all .2s ease}.yaml-diff-view-toggle:hover{background:#007bff1a;color:#007bff}.yaml-diff-view-toggle.yaml-diff-active{background:#007bff;color:#fff;box-shadow:0 2px 4px #007bff4d}.yaml-diff-action-controls{display:flex;gap:.75rem;align-items:center}.yaml-diff-btn{padding:.75rem 1rem;border:none;border-radius:6px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:.5rem}.yaml-diff-btn-primary{background:#007bff;color:#fff}.yaml-diff-btn-primary:hover:not(:disabled){background:#0056b3;transform:translateY(-1px);box-shadow:0 4px 8px #007bff4d}.yaml-diff-btn-primary:disabled{background:#6c757d;cursor:not-allowed;opacity:.6}.yaml-diff-btn-secondary{background:#6c757d;color:#fff}.yaml-diff-btn-secondary:hover{background:#545b62;transform:translateY(-1px);box-shadow:0 4px 8px #6c757d4d}.yaml-diff-content-area{flex:1;display:flex;flex-direction:column;overflow:hidden;margin:1rem;background:#fff;border-radius:12px;box-shadow:0 4px 6px #0000001a}.yaml-diff-editors-container{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#e0e0e0;overflow:hidden;min-height:min(72vh,calc(100vh - 220px));height:min(72vh,calc(100vh - 220px))}.yaml-diff-side-by-side-workspace{flex:1;min-height:0;display:flex;flex-direction:column;gap:.75rem;padding:.75rem;overflow:auto}.yaml-diff-editors-container-with-result{flex:0 0 auto;min-height:min(44vh,calc(100vh - 380px));height:min(44vh,calc(100vh - 380px))}.yaml-diff-side-result-panel{flex:0 0 auto;min-height:90vh;height:min(56vh,calc(100vh - 300px));border:1px solid #e2e8f0;border-radius:10px;background:#fff;overflow:hidden;display:flex;flex-direction:column}.yaml-diff-side-result-header{padding:.55rem .8rem;border-bottom:1px solid #e2e8f0;background:#f8fafc;color:#334155;font-size:.8rem;font-weight:700;letter-spacing:.01em}.yaml-diff-editor-panel{background:#fff;display:flex;flex-direction:column;overflow:hidden;min-height:0}.yaml-diff-plain-editor-wrap{flex:1;min-height:0;display:flex;flex-direction:column;background:#fff}.yaml-diff-plain-editor{flex:1;min-height:0;width:100%;border:none;outline:none;resize:none;padding:1rem;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.86rem;line-height:1.45;color:#1f2937;background:#fff;overflow-y:scroll;overflow-x:auto;scrollbar-gutter:stable both-edges;scrollbar-width:thin;scrollbar-color:#94a3b8 #f1f5f9;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;tab-size:2}.yaml-diff-side-by-side-workspace,.yaml-diff-plain-editor,.yaml-diff-side-result-panel .yaml-diff-view-content,.yaml-diff-side-result-panel .yaml-diff-panel-content{scrollbar-gutter:stable both-edges;scrollbar-width:thin;scrollbar-color:#94a3b8 #f1f5f9}.yaml-diff-side-by-side-workspace::-webkit-scrollbar,.yaml-diff-plain-editor::-webkit-scrollbar,.yaml-diff-side-result-panel .yaml-diff-view-content::-webkit-scrollbar,.yaml-diff-side-result-panel .yaml-diff-panel-content::-webkit-scrollbar{width:10px;height:10px}.yaml-diff-side-by-side-workspace::-webkit-scrollbar-track,.yaml-diff-plain-editor::-webkit-scrollbar-track,.yaml-diff-side-result-panel .yaml-diff-view-content::-webkit-scrollbar-track,.yaml-diff-side-result-panel .yaml-diff-panel-content::-webkit-scrollbar-track{background:#f1f5f9}.yaml-diff-side-by-side-workspace::-webkit-scrollbar-thumb,.yaml-diff-plain-editor::-webkit-scrollbar-thumb,.yaml-diff-side-result-panel .yaml-diff-view-content::-webkit-scrollbar-thumb,.yaml-diff-side-result-panel .yaml-diff-panel-content::-webkit-scrollbar-thumb{background:#94a3b8;border-radius:8px;border:2px solid #f1f5f9}.yaml-diff-side-by-side-workspace::-webkit-scrollbar-thumb:hover,.yaml-diff-plain-editor::-webkit-scrollbar-thumb:hover,.yaml-diff-side-result-panel .yaml-diff-view-content::-webkit-scrollbar-thumb:hover,.yaml-diff-side-result-panel .yaml-diff-panel-content::-webkit-scrollbar-thumb:hover{background:#64748b}.yaml-diff-compare-page .yaml-diff-plain-editor,.yaml-diff-compare-page .yaml-diff-side-result-panel .yaml-diff-view-content,.yaml-diff-compare-page .yaml-diff-side-result-panel .yaml-diff-panel-content{scrollbar-width:thin!important;scrollbar-color:#94a3b8 #f1f5f9!important}.yaml-diff-compare-page .yaml-diff-plain-editor::-webkit-scrollbar,.yaml-diff-compare-page .yaml-diff-side-result-panel .yaml-diff-view-content::-webkit-scrollbar,.yaml-diff-compare-page .yaml-diff-side-result-panel .yaml-diff-panel-content::-webkit-scrollbar{width:10px!important;height:10px!important}.yaml-diff-compare-page .yaml-diff-plain-editor::-webkit-scrollbar-track,.yaml-diff-compare-page .yaml-diff-side-result-panel .yaml-diff-view-content::-webkit-scrollbar-track,.yaml-diff-compare-page .yaml-diff-side-result-panel .yaml-diff-panel-content::-webkit-scrollbar-track{background:#f1f5f9!important}.yaml-diff-compare-page .yaml-diff-plain-editor::-webkit-scrollbar-thumb,.yaml-diff-compare-page .yaml-diff-side-result-panel .yaml-diff-view-content::-webkit-scrollbar-thumb,.yaml-diff-compare-page .yaml-diff-side-result-panel .yaml-diff-panel-content::-webkit-scrollbar-thumb{background:#94a3b8!important;border-radius:8px!important;border:2px solid #f1f5f9!important}.yaml-diff-compare-page .yaml-diff-plain-editor::-webkit-scrollbar-thumb:hover,.yaml-diff-compare-page .yaml-diff-side-result-panel .yaml-diff-view-content::-webkit-scrollbar-thumb:hover,.yaml-diff-compare-page .yaml-diff-side-result-panel .yaml-diff-panel-content::-webkit-scrollbar-thumb:hover{background:#64748b!important}.yaml-diff-plain-editor::placeholder{color:#9ca3af}.yaml-diff-plain-editor-stats{border-top:1px solid #e5e7eb;background:#f8fafc;color:#64748b;font-size:.75rem;padding:.45rem .8rem}.yaml-diff-editor-header{display:flex;justify-content:space-between;align-items:center;padding:1rem;background:#f8f9fa;border-bottom:1px solid #e0e0e0}.yaml-diff-editor-title-block{display:flex;align-items:center;gap:.6rem}.yaml-diff-editor-label{font-weight:600;color:#495057;font-size:1rem}.yaml-diff-loading-chip{background:#e0e7ff;color:#3730a3;font-size:.75rem;font-weight:600;padding:.2rem .5rem;border-radius:999px}.yaml-diff-editor-source-controls{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;justify-content:flex-end}.yaml-diff-source-select{min-width:170px;border:1px solid #cbd5e1;background:#fff;color:#334155;border-radius:6px;padding:.42rem .55rem;font-size:.82rem;line-height:1.2}.yaml-diff-source-select:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f626}.yaml-diff-source-select:disabled{background:#f1f5f9;color:#94a3b8;cursor:not-allowed}.yaml-diff-source-error{margin-top:.8rem;background:#fef2f2;color:#b91c1c;border:1px solid #fecaca;border-radius:8px;padding:.6rem .8rem;font-size:.85rem;font-weight:600}.yaml-diff-current-source-row{margin-top:.8rem;display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}.yaml-diff-current-source-label{font-size:.85rem;font-weight:600;color:#334155;background:#e2e8f0;border:1px solid #cbd5e1;border-radius:999px;padding:.35rem .65rem}.yaml-diff-paste-btn{background:#17a2b8;color:#fff;border:none;padding:.5rem .75rem;border-radius:4px;font-size:.875rem;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:.25rem}.yaml-diff-paste-btn:hover{background:#138496;transform:translateY(-1px)}.yaml-diff-unified-view{flex:1;overflow:hidden}.yaml-diff-summary-section{padding:1rem;background:#f8f9fa;border-top:1px solid #e0e0e0;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem}.yaml-diff-summary-stats{display:flex;gap:1rem;flex-wrap:wrap}.yaml-diff-stat{padding:.5rem .75rem;border-radius:6px;font-size:.875rem;font-weight:500;display:flex;align-items:center;gap:.25rem}.yaml-diff-stat.yaml-diff-stat-added{background:#28a7451a;color:#28a745;border:1px solid rgba(40,167,69,.3)}.yaml-diff-stat.yaml-diff-stat-deleted{background:#dc35451a;color:#dc3545;border:1px solid rgba(220,53,69,.3)}.yaml-diff-stat.yaml-diff-stat-modified{background:#ffc1071a;color:#ffc107;border:1px solid rgba(255,193,7,.3)}.yaml-diff-copy-btn{background:#28a745;color:#fff;border:none;padding:.5rem .75rem;border-radius:4px;font-size:.875rem;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:.25rem}.yaml-diff-copy-btn:hover{background:#1e7e34;transform:translateY(-1px)}@media(max-width:1024px){.yaml-diff-header-section{padding:1rem}.yaml-diff-main-title{font-size:1.75rem}.yaml-diff-controls-container{flex-direction:column;align-items:stretch}.yaml-diff-action-controls{justify-content:center}}@media(max-width:768px){.yaml-diff-header-section{padding:.75rem}.yaml-diff-back-btn{padding:.4rem .8rem;font-size:.8rem}.yaml-diff-main-title{font-size:1.5rem}.yaml-diff-subtitle{font-size:1rem}.yaml-diff-content-area{margin:.5rem}.yaml-diff-editors-container{grid-template-columns:1fr;grid-template-rows:1fr 1fr;min-height:min(62vh,calc(100vh - 260px));height:min(62vh,calc(100vh - 260px))}.yaml-diff-side-by-side-workspace{padding:.5rem;gap:.5rem}.yaml-diff-editors-container-with-result{flex:0 0 auto;min-height:min(34vh,calc(100vh - 420px));height:min(34vh,calc(100vh - 420px))}.yaml-diff-side-result-panel{min-height:90vh;height:min(44vh,calc(100vh - 320px))}.yaml-diff-view-controls{width:100%;justify-content:center}.yaml-diff-view-toggle{flex:1;text-align:center}.yaml-diff-action-controls{flex-wrap:wrap;gap:.5rem}.yaml-diff-btn{padding:.5rem .75rem;font-size:.8rem}.yaml-diff-editor-header{padding:.75rem;flex-direction:column;align-items:stretch;gap:.6rem}.yaml-diff-editor-label{font-size:.875rem}.yaml-diff-plain-editor{padding:.75rem;font-size:.8rem}.yaml-diff-plain-editor-stats{font-size:.72rem;padding:.4rem .6rem}.yaml-diff-editor-source-controls{justify-content:flex-start}.yaml-diff-source-select{min-width:145px;flex:1}.yaml-diff-current-source-row{justify-content:center}.yaml-diff-current-source-label{width:100%;text-align:center}.yaml-diff-paste-btn{padding:.4rem .6rem;font-size:.8rem}.yaml-diff-summary-section{flex-direction:column;align-items:stretch;gap:.75rem}.yaml-diff-summary-stats{justify-content:center;gap:.5rem}.yaml-diff-stat{padding:.4rem .6rem;font-size:.8rem}.yaml-diff-copy-btn{align-self:center;padding:.4rem .6rem;font-size:.8rem}}@media(max-width:480px){.yaml-diff-header-section{padding:.5rem}.yaml-diff-main-title{font-size:1.25rem}.yaml-diff-subtitle{font-size:.9rem}.yaml-diff-summary-stats{flex-direction:column;gap:.25rem}.yaml-diff-stat{text-align:center}}[data-theme=dark] .yaml-diff-compare-page{background:#11111b}[data-theme=dark] .yaml-diff-header-section{background:#1e1e2e;border-bottom-color:#45475a;box-shadow:0 2px 4px #0000004d}[data-theme=dark] .yaml-diff-back-btn{background:#45475a;color:#cdd6f4}[data-theme=dark] .yaml-diff-back-btn:hover{background:#585b70;box-shadow:0 2px 4px #0000004d}[data-theme=dark] .yaml-diff-main-title{color:#cdd6f4}[data-theme=dark] .yaml-diff-subtitle{color:#a6adc8}[data-theme=dark] .yaml-diff-view-controls{background:#181825;border-color:#45475a}[data-theme=dark] .yaml-diff-view-toggle{color:#a6adc8}[data-theme=dark] .yaml-diff-view-toggle:hover{background:#89b4fa1a;color:#89b4fa}[data-theme=dark] .yaml-diff-view-toggle.yaml-diff-active{background:#89b4fa;color:#1e1e2e;box-shadow:0 2px 4px #89b4fa4d}[data-theme=dark] .yaml-diff-btn-primary{background:#89b4fa;color:#1e1e2e}[data-theme=dark] .yaml-diff-btn-primary:hover:not(:disabled){background:#a5c8ff;box-shadow:0 4px 8px #89b4fa4d}[data-theme=dark] .yaml-diff-btn-primary:disabled{background:#45475a;color:#6c7086}[data-theme=dark] .yaml-diff-btn-secondary{background:#45475a;color:#cdd6f4}[data-theme=dark] .yaml-diff-btn-secondary:hover{background:#585b70;box-shadow:0 4px 8px #0000004d}[data-theme=dark] .yaml-diff-content-area{background:#1e1e2e;box-shadow:0 4px 6px #0000004d}[data-theme=dark] .yaml-diff-editors-container{background:#45475a}[data-theme=dark] .yaml-diff-editor-panel{background:#1e1e2e}[data-theme=dark] .yaml-diff-editor-header{background:#181825;border-bottom-color:#45475a}[data-theme=dark] .yaml-diff-editor-label{color:#cdd6f4}[data-theme=dark] .yaml-diff-loading-chip{background:#89b4fa26;color:#89b4fa}[data-theme=dark] .yaml-diff-source-select{background:#313244;border-color:#45475a;color:#cdd6f4}[data-theme=dark] .yaml-diff-source-select:focus{border-color:#89b4fa;box-shadow:0 0 0 2px #89b4fa26}[data-theme=dark] .yaml-diff-source-select:disabled{background:#11111b;color:#6c7086}[data-theme=dark] .yaml-diff-source-error{background:#f38ba81a;border-color:#f38ba84d;color:#f38ba8}[data-theme=dark] .yaml-diff-current-source-label{background:#313244;border-color:#45475a;color:#cdd6f4}[data-theme=dark] .yaml-diff-plain-editor-wrap{background:#1e1e2e}[data-theme=dark] .yaml-diff-plain-editor{background:#1e1e2e;color:#cdd6f4}[data-theme=dark] .yaml-diff-plain-editor::placeholder{color:#6c7086}[data-theme=dark] .yaml-diff-plain-editor-stats{background:#181825;border-top-color:#45475a;color:#a6adc8}[data-theme=dark] .yaml-diff-side-result-panel{background:#1e1e2e;border-color:#45475a}[data-theme=dark] .yaml-diff-side-result-header{background:#181825;border-bottom-color:#45475a;color:#cdd6f4}[data-theme=dark] .yaml-diff-summary-section{background:#181825;border-top-color:#45475a}[data-theme=dark] .yaml-diff-stat.yaml-diff-stat-added{background:#a6e3a11a;color:#a6e3a1;border-color:#a6e3a14d}[data-theme=dark] .yaml-diff-stat.yaml-diff-stat-deleted{background:#f38ba81a;color:#f38ba8;border-color:#f38ba84d}[data-theme=dark] .yaml-diff-stat.yaml-diff-stat-modified{background:#f9e2af1a;color:#f9e2af;border-color:#f9e2af4d}[data-theme=dark] .yaml-diff-paste-btn{background:#89dceb;color:#1e1e2e}[data-theme=dark] .yaml-diff-paste-btn:hover{background:#a6e3f5}[data-theme=dark] .yaml-diff-copy-btn{background:#a6e3a1;color:#1e1e2e}[data-theme=dark] .yaml-diff-copy-btn:hover{background:#b8f0b3}[data-theme=dark] .yaml-diff-side-by-side-workspace::-webkit-scrollbar-track,[data-theme=dark] .yaml-diff-plain-editor::-webkit-scrollbar-track{background:#181825}[data-theme=dark] .yaml-diff-side-by-side-workspace::-webkit-scrollbar-thumb,[data-theme=dark] .yaml-diff-plain-editor::-webkit-scrollbar-thumb{background:#585b70;border-color:#181825}[data-theme=dark] .yaml-diff-side-by-side-workspace::-webkit-scrollbar-thumb:hover,[data-theme=dark] .yaml-diff-plain-editor::-webkit-scrollbar-thumb:hover{background:#a6adc8}.readme-container{padding:24px;max-width:900px;margin:0 auto;background:#fff;border-radius:8px;box-shadow:0 6px 18px #0a0a0a0f;color:#0f172a;line-height:1.6;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial}.readme-container h1,.readme-container h2,.readme-container h3{color:#0b1220;margin-top:1.2em}.readme-container pre{background:#0f172a;color:#e6eef8;padding:12px;border-radius:6px;overflow:auto}.readme-container code{background:#0f172a0f;padding:2px 6px;border-radius:4px;font-family:Menlo,Monaco,Courier New,monospace}.readme-loading,.readme-error{padding:48px 24px;text-align:center;color:#475569;margin:20px;background:#fff;border-radius:8px;box-shadow:0 6px 18px #0a0a0a0f}.readme-error{color:#dc2626;border:1px solid #fecaca;background:#fef2f2}.readme-error h3{margin-top:0;margin-bottom:12px;color:#dc2626}.readme-error p{margin:8px 0}.readme-loading{display:flex;flex-direction:column;align-items:center;gap:16px}.loading-spinner{width:32px;height:32px;border:3px solid #e2e8f0;border-top:3px solid #3b82f6;border-radius:50%;animation:spin 1s linear infinite}.docs-container{width:100%;height:100%;display:flex;flex-direction:column;background:linear-gradient(135deg,#f5f7fa,#c3cfe2);overflow:hidden}.docs-container .diagram-header{padding:15px 20px;background:#fffffff2;box-shadow:0 2px 10px #0000001a;display:flex;align-items:center;gap:20px;z-index:10;flex-wrap:wrap;flex-shrink:0}.docs-container .readme-container{flex:1;overflow-y:auto;margin:20px;padding:24px;max-width:none;background:#fff;border-radius:8px;box-shadow:0 6px 18px #0a0a0a0f;color:#0f172a;line-height:1.6;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial}.docs-container .subtitle{margin-top:8px;margin-bottom:12px;color:#475569;font-size:.95em}[data-theme=dark] .readme-container{background:#1e1e2e;color:#cdd6f4;box-shadow:0 6px 18px #0000004d}[data-theme=dark] .readme-container h1,[data-theme=dark] .readme-container h2,[data-theme=dark] .readme-container h3{color:#cdd6f4}[data-theme=dark] .readme-container pre{background:#11111b;color:#cdd6f4}[data-theme=dark] .readme-container code{background:#cdd6f41a}[data-theme=dark] .readme-loading{background:#1e1e2e;color:#a6adc8;box-shadow:0 6px 18px #0000004d}[data-theme=dark] .readme-error{background:#f38ba81a;border-color:#f38ba84d;color:#f38ba8}[data-theme=dark] .readme-error h3{color:#f38ba8}[data-theme=dark] .docs-container{background:linear-gradient(135deg,#11111b,#1e1e2e)}[data-theme=dark] .docs-container .diagram-header{background:#1e1e2ef2;box-shadow:0 2px 10px #0000004d}[data-theme=dark] .docs-container .readme-container{background:#1e1e2e;color:#cdd6f4;box-shadow:0 6px 18px #0000004d}[data-theme=dark] .docs-container .subtitle{color:#a6adc8}.profile-container{min-height:100vh;background:radial-gradient(circle at top left,rgba(10,132,255,.16),transparent 30%),radial-gradient(circle at top right,rgba(18,194,233,.18),transparent 28%),linear-gradient(180deg,#f4f9ff,#ecf3fb 52%,#e6edf7);font-family:Segoe UI,Trebuchet MS,sans-serif}.profile-header{display:flex;align-items:center;justify-content:space-between;padding:20px 30px;background:#ffffffd1;border-bottom:1px solid rgba(148,163,184,.2);box-shadow:0 14px 30px #0f172a14;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);position:sticky;top:0;z-index:10}.profile-header h2{margin:0;color:#2c3e50;font-weight:600}.back-btn{background:linear-gradient(135deg,#0f62fe,#1c7ed6);color:#fff;border:none;padding:10px 16px;border-radius:999px;cursor:pointer;font-size:14px;font-weight:500;transition:all .2s ease;box-shadow:0 12px 24px #0f62fe33}.back-btn:hover{background:linear-gradient(135deg,#0b54de,#1864ab);transform:translateY(-1px)}.profile-actions{display:flex;align-items:center;justify-content:flex-end;min-width:180px}.logout-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;min-width:128px;background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;border:none;box-shadow:0 12px 24px #dc26262e;padding:10px 18px;border-radius:999px;cursor:pointer;font-size:14px;font-weight:500;white-space:nowrap;transition:all .2s ease}.logout-btn:hover{background:linear-gradient(135deg,#dc2626,#b91c1c);transform:translateY(-1px)}.profile-hero-card{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:24px;padding:30px;margin-bottom:24px;border-radius:28px;background:linear-gradient(135deg,#fffffff5,#f0f8ffeb),linear-gradient(135deg,#dbeafe,#e0f2fe);border:1px solid rgba(148,163,184,.18);box-shadow:0 24px 60px #0f172a17}.profile-hero-main{display:flex;align-items:center;gap:22px}.profile-avatar-badge{width:88px;height:88px;border-radius:24px;display:grid;place-items:center;background:linear-gradient(135deg,#0f62fe,#22c55e);color:#fff;font-size:30px;font-weight:700;letter-spacing:.08em;box-shadow:0 20px 38px #0f62fe38}.profile-hero-copy h1{margin:0;font-size:clamp(2rem,4vw,3rem);line-height:1;color:#0f172a}.profile-eyebrow{display:inline-flex;margin-bottom:10px;padding:6px 12px;border-radius:999px;background:#0f62fe14;color:#1d4ed8;font-size:.78rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.profile-hero-copy p{margin:10px 0 0;max-width:680px;color:#334155;font-size:1rem;line-height:1.6}.profile-hero-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.profile-hero-meta span{padding:8px 12px;border-radius:999px;background:#fffc;border:1px solid rgba(148,163,184,.2);color:#475569;font-size:.92rem}.profile-hero-side{display:flex;flex-direction:column;gap:16px;justify-content:center}.hero-highlight-card,.overview-stat-card,.profile-summary-card,.analytics-card,.security-status-card{background:#ffffffdb;border:1px solid rgba(148,163,184,.18);border-radius:22px;box-shadow:0 18px 40px #0f172a12}.hero-highlight-card{padding:20px}.hero-highlight-label,.overview-stat-label{display:block;margin-bottom:10px;color:#64748b;font-size:.78rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.hero-highlight-card strong,.overview-stat-card strong{display:block;color:#0f172a;font-size:1.3rem}.hero-highlight-card p,.overview-stat-card p{margin:10px 0 0;color:#475569;line-height:1.5}.hero-quick-actions{display:flex;gap:12px}.hero-action-btn{flex:1;padding:14px 18px;border:none;border-radius:16px;background:linear-gradient(135deg,#0f62fe,#2563eb);color:#fff;font-weight:600;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease;box-shadow:0 16px 28px #0f62fe2e}.hero-action-btn.secondary{background:#fff;color:#0f172a;border:1px solid rgba(148,163,184,.24);box-shadow:none}.hero-action-btn:hover{transform:translateY(-1px)}.profile-overview-strip,.profile-overview-grid,.analytics-overview-grid,.security-status-grid{display:grid;gap:20px}.profile-overview-strip{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:24px}.overview-stat-card{padding:22px}.profile-content{max-width:1200px;margin:0 auto;padding:32px 30px 48px}.profile-tabs{display:flex;background:#fff;border-radius:8px 8px 0 0;background:#f8fafccc;overflow:hidden}.tab{flex:1;padding:16px 24px;background:#f8f9fa;border:none;cursor:pointer;font-size:16px;font-weight:500;color:#6c757d;transition:all .3s ease;border-bottom:3px solid transparent}.tab:hover{background:#e9ecef;color:#495057}.tab.active{background:#fff;color:#2c3e50;border-bottom-color:#3498db}.tab-content{background:#ffffffeb;border-radius:0 0 22px 22px;box-shadow:0 18px 40px #0f172a14;padding:30px;min-height:500px}.profile-tab{display:flex;flex-direction:column;gap:30px}.profile-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-info-card,.stats-card,.recent-files-card,.popular-files-card,.password-card,.danger-zone-card{background:#f8fafcc2;border-radius:22px;padding:24px;border:1px solid rgba(226,232,240,.9)}.profile-summary-card,.analytics-card,.security-status-card{padding:24px}.emphasis-card{background:linear-gradient(135deg,#eff6fff2,#e0f2fef2)}.card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:12px;border-bottom:2px solid #e9ecef}.card-header h3{margin:0;color:#2c3e50;font-weight:600;font-size:18px}.profile-summary-list,.highlight-stack{display:flex;flex-direction:column;gap:14px}.summary-pill,.highlight-row,.security-status-item{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 16px;border-radius:16px;background:#fff;border:1px solid rgba(226,232,240,.9)}.summary-pill span,.highlight-row span,.security-status-item span{color:#64748b;font-size:.94rem}.summary-pill strong,.highlight-row strong,.security-status-item strong{color:#0f172a;text-align:right}.summary-pill.accent{background:linear-gradient(135deg,#eff6ff,#ecfeff)}.profile-summary-note{margin:16px 0 0;color:#475569;line-height:1.6}.sharing-meter{display:flex;flex-direction:column;gap:12px}.sharing-meter-track{height:14px;border-radius:999px;background:#e2e8f0e6;overflow:hidden}.sharing-meter-fill{height:100%;border-radius:inherit;background:linear-gradient(90deg,#3b82f6,#06b6d4)}.sharing-meter-labels{display:flex;justify-content:space-between;align-items:center;color:#64748b;font-size:.92rem}.sharing-meter-labels strong{color:#0f172a}.edit-btn{background:#3498db;color:#fff;border:none;padding:8px 16px;border-radius:6px;cursor:pointer;font-size:14px;transition:all .2s ease}.edit-btn:hover{background:#2980b9}.edit-btn.cancel{background:#6c757d}.edit-btn.cancel:hover{background:#5a6268}.profile-display{display:flex;flex-direction:column;gap:20px}.profile-field{display:flex;flex-direction:column;gap:6px}.profile-field label{font-weight:600;color:#000!important;font-size:14px;text-transform:uppercase;letter-spacing:.5px}.field-value{font-size:16px;color:#2c3e50;padding:12px;background:#fff;border-radius:6px;border:1px solid #e9ecef}.profile-edit{display:flex;flex-direction:column;gap:20px}.form-group{display:flex;flex-direction:column;gap:8px}.form-group label{font-weight:600;color:#000!important;font-size:14px}.form-group input{padding:12px;border:2px solid #e9ecef;border-radius:6px;font-size:16px;background:#fff;color:#2c3e50;transition:border-color .2s ease}.form-group input:focus{outline:none;border-color:#3498db;background:#fff}.form-group input::placeholder{color:#6c757d}.form-group input[type=password]{background:#fff!important;color:#2c3e50!important;font-family:monospace;font-weight:500}.form-group input[type=password]:focus{background:#fff!important;color:#2c3e50!important}.password-form input,.delete-confirm input{background:#fff!important;color:#2c3e50!important;border:2px solid #dee2e6!important;font-weight:500}.password-form input:focus,.delete-confirm input:focus{border-color:#3498db!important;box-shadow:0 0 0 .2rem #3498db40}.form-group input[type=text],.form-group input[type=email]{background:#fff!important;color:#2c3e50!important;font-weight:500}.profile-container .form-group label,.profile-container .profile-field label,.password-form label,.delete-confirm label{color:#000!important;font-weight:600!important}.form-actions,.delete-actions{display:flex;gap:12px;margin-top:10px}.save-btn,.change-password-btn,.confirm-delete-btn{background:#27ae60;color:#fff;border:none;padding:12px 24px;border-radius:6px;cursor:pointer;font-size:16px;font-weight:500;transition:all .2s ease}.save-btn:hover,.change-password-btn:hover{background:#229954;transform:translateY(-1px)}.confirm-delete-btn{background:#e74c3c}.confirm-delete-btn:hover{background:#c0392b}.confirm-delete-btn:disabled{background:#bdc3c7;cursor:not-allowed;transform:none}.cancel-delete-btn{background:#6c757d;color:#fff;border:none;padding:12px 24px;border-radius:6px;cursor:pointer;font-size:16px;font-weight:500;transition:all .2s ease}.cancel-delete-btn:hover{background:#5a6268}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px}.stat-item{text-align:center;padding:20px;background:#fff;border-radius:8px;border:1px solid #e9ecef;transition:transform .2s ease}.stat-item:hover{transform:translateY(-2px)}.stat-value{font-size:32px;font-weight:700;color:#3498db;margin-bottom:8px}.stat-label{font-size:14px;color:#6c757d;font-weight:500;text-transform:uppercase;letter-spacing:.5px}.dashboard-tab{display:flex;flex-direction:column;gap:30px}.analytics-overview-grid{grid-template-columns:minmax(0,2fr) minmax(280px,1fr)}.wide-card{min-width:0}.activity-chart{display:grid;grid-template-columns:repeat(auto-fit,minmax(56px,1fr));gap:16px;align-items:end;min-height:220px;padding-top:12px}.activity-bar-group{display:flex;flex-direction:column;align-items:center;gap:10px}.activity-bar-track{width:100%;height:150px;display:flex;align-items:end;padding:8px;border-radius:18px;background:linear-gradient(180deg,#dbeafe8c,#f0f9ffe6)}.activity-bar{width:100%;border-radius:12px;background:linear-gradient(180deg,#38bdf8,#2563eb);box-shadow:0 12px 24px #2563eb2e}.activity-bar-group strong{color:#0f172a}.activity-bar-group span{color:#64748b;font-size:.86rem}.files-list{display:flex;flex-direction:column;gap:16px}.pagination-controls{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:8px}.pagination-btn{border:1px solid #cbd5e1;background:#fff;color:#0f172a;border-radius:10px;padding:8px 12px;font-size:.9rem;cursor:pointer}.pagination-btn:disabled{opacity:.45;cursor:not-allowed}.pagination-status{color:#475569;font-size:.9rem}.compact-files-list .file-item{padding:14px 16px}.file-item{background:#fff;border:1px solid #e9ecef;border-radius:16px;padding:16px;transition:all .2s ease}.file-item.clickable{cursor:pointer}.file-item.clickable:hover{border-color:#3498db;transform:translateY(-2px);box-shadow:0 4px 12px #3498db26;background:#f8fffe}.file-item:hover{border-color:#3498db;transform:translateY(-1px);box-shadow:0 2px 8px #3498db1a}.file-title{font-size:16px;font-weight:600;color:#2c3e50;margin-bottom:8px}.file-meta{display:flex;flex-wrap:wrap;gap:12px;align-items:center;font-size:14px;color:#6c757d}.file-desc{color:#495057}.file-visibility{padding:4px 8px;border-radius:4px;font-size:12px;font-weight:500}.file-visibility.public{background:#d4edda;color:#155724}.file-visibility.private{background:#f8d7da;color:#721c24}.file-views{font-weight:500}.security-tab{display:flex;flex-direction:column;gap:30px}.security-status-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.password-form{display:flex;flex-direction:column;gap:20px;max-width:400px}.danger-zone-card{border-color:#dc3545;background:linear-gradient(135deg,#fef2f2fa,#fee2e2eb)}.danger-zone-card .card-header{border-bottom-color:#dc3545}.danger-zone-card h3,.danger-content{color:#721c24}.danger-content p{margin-bottom:20px;line-height:1.6}.delete-account-btn{background:#dc3545;color:#fff;border:none;padding:12px 24px;border-radius:6px;cursor:pointer;font-size:16px;font-weight:500;transition:all .2s ease}.delete-account-btn:hover{background:#c82333;transform:translateY(-1px)}.delete-confirm{background:#fff;padding:20px;border-radius:16px;border:1px solid #dc3545}.loading-state,.error-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;text-align:center}.profile-spinner{font-size:48px;animation:spin 1s linear infinite;margin-bottom:20px;color:#3498db}.retry-btn{background:#3498db;color:#fff;border:none;padding:12px 24px;border-radius:6px;cursor:pointer;font-size:16px;margin-top:20px;transition:all .2s ease}.retry-btn:hover{background:#2980b9}.empty-state{text-align:center;padding:40px 20px;color:#6c757d}.empty-state.left-align{text-align:left;padding:10px 0 0}@media(max-width:768px){.profile-content{padding:20px 15px}.profile-hero-card,.profile-overview-strip,.profile-overview-grid,.analytics-overview-grid,.security-status-grid{grid-template-columns:1fr}.profile-hero-card{padding:22px}.profile-hero-main{flex-direction:column;align-items:flex-start}.hero-quick-actions{flex-direction:column}.profile-header{padding:15px 20px;flex-direction:column;gap:15px;text-align:center}.profile-actions{width:100%;justify-content:center;min-width:0}.logout-btn{width:min(280px,100%)}.profile-tabs{flex-direction:column}.tab{padding:12px 16px}.tab-content{padding:20px 15px}.stats-grid{grid-template-columns:repeat(2,1fr);gap:15px}.stat-item{padding:15px}.stat-value{font-size:24px}.file-meta{flex-direction:column;align-items:flex-start;gap:8px}.summary-pill,.highlight-row,.security-status-item{flex-direction:column;align-items:flex-start}.form-actions,.delete-actions{flex-direction:column}.password-form{max-width:100%}}@media(max-width:480px){.stats-grid{grid-template-columns:1fr}.profile-hero-meta{flex-direction:column;align-items:flex-start}.profile-header h2{font-size:20px}.tab{font-size:14px}}.profile-container label,.profile-container .form-group label,.profile-container .profile-field label,.profile-container .password-form label,.profile-container .delete-confirm label{color:#000!important;font-weight:600!important}[data-theme=dark] .profile-container{background:radial-gradient(circle at top left,rgba(137,180,250,.12),transparent 30%),radial-gradient(circle at top right,rgba(137,220,235,.12),transparent 28%),linear-gradient(180deg,#11111b,#181825 52%,#1e1e2e)}[data-theme=dark] .profile-header{background:#1e1e2ed1;border-bottom-color:#45475a66;box-shadow:0 14px 30px #00000040}[data-theme=dark] .profile-header h2{color:#cdd6f4}[data-theme=dark] .profile-hero-card{background:linear-gradient(135deg,#1e1e2ef5,#181825eb);border-color:#45475a4d;box-shadow:0 24px 60px #0000004d}[data-theme=dark] .profile-hero-copy h1{color:#cdd6f4}[data-theme=dark] .profile-eyebrow{background:#89b4fa1f;color:#89b4fa}[data-theme=dark] .profile-hero-copy p{color:#a6adc8}[data-theme=dark] .profile-hero-meta span{background:#313244cc;border-color:#45475a4d;color:#a6adc8}[data-theme=dark] .hero-highlight-card,[data-theme=dark] .overview-stat-card,[data-theme=dark] .profile-summary-card,[data-theme=dark] .analytics-card,[data-theme=dark] .security-status-card{background:#1e1e2edb;border-color:#45475a4d;box-shadow:0 18px 40px #0003}[data-theme=dark] .hero-highlight-label,[data-theme=dark] .overview-stat-label{color:#a6adc8}[data-theme=dark] .hero-highlight-card strong,[data-theme=dark] .overview-stat-card strong{color:#cdd6f4}[data-theme=dark] .hero-highlight-card p,[data-theme=dark] .overview-stat-card p{color:#a6adc8}[data-theme=dark] .hero-action-btn.secondary{background:#313244;color:#cdd6f4;border-color:#45475a66}[data-theme=dark] .profile-tabs{background:#181825cc}[data-theme=dark] .tab{background:#181825;color:#a6adc8}[data-theme=dark] .tab:hover{background:#313244;color:#cdd6f4}[data-theme=dark] .tab.active{background:#1e1e2e;color:#cdd6f4;border-bottom-color:#89b4fa}[data-theme=dark] .tab-content{background:#1e1e2eeb;box-shadow:0 18px 40px #00000040}[data-theme=dark] .profile-info-card,[data-theme=dark] .stats-card,[data-theme=dark] .recent-files-card,[data-theme=dark] .popular-files-card,[data-theme=dark] .password-card,[data-theme=dark] .danger-zone-card{background:#181825c2;border-color:#45475a80}[data-theme=dark] .emphasis-card{background:linear-gradient(135deg,#89b4fa14,#89dceb14)}[data-theme=dark] .card-header{border-bottom-color:#45475a}[data-theme=dark] .card-header h3{color:#cdd6f4}[data-theme=dark] .summary-pill,[data-theme=dark] .highlight-row,[data-theme=dark] .security-status-item{background:#1e1e2e;border-color:#45475a80}[data-theme=dark] .summary-pill span,[data-theme=dark] .highlight-row span,[data-theme=dark] .security-status-item span{color:#a6adc8}[data-theme=dark] .summary-pill strong,[data-theme=dark] .highlight-row strong,[data-theme=dark] .security-status-item strong{color:#cdd6f4}[data-theme=dark] .summary-pill.accent{background:linear-gradient(135deg,#89b4fa14,#89dceb14)}[data-theme=dark] .profile-summary-note{color:#a6adc8}[data-theme=dark] .sharing-meter-track{background:#313244}[data-theme=dark] .sharing-meter-labels{color:#a6adc8}[data-theme=dark] .sharing-meter-labels strong{color:#cdd6f4}[data-theme=dark] .field-value{color:#cdd6f4;background:#181825;border-color:#45475a}[data-theme=dark] .profile-container .form-group label,[data-theme=dark] .profile-container .profile-field label,[data-theme=dark] .profile-container .password-form label,[data-theme=dark] .profile-container .delete-confirm label,[data-theme=dark] .profile-container label{color:#cdd6f4!important}[data-theme=dark] .form-group input{background:#181825!important;border-color:#45475a!important;color:#cdd6f4!important}[data-theme=dark] .form-group input:focus{border-color:#89b4fa!important;background:#181825!important}[data-theme=dark] .form-group input[type=password]{background:#181825!important;color:#cdd6f4!important}[data-theme=dark] .password-form input,[data-theme=dark] .delete-confirm input{background:#181825!important;color:#cdd6f4!important;border-color:#45475a!important}[data-theme=dark] .stat-item{background:#1e1e2e;border-color:#45475a}[data-theme=dark] .stat-value{color:#89b4fa}[data-theme=dark] .stat-label{color:#a6adc8}[data-theme=dark] .file-item{background:#1e1e2e;border-color:#45475a}[data-theme=dark] .file-item:hover{border-color:#89b4fa;background:#181825}[data-theme=dark] .file-title{color:#cdd6f4}[data-theme=dark] .file-meta,[data-theme=dark] .file-desc{color:#a6adc8}[data-theme=dark] .file-visibility.public{background:#a6e3a126;color:#a6e3a1}[data-theme=dark] .file-visibility.private{background:#f38ba826;color:#f38ba8}[data-theme=dark] .pagination-btn{background:#313244;border-color:#45475a;color:#cdd6f4}[data-theme=dark] .pagination-status{color:#a6adc8}[data-theme=dark] .activity-bar-track{background:linear-gradient(180deg,#3132448c,#181825e6)}[data-theme=dark] .activity-bar-group strong{color:#cdd6f4}[data-theme=dark] .activity-bar-group span{color:#a6adc8}[data-theme=dark] .danger-zone-card{border-color:#f38ba8;background:linear-gradient(135deg,#f38ba814,#f38ba80a)}[data-theme=dark] .danger-zone-card .card-header{border-bottom-color:#f38ba84d}[data-theme=dark] .danger-zone-card h3,[data-theme=dark] .danger-content{color:#f38ba8}[data-theme=dark] .delete-confirm{background:#181825;border-color:#f38ba8}[data-theme=dark] .loading-state,[data-theme=dark] .error-state,[data-theme=dark] .empty-state{color:#a6adc8}.auth-modal-overlay{position:fixed;inset:0;background-color:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000}.auth-modal{background:#fff!important;border-radius:8px;max-width:400px;width:90%;max-height:90vh;overflow-y:auto;position:relative;box-shadow:0 4px 20px #00000026}.auth-modal-close{position:absolute;top:15px;right:15px;background:none;border:none;font-size:24px;cursor:pointer;color:#666!important;padding:0;width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background-color .2s}.auth-modal-close:hover{background-color:#f0f0f0}.auth-form{padding:30px}.auth-form h2{text-align:center;margin-bottom:30px;color:#333!important;font-size:24px}.form-group{margin-bottom:20px}.form-group label{display:block;margin-bottom:5px;font-weight:500;color:#333!important}.form-group input{width:100%;padding:12px;border:1px solid #ddd;border-radius:4px;font-size:16px;transition:border-color .2s;box-sizing:border-box;background-color:#fff!important;color:#333!important}.form-group input:focus{outline:none;border-color:#4caf50;box-shadow:0 0 0 2px #4caf5033}.form-group input:disabled{background-color:#f5f5f5;cursor:not-allowed}.auth-button{width:100%;padding:12px;background-color:#4caf50;color:#fff;border:none;border-radius:4px;font-size:16px;font-weight:500;cursor:pointer;transition:background-color .2s}.auth-button:hover:not(:disabled){background-color:#45a049}.auth-button:disabled{background-color:#ccc;cursor:not-allowed}.auth-error{background-color:#ffebee;color:#c62828;padding:10px;border-radius:4px;margin-bottom:20px;border:1px solid #ffcdd2;font-size:14px}.auth-toggle{text-align:center;margin-top:20px;color:#666!important}.link-button{background:none;border:none;color:#4caf50;cursor:pointer;text-decoration:underline;font-size:inherit;padding:0}.link-button:hover{color:#45a049}[data-theme=dark] .auth-modal-overlay{background-color:#000000b3}[data-theme=dark] .auth-modal{background:#1e1e2e!important;color:#cdd6f4!important;box-shadow:0 4px 20px #0006}[data-theme=dark] .auth-form h2,[data-theme=dark] .form-group label{color:#cdd6f4!important}[data-theme=dark] .form-group input{background-color:#181825!important;border-color:#45475a!important;color:#cdd6f4!important}[data-theme=dark] .form-group input:focus{border-color:#a6e3a1!important;box-shadow:0 0 0 2px #a6e3a133}[data-theme=dark] .form-group input:disabled{background-color:#313244!important}[data-theme=dark] .auth-modal-close{color:#a6adc8!important}[data-theme=dark] .auth-modal-close:hover{background-color:#313244!important}[data-theme=dark] .auth-button:disabled{background-color:#45475a}[data-theme=dark] .auth-error{background-color:#302028!important;color:#f38ba8!important;border-color:#45283a!important}[data-theme=dark] .auth-toggle{color:#a6adc8!important}[data-theme=dark] .link-button{color:#a6e3a1}[data-theme=dark] .link-button:hover{color:#94e2d5}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;overflow-y:auto;overflow-x:hidden;transition:background-color .3s ease,color .3s ease}[data-theme=dark] body{background:#11111b;color:#cdd6f4}.drop-overlay{position:fixed;inset:0;background:#1976d226;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:9999;display:flex;align-items:center;justify-content:center;pointer-events:none;border:3px dashed #1976d2}.drop-overlay-content{display:flex;flex-direction:column;align-items:center;gap:12px;padding:32px 48px;background:#fffffff2;border-radius:16px;box-shadow:0 8px 32px #00000026;font-size:16px;font-weight:600;color:#1976d2}[data-theme=dark] .drop-overlay-content{background:#1e1e2ef2;color:#89b4fa}.drop-icon{font-size:40px}.app{width:100vw;min-height:100vh;display:flex;flex-direction:column}.editor-container{width:100%;min-height:100vh;display:flex;flex-direction:column;background:linear-gradient(135deg,#f5f7fa,#c3cfe2)}[data-theme=dark] .editor-container{background:linear-gradient(135deg,#11111b,#1e1e2e)}.compact-header{padding:0!important;background:#1e293b!important;box-shadow:0 1px 4px #00000040!important}.header-top-bar{display:flex;align-items:center;justify-content:space-between;height:48px;padding:0 16px;gap:12px}.header-left{display:flex;align-items:center;gap:8px;min-width:0}.header-title{font-weight:700;font-size:.95em;color:#e2e8f0;white-space:nowrap}.header-file-tag{font-size:.78em;color:#94a3b8;background:#334155;padding:2px 8px;border-radius:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}.header-center{display:flex;align-items:center}.header-right{display:flex;align-items:center;gap:8px}.header-right .user-name{display:inline-flex;align-items:center;height:34px;line-height:1}.header-right .clickable-username{color:#e2e8f0;font-size:.85em;font-weight:500}.header-right .clickable-username:hover{color:#38bdf8}.menu-group{display:flex;align-items:center;gap:2px}.menu-btn{background:transparent;color:#cbd5e1;border:none;padding:6px 14px;font-size:.85em;font-weight:500;border-radius:6px;cursor:pointer;transition:background .15s,color .15s;white-space:nowrap}.menu-btn:hover{background:#334155;color:#f1f5f9}.menu-btn.primary-btn{background:#3b82f6;color:#fff;font-weight:600}.menu-btn.primary-btn:hover{background:#2563eb}.login-menu-btn{background:#059669!important;color:#fff!important;font-weight:600}.login-menu-btn:hover{background:#047857!important}.compact-icon-btn{background:transparent;border:none;color:#cbd5e1;font-size:1.1em;width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:6px;cursor:pointer;transition:background .15s}.compact-icon-btn:hover{background:#334155}.logout-icon:hover{background:#7f1d1d}.dropdown-wrapper{position:relative}.dropdown-menu{position:absolute;top:100%;left:0;margin-top:4px;background:#1e293b;border:1px solid #334155;border-radius:8px;min-width:200px;padding:4px 0;box-shadow:0 10px 30px #0006;z-index:1000;animation:dropdownFade .12s ease}@keyframes dropdownFade{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.dropdown-menu button{display:flex;align-items:center;gap:8px;width:100%;padding:8px 16px;background:transparent;border:none;color:#cbd5e1;font-size:.85em;cursor:pointer;text-align:left;transition:background .12s}.dropdown-menu button:hover{background:#334155;color:#f1f5f9}.dropdown-menu button:disabled{opacity:.4;cursor:not-allowed}.dropdown-menu button:disabled:hover{background:transparent;color:#cbd5e1}.dropdown-menu button.active{background:#334155;color:#38bdf8}.dropdown-divider{height:1px;background:#334155;margin:4px 0}.header-status{padding:4px 16px;font-size:.8em;color:#94a3b8;background:#0f172a;text-align:center}.header-status-error{color:#fca5a5;background:#450a0a}.hamburger-btn{display:none}@media(max-width:768px){.hamburger-btn{display:flex;margin-left:auto}.header-top-bar{flex-wrap:wrap;height:auto;min-height:48px;padding:6px 12px}.header-left{width:100%;flex-shrink:0}.header-title{font-size:.85em}.hide-mobile{display:none!important}.header-center,.header-right{display:none;width:100%}.header-center.mobile-open,.header-right.mobile-open{display:flex;flex-direction:column;align-items:stretch;padding:4px 0;border-top:1px solid #334155}.header-center.mobile-open{border-top:1px solid #334155}.header-right.mobile-open{flex-direction:row;justify-content:center;align-items:center;gap:10px;padding:8px 0}.header-right.mobile-open .user-name{height:36px;display:inline-flex;align-items:center}.menu-group{flex-direction:column;align-items:stretch;gap:0;width:100%}.menu-btn{width:100%;text-align:left;padding:10px 16px;border-radius:0;font-size:.9em}.dropdown-wrapper{width:100%}.dropdown-menu{position:static;margin-top:0;border:none;border-radius:0;box-shadow:none;background:#0f172a;animation:none}.dropdown-menu button{padding:10px 24px}.compact-icon-btn{width:36px;height:36px;font-size:1.15em}}@media(max-width:480px){.header-title{font-size:.78em}.header-top-bar{padding:4px 8px}}.header{padding:30px;background:#ffffffe6;box-shadow:0 2px 10px #0000001a;position:relative}.header-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:center;max-width:900px;margin:0 auto}.user-name,.guest-name{font-weight:600;font-size:.95em;color:#2c3e50}.clickable-username{cursor:pointer;text-decoration:underline;transition:color .2s ease}.clickable-username:hover{color:#4caf50}.auth-btn{background:#4caf50;color:#fff;border:1px solid #4CAF50;padding:6px 12px;border-radius:4px;cursor:pointer;font-size:.85em;font-weight:500;transition:all .2s ease}.auth-btn:hover{background:#45a049;border-color:#45a049}.logout-btn{background:#f44336;border-color:#f44336}.logout-btn:hover{background:#c62828;border-color:#c62828}.visualize-btn{padding:6px 20px;font-size:.85em;font-weight:600;border-radius:20px;cursor:pointer;transition:all .3s ease;border:2px solid;white-space:nowrap;min-width:fit-content;color:#059669;background:#fff;border-color:#059669}.visualize-btn:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none;filter:grayscale(.25)}.visualize-btn:hover{background:#059669;color:#fff;transform:translateY(-2px);box-shadow:0 4px 12px #0596694d}.visualize-btn:disabled:hover{transform:none;box-shadow:none}.editor-layout{display:flex;gap:20px;flex:1;overflow-y:auto;overflow-x:hidden;padding-bottom:20px}.editor-main{flex:1;display:flex;flex-direction:column;min-width:0}.analysis-sidebar{width:400px;flex-shrink:0;overflow:hidden}@media(max-width:1200px){.analysis-sidebar{width:350px}}@media(max-width:968px){.editor-layout{flex-direction:column;height:auto}.editor-main{order:2}.analysis-sidebar{width:100%;order:1}.header{padding:15px}.header-actions{gap:8px;margin-top:12px}.visualize-btn{padding:4px 16px;font-size:.8em;white-space:nowrap}}.modal-overlay{position:fixed;inset:0;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal-content{background:#fff;border-radius:16px;max-width:800px;width:90%;max-height:80vh;overflow:hidden;box-shadow:0 20px 60px #0000004d;animation:slideUp .3s ease}@keyframes slideUp{0%{transform:translateY(50px);opacity:0}to{transform:translateY(0);opacity:1}}.modal-header{padding:20px 30px;border-bottom:2px solid #e5e7eb;display:flex;justify-content:space-between;align-items:center;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.modal-header h2{margin:0;font-size:1.5em}.close-modal-btn{background:#fff3;border:none;color:#fff;font-size:1.5em;width:40px;height:40px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.close-modal-btn:hover{background:#ffffff4d;transform:rotate(90deg)}.modal-body{padding:20px 30px;max-height:calc(80vh - 100px);overflow-y:auto}.empty-state{text-align:center;padding:60px 20px;color:#9ca3af}.empty-state p:first-child{font-size:1.5em;margin-bottom:10px}.empty-hint{font-size:.9em;color:#6b7280}.graph-item{padding:20px;border:2px solid #e5e7eb;border-radius:12px;display:flex;justify-content:space-between;align-items:center;transition:all .2s ease;background:#fff}.graph-item:hover{border-color:#667eea;box-shadow:0 4px 12px #667eea1a;transform:translateY(-2px)}.graph-info{flex:1}.graph-info h3{margin:0 0 8px;color:#1f2937;font-size:1.1em}.graph-date{font-size:.85em;color:#6b7280;margin:0 0 10px}.updated-date{color:#f59e0b;font-weight:500}.graph-preview{font-family:Courier New,monospace;font-size:.8em;color:#9ca3af;margin:0;padding:8px;background:#f9fafb;border-radius:6px;white-space:pre-wrap;overflow:hidden;text-overflow:ellipsis;max-height:50px}.graph-actions{display:flex;gap:10px}.load-btn,.update-btn,.delete-btn{padding:8px 16px;font-size:.9em;font-weight:600;border-radius:8px;cursor:pointer;transition:all .2s ease;border:2px solid}.load-btn{color:#2563eb;background:#fff;border-color:#2563eb}.load-btn:hover{background:#2563eb;color:#fff}.update-btn{color:#f59e0b;background:#fff;border-color:#f59e0b}.update-btn:hover{background:#f59e0b;color:#fff}.delete-btn{color:#dc2626;background:#fff;border-color:#dc2626;padding:8px 12px}.delete-btn:hover{background:#dc2626;color:#fff}.controls{padding:20px;text-align:center;background:#fffc;border-top:1px solid #e0e0e0}[data-theme=dark] .controls{background:#1e1e2ecc;border-top-color:#313244}.visualize-btn{padding:15px 40px;font-size:1.1em;font-weight:600;color:#fff;background:linear-gradient(135deg,#667eea,#764ba2);border:none;border-radius:30px;cursor:pointer;box-shadow:0 4px 15px #667eea66;transition:all .3s ease}.visualize-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px #667eea99}.visualize-btn:active{transform:translateY(0)}.error{margin-top:15px;padding:12px 20px;background:#fee;color:#c33;border-radius:8px;border:1px solid #fcc;display:inline-block}.diagram-container{width:100%;min-height:100vh;display:flex;flex-direction:column;background:#f5f5f0}[data-theme=dark] .diagram-container{background:#181825}.diagram-header{padding:15px 30px;background:#fffffff2;box-shadow:0 2px 10px #0000001a;display:flex;align-items:center;gap:20px;z-index:10;flex-wrap:wrap}[data-theme=dark] .diagram-header{background:#1e1e2ef2;box-shadow:0 2px 10px #0000004d}.back-btn{padding:10px 20px;font-size:1em;font-weight:500;color:#667eea;background:#fff;border:2px solid #667eea;border-radius:20px;cursor:pointer;transition:all .3s ease}[data-theme=dark] .back-btn{background:#313244;color:#89b4fa;border-color:#89b4fa}.back-btn:hover{background:#667eea;color:#fff;transform:translate(-3px)}.combined-btn{padding:10px 20px;font-size:1em;font-weight:500;color:#8b5cf6;background:#fff;border:2px solid #8b5cf6;border-radius:20px;cursor:pointer;transition:all .3s ease}[data-theme=dark] .combined-btn{background:#313244;color:#cba6f7;border-color:#cba6f7}.combined-btn:hover{background:#8b5cf6;color:#fff;transform:translateY(-2px)}.diagram-header h2{flex:1;color:#2c3e50;font-size:1.5em}[data-theme=dark] .diagram-header h2{color:#cdd6f4}.hint{color:#7f8c8d;font-size:.95em;font-style:italic}[data-theme=dark] .hint{color:#a6adc8}.tree-info{padding:8px 16px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border-radius:20px;font-size:.9em;font-weight:600;box-shadow:0 2px 8px #667eea4d;white-space:nowrap}.validation-panel{margin-top:20px;max-width:900px;margin-left:auto;margin-right:auto}.validation-section{margin-bottom:15px;padding:15px;border-radius:12px;box-shadow:0 4px 12px #0000001a}.validation-section.errors{background:#fee;border:2px solid #fcc}.validation-section.warnings{background:#fff8e1;border:2px solid #ffe082}.validation-section h4{margin:0 0 12px;font-size:1.1em;color:#2c3e50}.validation-item{margin-bottom:12px;padding:12px;border-radius:8px;background:#fff}.error-item{border-left:4px solid #e74c3c}.warning-item{border-left:4px solid #f39c12}.issue-header{display:flex;gap:10px;margin-bottom:8px;align-items:center}.line-number{background:#3498db;color:#fff;padding:3px 8px;border-radius:12px;font-size:.85em;font-weight:600;font-family:Monaco,Menlo,monospace}.issue-type{text-transform:uppercase;font-size:.75em;font-weight:700;color:#7f8c8d;letter-spacing:.5px}.issue-message{color:#2c3e50;font-weight:600;margin-bottom:8px}.issue-suggestion{background:#f8f9fa;padding:8px 12px;border-radius:6px;font-size:.9em;color:#27ae60;border-left:3px solid #27ae60}.issue-suggestion code{background:#fff;padding:2px 6px;border-radius:4px;font-family:Monaco,Menlo,monospace;color:#e74c3c;border:1px solid #eee}.validation-success{background:#d4edda;border:2px solid #c3e6cb;color:#155724;padding:15px;border-radius:12px;text-align:center;font-weight:600;font-size:1.1em}.modal-overlay{position:fixed;inset:0;background-color:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000}.modal-content{background:#fff;border-radius:12px;max-width:800px;width:90%;max-height:80vh;overflow-y:auto;box-shadow:0 10px 40px #0003}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid #eee;background:#f8f9fa;border-radius:12px 12px 0 0}.modal-header h2{color:#2c3e50;margin:0}.close-modal-btn{background:none;border:none;font-size:24px;cursor:pointer;color:#666;padding:5px;border-radius:50%;width:35px;height:35px;display:flex;align-items:center;justify-content:center;transition:background-color .2s}.close-modal-btn:hover{background-color:#e9ecef}.modal-body{padding:20px;min-height:200px}.auth-required{text-align:center;padding:40px 20px}.auth-required p{font-size:1.1em;color:#2c3e50;margin-bottom:10px}.auth-hint{color:#7f8c8d!important;font-size:1em!important;margin-bottom:30px!important}.auth-btn{background:#4caf50;color:#fff;border:none;padding:12px 24px;border-radius:6px;font-size:16px;cursor:pointer;transition:background-color .2s}.auth-btn:hover{background:#45a049}.empty-state{text-align:center;padding:40px 20px;color:#7f8c8d}.empty-state p{font-size:1.1em;margin-bottom:10px}.empty-hint{font-size:.9em;color:#95a5a6}.graphs-list{display:flex;flex-direction:column;gap:15px}.graph-item{border:1px solid #e1e8ed;border-radius:8px;padding:20px;background:#f8f9fa;transition:transform .2s,box-shadow .2s}.graph-item:hover{transform:translateY(-2px);box-shadow:0 4px 15px #0000001a}.graph-info{margin-bottom:15px}.graph-info h3{color:#2c3e50;margin-bottom:8px;font-size:1.2em}.graph-description{color:#5a6c7d;margin-bottom:10px;font-style:italic}.graph-date{color:#95a5a6;font-size:.9em;margin-bottom:10px}.updated-date{color:#2980b9}.graph-tags{margin:10px 0}.tag{background:#e3f2fd;color:#1976d2;padding:2px 8px;border-radius:12px;font-size:.8em;margin-right:5px;display:inline-block}.graph-preview{background:#fff;border:1px solid #e1e8ed;border-radius:4px;padding:10px;font-family:Monaco,Consolas,monospace;font-size:.85em;color:#2c3e50;white-space:pre-wrap;margin-bottom:10px}.public-indicator{background:#e8f5e8;color:#2e7d2e;padding:5px 10px;border-radius:4px;font-size:.9em;border-left:4px solid #4caf50}.share-id{font-family:monospace;font-size:.8em}.graph-actions{display:flex;gap:10px;flex-wrap:wrap}.graph-actions button{padding:8px 16px;border:none;border-radius:4px;cursor:pointer;font-size:.9em;transition:background-color .2s}.load-btn{background:#2196f3;color:#fff}.load-btn:hover{background:#1976d2}.update-btn{background:#ff9800;color:#fff}.update-btn:hover{background:#f57c00}.delete-btn{background:#f44336;color:#fff}.delete-btn:hover{background:#d32f2f}@media(max-width:768px){.header{padding:60px 20px 30px}.header-actions{order:2;gap:8px}.modal-content{width:95%;max-height:90vh}.modal-header,.modal-body{padding:15px}.graph-item{flex-direction:column;align-items:stretch}.graph-actions{flex-direction:column}.graph-actions button{width:100%}}.loading-container{width:100vw;height:100vh;display:flex;justify-content:center;align-items:center;background:linear-gradient(135deg,#f5f7fa,#c3cfe2)}.shared-loading-content{text-align:center;display:flex;flex-direction:column;align-items:center;gap:1rem}.shared-loading-spinner{width:40px;height:40px;border:4px solid #f3f3f3;border-top:4px solid #007bff;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.shared-loading-content p{font-size:1.1rem;color:#666;margin:0}.shared-loading-note{font-size:.9em;color:#666;margin-top:.5rem}.error-container{width:100vw;height:100vh;display:flex;justify-content:center;align-items:center;background:linear-gradient(135deg,#f5f7fa,#c3cfe2)}.error-content{text-align:center;padding:2rem;background:#fff;border-radius:12px;box-shadow:0 10px 40px #0000001a;max-width:500px;margin:2rem}.error-icon{font-size:3rem;margin-bottom:1rem}.error-content h2{color:#dc2626;margin-bottom:1rem;font-size:1.5rem}.error-content p{color:#666;margin-bottom:2rem;font-size:1.1rem}.error-content .back-btn{padding:.75rem 1.5rem;background:#007bff;color:#fff;border:none;border-radius:8px;font-size:1rem;cursor:pointer;transition:all .2s ease}.error-content .back-btn:hover{background:#0056b3;transform:translateY(-1px)}
