@import url(https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap);:root{--sidebar-width:280px;--sidebar-collapsed-width:80px;--header-height:70px;--transition-speed:0.3s}.theme-light,:root{--bg-app:#f5f2eb;--bg-sidebar:#f5f2eb;--bg-sidebar-darker:#edeae1;--bg-paper:#fff;--line-color:#e6e2d6;--text-primary:#2d2d2d;--text-secondary:#757575;--accent:#2d2d2d;--accent-hover:#4a4a4a;--success:#3a7f48;--error:#dc3545;--warning:#f0ad4e;--info:#06c;--focus-ring:#2d2d2d1a;--scrollbar-thumb:#ded9cc;--scrollbar-thumb-hover:#c0bcae;--shadow-sm:0 1px 2px 0 #0000000d;--shadow-md:0 4px 6px -1px #0000001a;--shadow-lg:0 10px 15px -3px #0000001a;--primary-color:var(--accent);--background-dark:var(--bg-app);--background-light:var(--bg-paper);--border-color:var(--line-color);--bg-primary:#fff;--bg-secondary:#fff;--bg-tertiary:#f5f2eb;--accent-color:#2d2d2d}.theme-dark{--bg-app:#1a1a1a;--bg-sidebar:#1a1a1a;--bg-sidebar-darker:#151515;--bg-paper:#242424;--line-color:#2f2f2f;--text-primary:#e8e8e8;--text-secondary:#a0a0a0;--accent:#e8e8e8;--accent-hover:#fff;--success:#5fb574;--error:#ff6b6b;--warning:#ffb84d;--info:#5c9fcc;--focus-ring:#e8e8e826;--scrollbar-thumb:#3a3a3a;--scrollbar-thumb-hover:#4a4a4a;--shadow-sm:0 1px 2px 0 #0006;--shadow-md:0 4px 6px -1px #00000080;--shadow-lg:0 10px 15px -3px #0009;--primary-color:var(--accent);--background-dark:var(--bg-app);--background-light:var(--bg-paper);--border-color:var(--line-color);--bg-primary:#242424;--bg-secondary:#242424;--bg-tertiary:#1a1a1a;--accent-color:#e8e8e8}*{-webkit-tap-highlight-color:transparent;box-sizing:border-box;outline:none}body{-webkit-font-smoothing:antialiased;background-color:#f5f2eb;background-color:var(--bg-app);color:#2d2d2d;color:var(--text-primary);font-family:Inter,sans-serif;height:100vh;margin:0;overflow:hidden;padding:0}::-webkit-scrollbar{height:8px;width:8px}::-webkit-scrollbar-track{background:#0000}::-webkit-scrollbar-thumb{background:#ded9cc;background:var(--scrollbar-thumb);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#c0bcae;background:var(--scrollbar-thumb-hover)}button{background:none;border:none;cursor:pointer;font:inherit;transition:.2s ease}a{color:inherit;text-decoration:none}.hidden{display:none!important}.fade-in{animation:fadeIn .4s ease}.theme-dark .notification-container.success{background:#5fb57426;border-color:#3a7f48;border-color:var(--success)}.theme-dark .notification-container.error{background:#ff6b6b26;border-color:#dc3545;border-color:var(--error)}.theme-dark .notification-container.info{background:#5c9fcc26;border-color:#06c;border-color:var(--info)}.theme-dark .auth-error{background:#ff6b6b26;border:1px solid #ff6b6b4d;color:#dc3545;color:var(--error)}.theme-dark .auth-success{background:#5fb57426;border:1px solid #5fb5744d;color:#3a7f48;color:var(--success)}.theme-dark .badge{background:#2f2f2f;color:#757575;color:var(--text-secondary)}.theme-dark .badge.success{background:#5fb57426;color:#3a7f48;color:var(--success)}.theme-dark .badge.pending{background:#2f2f2f;color:#757575;color:var(--text-secondary)}.theme-dark .badge.running{background:#5c9fcc26;color:#06c;color:var(--info)}.theme-dark .badge.failed{background:#ff6b6b26;color:#dc3545;color:var(--error)}.theme-dark .loading-overlay{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#1a1a1acc}.theme-dark .dropzone.dragover,.theme-dark .dropzone:hover{border-color:#2d2d2d}.theme-dark .form-input,.theme-dark .form-select,.theme-dark .form-textarea,.theme-dark input[type=email],.theme-dark input[type=number],.theme-dark input[type=password],.theme-dark input[type=text],.theme-dark select,.theme-dark textarea{background:#f5f2eb;background:var(--bg-tertiary);border-color:#e6e2d6;border-color:var(--line-color);color:#2d2d2d;color:var(--text-primary)}.theme-dark .form-input:focus,.theme-dark .form-select:focus,.theme-dark .form-textarea:focus,.theme-dark input:focus,.theme-dark select:focus,.theme-dark textarea:focus{border-color:#2d2d2d;border-color:var(--accent);box-shadow:0 0 0 2px #2d2d2d1a;box-shadow:0 0 0 2px var(--focus-ring)}.theme-dark .config-section,.theme-dark .config-summary,.theme-dark .settings-panel{background:#f5f2eb;background:var(--bg-tertiary)}.theme-dark .card,.theme-dark .panel{background:#fff;background:var(--bg-paper);border-color:#e6e2d6;border-color:var(--line-color)}.theme-dark table th,.theme-dark table tr:hover{background:#f5f2eb;background:var(--bg-tertiary)}.theme-dark .modal,.theme-dark .modal-content{background:#fff;background:var(--bg-paper)}.theme-dark .modal-overlay{background:#000000b3}.theme-dark .btn-primary{background:#2d2d2d;background:var(--accent);color:#1a1a1a}.theme-dark .btn-primary:hover{background:#4a4a4a;background:var(--accent-hover)}.theme-dark .btn-secondary{background:#fff;background:var(--bg-paper);border-color:#e6e2d6;border-color:var(--line-color);color:#2d2d2d;color:var(--text-primary)}.theme-dark .btn-secondary:hover{background:#f5f2eb;background:var(--bg-tertiary)}.theme-dark code,.theme-dark pre{background:#0d0d0d}.theme-dark .tooltip{background:#2f2f2f;color:#2d2d2d;color:var(--text-primary)}.notification-container{align-items:center;background:var(--background-dark);border:1px solid var(--border-color);border-radius:12px;box-shadow:var(--shadow-lg);display:flex;gap:12px;max-width:480px;min-width:320px;opacity:0;padding:16px;position:fixed;right:24px;top:24px;transform:translateX(120%);z-index:9999}.notification-container,.notification-container.show{animation:slideIn .3s ease forwards}.notification-container.hide{animation:slideOut .3s ease forwards}@keyframes slideIn{0%{opacity:0;transform:translateX(120%)}to{opacity:1;transform:translateX(0)}}@keyframes slideOut{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(120%)}}.notification-content{align-items:center;display:flex;flex:1 1;gap:12px}.notification-icon{flex-shrink:0;height:24px;width:24px}.notification-icon.success{color:#10b981}.notification-icon.error{color:#ef4444}.notification-icon.info{color:#3b82f6}.notification-message{color:var(--text-primary);font-size:.95rem;line-height:1.5}.notification-close{align-items:center;background:#0000;border:none;color:var(--text-secondary);cursor:pointer;display:flex;justify-content:center;padding:4px;transition:color .2s ease}.notification-close:hover{color:var(--text-primary)}.notification-close svg{height:20px;width:20px}.notification-container.success{background:#10b9811a;border-color:#10b981}.notification-container.error{background:#ef44441a;border-color:#ef4444}.notification-container.info{background:#3b82f61a;border-color:#3b82f6}@media (max-width:768px){.notification-container{left:16px;max-width:none;min-width:0;min-width:auto;right:16px;top:16px}}.sidebar{background-color:var(--bg-sidebar-darker);border-right:1px solid var(--line-color);display:flex;flex-direction:column;flex-shrink:0;height:100%;position:relative;transition:width var(--transition-speed) ease;white-space:nowrap;width:var(--sidebar-width);z-index:100}.sidebar-header{height:var(--header-height);padding:24px}.logo,.sidebar-header{align-items:center;display:flex}.logo{color:inherit;gap:12px;text-decoration:none}.logo-mark{align-items:center;background:var(--text-primary);border-radius:4px;display:flex;height:24px;justify-content:center;width:24px}.logo-mark img{height:100%;object-fit:contain;width:100%}.brand-name{color:var(--text-primary);font-size:18px;font-weight:600;letter-spacing:-.02em}.brand-name .light{font-weight:400;opacity:.7}.action-container{padding:0 24px 24px}.action-container .btn-primary{align-items:center;border-radius:8px;display:inline-flex;font-size:14px;font-weight:500;gap:8px;justify-content:center;line-height:1.2;min-height:44px;padding:10px 16px;white-space:nowrap;width:100%}.action-container .btn-primary svg{background:none;border:none;flex-shrink:0;height:16px;width:16px}.action-container .btn-text{white-space:nowrap}.sidebar-nav{flex-grow:1;overflow-y:auto;padding:0 16px}.section-label{color:var(--text-secondary);font-size:11px;font-weight:600;margin-bottom:12px;margin-top:20px;padding:0 8px;text-transform:uppercase}.section-label:first-child{margin-top:0}.nav-item{align-items:center;border-radius:8px;color:var(--text-secondary);cursor:pointer;display:flex;gap:14px;margin-bottom:4px;padding:12px;text-decoration:none;transition:background .2s}.nav-item:hover{background:#00000008;color:var(--text-primary)}.nav-item.active{background:#ebe7de;color:var(--text-primary)}.nav-item-icon{align-items:center;display:flex;justify-content:center;width:20px}.nav-icon{height:20px;width:20px}.nav-text{display:flex;flex-direction:column}.nav-text .title{font-size:14px;font-weight:500}.nav-text .subtitle{font-size:11px;margin-top:2px;opacity:.7}.sidebar-footer{border-top:1px solid var(--line-color);padding:20px 24px}.user-profile{color:inherit;gap:10px;text-decoration:none;width:100%}.avatar,.user-profile{align-items:center;display:flex}.avatar{background:#ded9cc;border-radius:50%;color:var(--text-primary);font-size:12px;font-weight:600;height:32px;justify-content:center;width:32px}.user-info{display:flex;flex-direction:column}.user-info .name{font-size:13px;font-weight:600}.user-info .role{color:var(--text-secondary);font-size:11px}.theme-toggle-btn{background:none;border:none;padding:4px}.sidebar-toggle,.theme-toggle-btn{align-items:center;color:var(--text-secondary);cursor:pointer;display:flex;justify-content:center}.sidebar-toggle{background:var(--bg-paper);border:1px solid var(--line-color);border-radius:50%;box-shadow:0 2px 4px #0000000d;height:24px;opacity:0;position:absolute;right:-12px;top:24px;transition:opacity .2s;width:24px;z-index:101}.sidebar.collapsed{width:var(--sidebar-collapsed-width)}.sidebar.collapsed .brand-name,.sidebar.collapsed .logo-subtitle,.sidebar.collapsed .nav-text,.sidebar.collapsed .section-label,.sidebar.collapsed .user-info{display:none}.sidebar.collapsed .action-container{padding:0 10px 24px}.sidebar.collapsed .sidebar-footer,.sidebar.collapsed .sidebar-header{justify-content:center;padding-left:0;padding-right:0}.sidebar.collapsed .nav-item{gap:0;justify-content:center;padding:12px 0}.sidebar.collapsed .btn-primary{justify-content:center;padding:12px}.sidebar.collapsed .btn-text{display:none}.theme-dark .nav-item:hover{background:#ffffff0d}.theme-dark .nav-item.active{background:#2f2f2f;color:var(--text-primary)}.theme-dark .avatar{background:#2f2f2f}@media (max-width:768px){.sidebar{bottom:0;left:0;position:fixed;top:0;transform:translateX(-100%);width:260px}.sidebar.mobile-open{transform:translateX(0)}}.mobile-bottom-nav{background:var(--bg-paper);border-top:1px solid var(--line-color);bottom:0;display:none;height:64px;left:0;padding:0 0 env(safe-area-inset-bottom,0);position:fixed;right:0;z-index:1000}@media (max-width:768px){.mobile-bottom-nav{align-items:center;display:flex;justify-content:space-around}}.mobile-nav-tab{-webkit-tap-highlight-color:transparent;align-items:center;color:var(--text-secondary);display:flex;flex:1 1;flex-direction:column;gap:4px;height:100%;justify-content:center;min-width:0;padding:8px 4px;text-decoration:none;transition:color .2s ease}.mobile-nav-tab:active{background:#0000000d}.theme-dark .mobile-nav-tab:active{background:#ffffff0d}.mobile-nav-tab.active{color:var(--accent)}.mobile-nav-tab-icon{flex-shrink:0;height:22px;width:22px}.mobile-nav-tab-label{font-size:10px;font-weight:500;max-width:100%;overflow:hidden;text-align:center;text-overflow:ellipsis;white-space:nowrap}.mobile-nav-tab.active .mobile-nav-tab-icon{transform:scale(1.05)}@media (max-width:360px){.mobile-nav-tab-label{font-size:9px}.mobile-nav-tab-icon{height:20px;width:20px}}.ai-settings-panel{background:#fff;background:var(--bg-paper,#fff);border:1px solid #e6e2d6;border:1px solid var(--line-color,#e6e2d6);border-radius:8px;box-shadow:0 4px 20px #00000026;display:flex;flex-direction:column;max-height:500px;position:absolute;right:0;top:50px;width:320px;z-index:1001}.ai-settings-header{align-items:center;border-bottom:1px solid #e6e2d6;border-bottom:1px solid var(--line-color,#e6e2d6);display:flex;justify-content:space-between;padding:12px 16px}.ai-settings-header h3{color:#2d2d2d;color:var(--text-primary,#2d2d2d);font-size:16px;font-weight:600;margin:0}.ai-settings-close{align-items:center;background:#0000;border:none;border-radius:4px;color:#757575;color:var(--text-secondary,#757575);cursor:pointer;display:flex;font-size:16px;height:28px;justify-content:center;width:28px}.ai-settings-close:hover{background:#f5f2eb;background:var(--bg-tertiary,#f5f2eb);color:#2d2d2d;color:var(--text-primary,#2d2d2d)}.ai-settings-content{flex:1 1;overflow-y:auto;padding:16px}.ai-settings-section{margin-bottom:20px}.ai-settings-section:last-child{margin-bottom:0}.ai-settings-section-title{color:#757575;color:var(--text-secondary,#757575);font-size:13px;font-weight:600;letter-spacing:.5px;margin:0 0 12px;text-transform:uppercase}.ai-settings-checkbox{align-items:center;cursor:pointer;display:flex;gap:8px;margin-bottom:10px;-webkit-user-select:none;user-select:none}.ai-settings-checkbox input[type=checkbox]{cursor:pointer;height:16px;width:16px}.ai-settings-checkbox span{color:#2d2d2d;color:var(--text-primary,#2d2d2d);font-size:14px}.ai-settings-select{margin-bottom:12px}.ai-settings-select label{color:#757575;color:var(--text-secondary,#757575);display:block;font-size:13px;margin-bottom:6px}.ai-settings-select select{background:#fff;background:var(--bg-paper,#fff);border:1px solid #e6e2d6;border:1px solid var(--line-color,#e6e2d6);border-radius:6px;color:#2d2d2d;color:var(--text-primary,#2d2d2d);cursor:pointer;font-size:13px;height:36px;padding:0 10px;width:100%}.ai-settings-slider{margin-bottom:12px}.ai-settings-slider label{color:#757575;color:var(--text-secondary,#757575);display:block;font-size:13px;margin-bottom:6px}.ai-settings-slider input[type=range]{cursor:pointer;height:6px;margin:8px 0;width:100%}.ai-settings-slider small{color:#757575;color:var(--text-secondary,#757575);display:block;font-size:11px;font-style:italic;margin-top:4px}.ai-settings-footer{border-top:1px solid #e6e2d6;border-top:1px solid var(--line-color,#e6e2d6);display:flex;gap:8px;padding:12px 16px}.ai-settings-done,.ai-settings-reset{border:none;border-radius:6px;cursor:pointer;flex:1 1;font-size:13px;font-weight:500;height:36px;transition:all .15s ease}.ai-settings-reset{background:#f5f2eb;background:var(--bg-tertiary,#f5f2eb);color:#2d2d2d;color:var(--text-primary,#2d2d2d)}.ai-settings-reset:hover{background:#edeae1;background:var(--bg-sidebar-darker,#edeae1)}.ai-settings-done{background:#2d2d2d;background:var(--accent,#2d2d2d);color:#fff}.ai-settings-done:hover{opacity:.9}.theme-dark .ai-settings-panel{background:#2d2d2d;border-color:#404040}.theme-dark .ai-settings-select select{background:#1a1a1a;border-color:#404040;color:#e0e0e0}.theme-dark .ai-settings-reset{background:#1a1a1a;color:#e0e0e0}.tiptap-editor-wrapper{background:#fff;background:var(--bg-paper,#fff);border-radius:8px;display:flex;height:100%;min-height:400px;overflow:hidden;width:100%}.tiptap-editor-main{display:flex;flex:1 1;flex-direction:column;min-width:0;overflow:hidden}.tiptap-loading{align-items:center;color:#666;color:var(--text-secondary,#666);display:flex;justify-content:center;min-height:200px}.tiptap-toolbar{background:#f5f2eb;background:var(--bg-tertiary,#f5f2eb);border-bottom:1px solid #e6e2d6;border-bottom:1px solid var(--line-color,#e6e2d6);display:flex;flex-shrink:0;flex-wrap:wrap;gap:4px;padding:8px 12px;position:sticky;top:0;z-index:10}.toolbar-group{align-items:center;display:flex;gap:2px}.toolbar-divider{background:#e6e2d6;background:var(--line-color,#e6e2d6);height:24px;margin:0 4px;width:1px}.toolbar-button{align-items:center;background:#0000;border:none;border-radius:4px;color:#2d2d2d;color:var(--text-primary,#2d2d2d);cursor:pointer;display:flex;font-size:14px;height:32px;justify-content:center;padding:0;transition:all .15s ease;width:32px}.toolbar-button:hover{background:#edeae1;background:var(--bg-sidebar-darker,#edeae1)}.toolbar-button.active{background:#2d2d2d;background:var(--accent,#2d2d2d);color:#fff}.toolbar-button:disabled{cursor:not-allowed;opacity:.4}.toolbar-select{background:#fff;background:var(--bg-paper,#fff);border:1px solid #e6e2d6;border:1px solid var(--line-color,#e6e2d6);border-radius:4px;color:#2d2d2d;color:var(--text-primary,#2d2d2d);cursor:pointer;font-size:13px;height:32px;padding:4px 8px}.toolbar-select:hover{border-color:#2d2d2d;border-color:var(--accent,#2d2d2d)}.font-select{min-width:140px}.toolbar-color-input{border:1px solid #e6e2d6;border:1px solid var(--line-color,#e6e2d6);border-radius:4px;cursor:pointer;height:32px;padding:2px;width:32px}.link-input-wrapper{align-items:center;display:flex;gap:4px}.link-input{background:#fff;background:var(--bg-paper,#fff);border:1px solid #2d2d2d;border:1px solid var(--accent,#2d2d2d);border-radius:4px;color:#2d2d2d;color:var(--text-primary,#2d2d2d);font-size:13px;height:28px;padding:0 8px;width:200px}.link-cancel-btn,.link-confirm-btn{border:none;border-radius:4px;cursor:pointer;font-size:14px;height:28px;width:28px}.link-confirm-btn{background:#3a7f48;background:var(--success,#3a7f48);color:#fff}.link-cancel-btn{background:#dc3545;color:#fff}.tiptap-editor-main .ProseMirror{color:#2d2d2d;color:var(--text-primary,#2d2d2d);flex:1 1;font-family:Lora,Georgia,serif;font-size:16px;line-height:1.8;max-height:calc(100vh - 200px);min-height:500px;outline:none;overflow-y:auto;padding:40px 60px}.tiptap-editor-main .ProseMirror:focus{outline:none}.tiptap-editor-main .ProseMirror p.is-editor-empty:first-child:before{color:#757575;color:var(--text-secondary,#757575);content:attr(data-placeholder);float:left;height:0;pointer-events:none}.tiptap-editor-main .ProseMirror h1,.tiptap-editor-main .ProseMirror h2,.tiptap-editor-main .ProseMirror h3,.tiptap-editor-main .ProseMirror h4,.tiptap-editor-main .ProseMirror h5,.tiptap-editor-main .ProseMirror h6{scroll-margin-top:80px}.tiptap-editor-main .ProseMirror h1{font-size:2.5em;font-weight:700;line-height:1.3;margin:1em 0 .5em}.tiptap-editor-main .ProseMirror h2{font-size:2em;font-weight:600;line-height:1.3;margin:1em 0 .5em}.tiptap-editor-main .ProseMirror h3{font-size:1.5em;font-weight:600;line-height:1.4;margin:1em 0 .5em}.tiptap-editor-main .ProseMirror h4{font-size:1.25em;font-weight:600;margin:1em 0 .5em}.tiptap-editor-main .ProseMirror h5,.tiptap-editor-main .ProseMirror h6{font-size:1.1em;font-weight:600;margin:1em 0 .5em}.tiptap-editor-main .ProseMirror p{margin:0 0 1em}.tiptap-editor-main .ProseMirror ol,.tiptap-editor-main .ProseMirror ul{margin:0 0 1em;padding-left:1.5em}.tiptap-editor-main .ProseMirror li{margin-bottom:.25em}.tiptap-link{color:#2d2d2d;color:var(--accent,#2d2d2d);cursor:pointer;text-decoration:underline}.tiptap-link:hover{color:#4a4a4a;color:var(--accent-hover,#4a4a4a)}.tiptap-image{border-radius:8px;display:block;height:auto;margin:1em 0;max-width:100%}.tiptap-image.ProseMirror-selectednode{outline:3px solid #2d2d2d;outline:3px solid var(--accent,#2d2d2d)}.tiptap-editor-main .ProseMirror blockquote{background:#f5f2eb;background:var(--bg-tertiary,#f5f2eb);border-left:4px solid #2d2d2d;border-left:4px solid var(--accent,#2d2d2d);font-style:italic;margin:1em 0;padding:.5em 0 .5em 1em}.tiptap-editor-main .ProseMirror code{background:#f5f2eb;background:var(--bg-tertiary,#f5f2eb);border-radius:3px;font-family:Source Code Pro,monospace;font-size:.9em;padding:.2em .4em}.tiptap-editor-main .ProseMirror pre{background:#1e1e1e;border-radius:8px;color:#d4d4d4;margin:1em 0;overflow-x:auto;padding:1em}.tiptap-editor-main .ProseMirror pre code{background:none;color:inherit;padding:0}.tiptap-editor-main .ProseMirror hr{border:none;border-top:2px solid #e6e2d6;border-top:2px solid var(--line-color,#e6e2d6);margin:2em 0}.tiptap-table{border:1px solid #e6e2d6;border:1px solid var(--line-color,#e6e2d6);border-collapse:collapse;border-radius:8px;margin:1em 0;overflow:hidden;width:100%}.tiptap-table-cell,.tiptap-table-header{border:1px solid #e6e2d6;border:1px solid var(--line-color,#e6e2d6);min-width:100px;padding:8px 12px;vertical-align:top}.tiptap-table-header{background:#f5f2eb;background:var(--bg-tertiary,#f5f2eb);font-weight:600;text-align:left}.tiptap-table-cell{background:#fff;background:var(--bg-paper,#fff)}.tiptap-table .selectedCell{background:#2d2d2d14}.tiptap-table .column-resize-handle{background-color:#2d2d2d;background-color:var(--accent,#2d2d2d);bottom:0;pointer-events:none;position:absolute;right:-2px;top:0;width:4px}.mermaid-node{margin:1.5em 0}.mermaid-wrapper{border:1px solid #e6e2d6;border:1px solid var(--line-color,#e6e2d6);border-radius:8px;overflow:hidden}.mermaid-display,.mermaid-wrapper{background:#fff;background:var(--bg-paper,#fff)}.mermaid-display{padding:20px;position:relative}.mermaid-diagram{cursor:pointer;min-height:100px;text-align:center;transition:background .15s ease}.mermaid-diagram:hover{background:#f5f2eb;background:var(--bg-tertiary,#f5f2eb)}.mermaid-diagram svg{height:auto;max-width:100%}.mermaid-edit-btn{background:#2d2d2d;background:var(--accent,#2d2d2d);border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:12px;opacity:0;padding:6px 12px;position:absolute;right:12px;top:12px;transition:opacity .2s ease}.mermaid-display:hover .mermaid-edit-btn{opacity:1}.mermaid-editor{background:#f5f2eb;background:var(--bg-tertiary,#f5f2eb);padding:16px}.mermaid-code-input{background:#fff;background:var(--bg-paper,#fff);border:1px solid #e6e2d6;border:1px solid var(--line-color,#e6e2d6);border-radius:4px;color:#2d2d2d;color:var(--text-primary,#2d2d2d);font-family:Source Code Pro,monospace;font-size:14px;line-height:1.6;padding:12px;resize:vertical;width:100%}.mermaid-code-input:focus{border-color:#2d2d2d;border-color:var(--accent,#2d2d2d);outline:none}.mermaid-editor-actions{display:flex;gap:8px;margin-top:12px}.mermaid-btn{border:none;border-radius:4px;cursor:pointer;font-size:14px;font-weight:500;padding:8px 16px;transition:all .15s ease}.mermaid-btn-save{background:#2d2d2d;background:var(--accent,#2d2d2d);color:#fff}.mermaid-btn-save:hover{background:#4a4a4a;background:var(--accent-hover,#4a4a4a)}.mermaid-btn-cancel{background:#dc3545;color:#fff}.mermaid-btn-cancel:hover{background:#c82333}.mermaid-error{background:#fee;border:1px solid #fcc;border-radius:4px;color:#dc3545;font-size:13px;line-height:1.4;margin-top:12px;padding:10px 12px}.mermaid-node.ProseMirror-selectednode .mermaid-wrapper{outline:3px solid #2d2d2d;outline:3px solid var(--accent,#2d2d2d)}.budget-table-wrapper{background:#fff;background:var(--bg-paper,#fff);border:1px solid #e6e2d6;border:1px solid var(--line-color,#e6e2d6);border-radius:8px;margin:1.5em 0;overflow:hidden}.budget-table-header{align-items:center;background:#f5f2eb;background:var(--bg-tertiary,#f5f2eb);border-bottom:1px solid #e6e2d6;border-bottom:1px solid var(--line-color,#e6e2d6);display:flex;justify-content:space-between;padding:16px 20px}.budget-table-header h3{color:#2d2d2d;color:var(--text-primary,#2d2d2d);font-size:18px;font-weight:600;margin:0}.budget-table-actions{display:flex;gap:8px}.budget-btn{border:none;border-radius:4px;cursor:pointer;font-size:13px;font-weight:500;padding:8px 16px;transition:all .15s ease}.budget-btn-add{background:#2d2d2d;background:var(--accent,#2d2d2d);color:#fff}.budget-btn-add:hover{background:#4a4a4a;background:var(--accent-hover,#4a4a4a)}.budget-btn-export{background:#edeae1;background:var(--bg-sidebar-darker,#edeae1);color:#2d2d2d;color:var(--text-primary,#2d2d2d)}.budget-btn-export:hover{background:#f5f2eb;background:var(--bg-tertiary,#f5f2eb)}.budget-btn-delete{background:#dc3545;color:#fff;font-size:11px;padding:4px 8px}.budget-btn-delete:hover{background:#c82333}.budget-table-container{overflow-x:auto;padding:20px}.budget-table{border-collapse:collapse;font-size:14px;width:100%}.budget-table th{background:#f5f2eb;background:var(--bg-tertiary,#f5f2eb);border-bottom:2px solid #e6e2d6;border-bottom:2px solid var(--line-color,#e6e2d6);color:#757575;color:var(--text-secondary,#757575);font-weight:600;padding:12px 8px;text-align:left}.budget-table td{border-bottom:1px solid #e6e2d6;border-bottom:1px solid var(--line-color,#e6e2d6);padding:10px 8px}.budget-table tbody tr:hover{background:#f5f2eb;background:var(--bg-tertiary,#f5f2eb)}.budget-input{background:#fff;background:var(--bg-paper,#fff);border:1px solid #e6e2d6;border:1px solid var(--line-color,#e6e2d6);border-radius:4px;color:#2d2d2d;color:var(--text-primary,#2d2d2d);font-size:13px;padding:6px 8px;width:100%}.budget-input:focus{border-color:#2d2d2d;border-color:var(--accent,#2d2d2d);outline:none}.budget-input-number{max-width:100px}.budget-input-small{max-width:80px}.budget-select{cursor:pointer}.budget-category-badge{background:#f5f2eb;background:var(--bg-tertiary,#f5f2eb);border-radius:4px;display:inline-block;font-size:12px;font-weight:500;padding:4px 8px}.budget-cell-subtotal,.budget-cell-total{color:#2d2d2d;color:var(--text-primary,#2d2d2d);font-weight:600;text-align:right}.budget-cell-label{color:#757575;color:var(--text-secondary,#757575);font-weight:500;text-align:right}.budget-row-subtotal td{border-top:2px solid #e6e2d6;border-top:2px solid var(--line-color,#e6e2d6);padding-top:16px}.budget-row-tax td{padding:8px}.budget-row-grand-total td{border-top:2px solid #2d2d2d;border-top:2px solid var(--accent,#2d2d2d);font-size:15px;padding:16px 8px}.budget-row-grand-total td,.toc-sidebar{background:#f5f2eb;background:var(--bg-tertiary,#f5f2eb)}.toc-sidebar{border-right:1px solid #e6e2d6;border-right:1px solid var(--line-color,#e6e2d6);display:flex;flex-direction:column;height:100%;min-width:250px;overflow:hidden;width:250px}.toc-header{border-bottom:1px solid #e6e2d6;border-bottom:1px solid var(--line-color,#e6e2d6);padding:16px}.toc-header h3{color:#757575;color:var(--text-secondary,#757575);font-size:14px;font-weight:600;letter-spacing:.5px;margin:0;text-transform:uppercase}.toc-content{flex:1 1;overflow-y:auto;padding:12px}.toc-list{padding:0}.toc-list,.toc-nested{list-style:none;margin:0}.toc-nested{padding-left:16px}.toc-item{margin-bottom:4px}.toc-link{border-radius:4px;color:#757575;color:var(--text-secondary,#757575);cursor:pointer;display:block;font-size:13px;overflow:hidden;padding:6px 10px;text-decoration:none;text-overflow:ellipsis;transition:all .15s ease;white-space:nowrap}.toc-link:hover{background:#edeae1;background:var(--bg-sidebar-darker,#edeae1);color:#2d2d2d;color:var(--text-primary,#2d2d2d)}.toc-link.active{background:#fff;background:var(--bg-paper,#fff);border-left:2px solid #2d2d2d;border-left:2px solid var(--accent,#2d2d2d);color:#2d2d2d;color:var(--accent,#2d2d2d);font-weight:500;padding-left:8px}.toc-level-1>.toc-link{font-weight:600}.toc-level-2>.toc-link{font-size:13px}.toc-level-3>.toc-link{font-size:12px}.toc-level-4>.toc-link,.toc-level-5>.toc-link,.toc-level-6>.toc-link{font-size:12px;opacity:.9}.ai-bubble-menu{background:#fff;background:var(--bg-paper,#fff);border:1px solid #e6e2d6;border:1px solid var(--line-color,#e6e2d6);border-radius:8px;box-shadow:0 4px 20px #00000026;padding:8px}.ai-actions-row{display:flex;flex-wrap:wrap;gap:4px}.ai-action-button{align-items:center;background:#f5f2eb;background:var(--bg-tertiary,#f5f2eb);border:none;border-radius:6px;cursor:pointer;display:flex;font-size:12px;gap:4px;padding:6px 10px;transition:all .15s ease;white-space:nowrap}.ai-action-button:hover{background:#edeae1;background:var(--bg-sidebar-darker,#edeae1);transform:translateY(-1px)}.ai-action-icon{font-size:14px}.ai-action-label{color:#2d2d2d;color:var(--text-primary,#2d2d2d);font-weight:500}.ai-custom-button{background:#edeae1;background:var(--bg-sidebar-darker,#edeae1)}.ai-custom-button:hover{background:#2d2d2d;background:var(--accent,#2d2d2d)}.ai-custom-button:hover .ai-action-label{color:#fff}.ai-processing{align-items:center;color:#757575;color:var(--text-secondary,#757575);display:flex;gap:8px;padding:8px 16px}.ai-spinner{animation:spin 1s linear infinite}.ai-custom-prompt-row{margin-top:8px;width:100%}.ai-custom-input-full{background:#fff;background:var(--bg-paper,#fff);border:1px solid #e6e2d6;border:1px solid var(--line-color,#e6e2d6);border-radius:6px;color:#2d2d2d;color:var(--text-primary,#2d2d2d);font-size:13px;height:36px;padding:0 12px;transition:all .15s ease;width:100%}.ai-custom-input-full:focus{border-color:#2d2d2d;border-color:var(--accent,#2d2d2d);box-shadow:0 0 0 2px #2d2d2d1a;box-shadow:0 0 0 2px var(--focus-ring,#2d2d2d1a);outline:none}.ai-custom-input-full::placeholder{color:#757575;color:var(--text-secondary,#757575);font-size:12px}.ai-error{align-items:flex-start;background:#fee;border:1px solid #fcc;border-radius:6px;color:#dc3545;display:flex;font-size:12px;gap:8px;line-height:1.4;margin-top:8px;padding:10px 12px}.error-icon{flex-shrink:0;font-size:14px}.error-message{word-wrap:break-word;flex:1 1}.error-close{align-items:center;background:#0000;border:none;border-radius:3px;color:#dc3545;cursor:pointer;display:flex;flex-shrink:0;font-size:14px;height:20px;justify-content:center;line-height:1;width:20px}.error-close:hover{background:#dc35451a}@media (max-width:1024px){.toc-sidebar{min-width:200px;width:200px}}@media (max-width:768px){.toc-sidebar{display:none}.tiptap-editor-main .ProseMirror{padding:20px}.tiptap-toolbar{padding:6px 8px}.toolbar-select{font-size:12px}.font-select{min-width:100px}.ai-actions-row{flex-direction:column}.ai-custom-input{width:180px}}.theme-dark .tiptap-editor-wrapper{--bg-paper:#1a1a1a;--bg-tertiary:#2d2d2d;--bg-sidebar-darker:#252525;--text-primary:#e0e0e0;--text-secondary:#999;--line-color:#404040;--accent:#4da3ff;--accent-hover:#6bb3ff;--success:#4caf50;--focus-ring:#4da3ff33}.theme-dark .ai-custom-input-full,.theme-dark .link-input,.theme-dark .toolbar-select{background:#2d2d2d;border-color:#404040;color:#e0e0e0}.theme-dark .ai-bubble-menu{background:#2d2d2d;border-color:#404040}.theme-dark .ai-action-button{background:#1a1a1a}.theme-dark .tiptap-editor-main .ProseMirror pre{background:#0d0d0d}.generator-page-container{background:var(--bg-app);display:flex;height:100%;overflow:hidden;position:relative}.main-generator-area{display:flex;flex-direction:column;flex-grow:1;overflow-y:auto;padding:0;position:relative}.upload-container{margin:0 auto;max-width:900px;padding:40px;width:100%}.upload-step{margin-bottom:50px}.step-title{color:var(--text-primary);font-size:18px;font-weight:600;margin-bottom:8px}.step-desc{color:var(--text-secondary);font-size:14px;margin-bottom:20px}.dropzone{background:#ffffff80;border:2px dashed #d1cfc7;border-radius:16px;cursor:pointer;padding:60px;text-align:center;transition:all .2s}.dropzone.dragover,.dropzone:hover{background:#fffc;border-color:var(--accent)}.dz-content{flex-direction:column;gap:12px}.dz-content,.icon-circle{align-items:center;display:flex}.icon-circle{background:#ebe7de;border-radius:50%;color:var(--text-primary);height:48px;justify-content:center;width:48px}.icon-circle.success{background:#e3f2e6;color:var(--success)}.dz-text{color:var(--text-primary);font-size:16px;margin:0}.dz-sub{color:var(--text-secondary);font-size:13px;margin:0}.workflow-grid{grid-gap:20px;display:grid;gap:20px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}.workflow-card{cursor:pointer;position:relative}.workflow-card input{opacity:0;position:absolute}.card-content{background:#fff;border:1px solid var(--line-color);border-radius:12px;display:flex;flex-direction:column;gap:12px;height:100%;padding:24px;transition:all .2s}.card-icon{color:var(--text-secondary)}.card-title{color:var(--text-primary);font-size:15px;font-weight:600;margin:0}.card-desc{color:var(--text-secondary);font-size:13px;line-height:1.5;margin:0}.workflow-card.selected .card-content{border-color:var(--accent);box-shadow:0 0 0 2px var(--focus-ring)}.workflow-card.selected .card-content .card-icon{color:var(--accent)}.config-sidebar{background:#fff;border-left:1px solid var(--line-color);display:flex;flex-direction:column;flex-shrink:0;gap:24px;overflow-y:auto;padding:24px;transition:width .3s ease;width:440px}.config-sidebar.collapsed{justify-content:flex-end;left:280px;padding:16px 24px;position:fixed;right:440px;transition:right .3s ease;z-index:50}.config-header{align-items:center;background:var(--bg-primary);border:1px solid var(--border-color);color:var(--text-primary);display:flex;font-size:1rem;justify-content:space-between;margin-bottom:12px;padding:.75rem;transition:border-color .2s}.config-header h3{font-size:.85rem;font-weight:600;margin:0}.config-header .icon-btn{align-items:center;background:#fff;border:1px solid var(--line-color);border-radius:6px;cursor:pointer;display:flex;justify-content:center;padding:6px;transition:all .2s;z-index:100}.config-header .icon-btn:hover{background:var(--bg-tertiary);border-color:var(--accent)}.theme-dark .config-header .icon-btn{background:var(--bg-paper);border-color:var(--line-color)}.theme-dark .config-header .icon-btn:hover{background:var(--bg-tertiary);border-color:var(--accent)}.config-section{border:1px solid var(--line-color);border-radius:8px;margin-bottom:12px;overflow:hidden}.config-summary{align-items:center;background:#fafafa;cursor:pointer;display:flex;font-size:13px;font-weight:600;justify-content:space-between;padding:12px 16px;-webkit-user-select:none;user-select:none}.config-details{background:#fff;border-top:1px solid var(--line-color);display:flex;flex-direction:column;gap:16px;padding:16px}.config-details.hidden{display:none}.form-group{gap:6px}.form-label{color:var(--text-secondary);font-size:12px;font-weight:500}.form-input,.form-select,.form-textarea{background:#fafafa;border:1px solid var(--line-color);border-radius:6px;font-family:inherit;font-size:13px;padding:8px 12px;width:100%}.form-input:focus,.form-select:focus,.form-textarea:focus{background:#fff;border-color:var(--accent)}.editor-view{align-items:center;display:flex;flex-direction:column;padding-bottom:60px;width:100%}.document-sheet{background:var(--bg-paper);box-shadow:0 4px 30px #0000000a;color:#1a1a1a;font-family:Lora,serif;font-size:18px;line-height:1.8;margin-top:40px;max-width:800px;min-height:1000px;padding:60px 80px;width:100%}.loader-overlay{align-items:center;background:#f5f2ebe6;display:flex;flex-direction:column;gap:16px;inset:0;justify-content:center;position:absolute;z-index:99}.form-actions-bar{background:#fff;border-top:1px solid var(--line-color);bottom:0;display:flex;gap:12px;justify-content:flex-end;left:280px;padding:16px 24px;position:fixed;right:300px;transition:right .3s ease;z-index:50}.form-actions-bar.full-width{right:0}.quill-container{padding:0}.quill-container .ql-container{border:none;font-family:Lora,serif;font-size:16px;line-height:1.8;min-height:800px}.quill-container .ql-editor{min-height:800px;padding:60px 80px}.quill-container .ql-toolbar{background:#fff;border:none;border-bottom:1px solid var(--line-color);padding:12px 20px;position:sticky;top:0;z-index:10}.quill-container .ql-editor.ql-blank:before{color:var(--text-secondary);font-style:normal;left:80px}.quill-container .ql-editor h1,.quill-container .ql-editor h2,.quill-container .ql-editor h3{font-family:Lora,serif;font-weight:600;margin-bottom:16px}.quill-container .ql-editor h1{font-size:28px}.quill-container .ql-editor h2{font-size:22px}.quill-container .ql-editor h3{font-size:18px}.quill-container .ql-editor p{margin-bottom:16px}.quill-container .ql-editor ol,.quill-container .ql-editor ul{margin-bottom:16px;padding-left:24px}.quill-container .ql-editor blockquote{border-left:3px solid var(--accent);color:var(--text-secondary);font-style:italic;margin-left:0;padding-left:20px}.theme-dark .dropzone{background:#24242480;border-color:#3a3a3a}.theme-dark .dropzone.dragover,.theme-dark .dropzone:hover{background:#242424cc;border-color:var(--accent)}.theme-dark .icon-circle{background:#2f2f2f}.theme-dark .icon-circle.success{background:#5fb57426;color:var(--success)}.theme-dark .card-content,.theme-dark .config-sidebar{background:var(--bg-paper)}.theme-dark .config-summary{background:var(--bg-tertiary)}.theme-dark .config-details{background:var(--bg-paper)}.theme-dark .form-input,.theme-dark .form-select,.theme-dark .form-textarea{background:var(--bg-tertiary);border-color:var(--line-color);color:var(--text-primary)}.theme-dark .form-input:focus,.theme-dark .form-select:focus,.theme-dark .form-textarea:focus{background:var(--bg-paper);border-color:var(--accent)}.theme-dark .document-sheet{color:var(--text-primary)}.theme-dark .loader-overlay{background:#1a1a1ae6}.theme-dark .form-actions-bar,.theme-dark .quill-container .ql-toolbar{background:var(--bg-paper)}@media (max-width:1024px){.config-sidebar{padding:20px;width:280px}.form-actions-bar{right:280px}.form-actions-bar.full-width{right:0}.document-sheet,.quill-container .ql-editor{padding:40px 60px}}@media (max-width:768px){.generator-page-container{flex-direction:column}.main-generator-area{padding-bottom:140px;width:100%}.top-bar{height:56px;padding:0 16px}.top-bar .doc-title{font-size:16px}.config-sidebar{bottom:0;box-shadow:-4px 0 20px #0000001a;max-width:320px;padding:20px;position:fixed;right:0;top:0;transform:translateX(100%);transition:transform .3s ease;width:100%;z-index:150}.config-sidebar:not(.collapsed){transform:translateX(0)}.config-sidebar.collapsed{transform:translateX(100%);width:0}.upload-container{max-width:100%;padding:20px}.upload-step{margin-bottom:32px}.step-title{font-size:16px}.step-desc{font-size:13px;margin-bottom:16px}.dropzone{border-radius:12px;padding:40px 20px}.dz-text{font-size:14px}.icon-circle{height:40px;width:40px}.icon-circle svg{height:20px;width:20px}.workflow-grid{gap:12px;grid-template-columns:1fr}.card-content{align-items:center;flex-direction:row;gap:16px;padding:16px}.card-icon{flex-shrink:0}.card-title{font-size:14px;margin:0}.card-desc{display:none;font-size:12px}.form-actions-bar{background:var(--bg-paper);border-top:1px solid var(--line-color);bottom:64px;left:0;padding:12px 16px calc(12px + env(safe-area-inset-bottom, 0));position:fixed;right:0;z-index:100}.form-actions-bar.full-width{right:0}.form-actions-bar .btn-primary{font-size:15px;min-width:0;min-width:auto;padding:14px 24px;width:100%}.form-actions-bar .btn-secondary{flex:1 1}.editor-view{padding:0 0 80px}.document-sheet{border-radius:0;box-shadow:none;margin-top:20px;min-height:auto;padding:24px 16px}.quill-container .ql-editor{min-height:400px;padding:24px 16px}.quill-container .ql-toolbar{overflow-x:auto;padding:8px 12px;white-space:nowrap}.quill-container .ql-editor.ql-blank:before{left:16px}.loader-overlay h3{font-size:18px}}@media (max-width:480px){.upload-container{padding:16px}.dropzone{padding:32px 16px}.card-content{padding:14px}.form-actions-bar{padding:10px 12px}.form-actions-bar .btn-primary{font-size:14px;padding:12px 20px}}@media (max-width:768px){.config-sidebar:before{background:#0000004d;bottom:0;content:"";left:0;opacity:0;pointer-events:none;position:fixed;right:0;top:0;transition:opacity .3s ease;z-index:-1}.config-sidebar:not(.collapsed):before{opacity:1;pointer-events:auto}}.home-page{background:var(--bg-app);color:var(--text-primary);overflow-x:hidden}.landing-nav{align-items:center;display:flex;justify-content:space-between;margin:0 auto;max-width:1200px;padding:24px 40px;position:relative;z-index:10}.landing-nav .brand{align-items:center;color:inherit;display:flex;gap:10px;text-decoration:none}.landing-nav .brand-name{color:var(--text-primary);font-size:20px;font-weight:600}.nav-links{align-items:center;display:flex;gap:24px}.nav-link{background:none;border:none;color:var(--text-secondary);cursor:pointer;font-size:14px;font-weight:500;text-decoration:none;transition:color .2s}.nav-link:hover{color:var(--text-primary)}.hero-section{margin:0 auto;max-width:1000px;overflow:hidden;padding:80px 20px 0;position:relative;text-align:center}.hero-badge{align-items:center;background:#ebe7de;border-radius:20px;display:inline-flex;font-size:12px;font-weight:600;gap:6px;letter-spacing:.05em;margin-bottom:24px;padding:6px 12px;text-transform:uppercase}.hero-badge,.hero-title{color:var(--text-primary)}.hero-title{font-family:Lora,serif;font-size:56px;font-weight:500;letter-spacing:-.02em;line-height:1.1;margin:0 0 24px}.hero-subtitle{color:var(--text-secondary);font-size:18px;line-height:1.6;margin:0 auto 40px;max-width:600px}.hero-actions{display:flex;gap:16px;justify-content:center;margin-bottom:80px}.hero-actions .btn-primary,.hero-actions .btn-secondary{min-width:160px;width:auto}.mobile-actions{align-items:center;display:none;gap:12px}.hamburger-btn{align-items:center;background:none;border:none;border-radius:8px;color:var(--text-primary);cursor:pointer;display:flex;justify-content:center;padding:8px;transition:background .2s}.hamburger-btn:hover{background:#0000000d}.mobile-login-btn{color:var(--text-primary);font-size:14px;font-weight:500;padding:8px 12px;text-decoration:none}.landing-mobile-menu{background:var(--bg-app);display:flex;flex-direction:column;inset:0;opacity:0;padding:20px;pointer-events:none;position:fixed;transition:opacity .3s ease;z-index:200}.landing-mobile-menu.active{opacity:1;pointer-events:auto}.mobile-menu-header{align-items:center;border-bottom:1px solid var(--line-color);display:flex;justify-content:space-between;margin-bottom:40px;padding-bottom:20px}.mobile-menu-brand{font-size:18px;font-weight:600;gap:10px}.close-menu-btn,.mobile-menu-brand{align-items:center;color:var(--text-primary);display:flex}.close-menu-btn{background:none;border:none;border-radius:8px;cursor:pointer;justify-content:center;padding:8px;transition:background .2s}.close-menu-btn:hover{background:#0000000d}.mobile-menu-links{display:flex;flex:1 1;flex-direction:column;gap:24px}.mobile-menu-links .mobile-link{color:var(--text-primary);font-family:Lora,serif;font-size:20px;font-weight:500;padding:12px 0;text-decoration:none;transition:color .2s}.mobile-menu-links .mobile-link:hover{color:var(--text-secondary)}.mobile-menu-cta{align-items:center;background:var(--accent);border-radius:12px;color:#fff;display:flex;font-size:16px;font-weight:500;justify-content:center;margin-bottom:20px;margin-top:auto;padding:16px 24px;text-decoration:none}.app-preview-container{background:#fff;border:1px solid var(--line-color);border-bottom:none;border-radius:16px 16px 0 0;box-shadow:0 20px 80px -10px #00000026;height:400px;margin:0 auto;max-width:900px;overflow:hidden;position:relative;width:100%}.preview-overlay{background:linear-gradient(180deg,#f5f2eb00 0,#f5f2eb 90%);inset:0;pointer-events:none;position:absolute;z-index:10}.mock-app{display:flex;height:100%;width:100%}.mock-sidebar{background:#f9f7f2;border-right:1px solid #eee;display:flex;flex-direction:column;gap:16px;padding:20px;width:220px}.mock-line{background:#ebe7de;border-radius:4px;height:8px;width:100%}.mock-line.short{width:60%}.mock-main{background:#fff;flex:1 1;padding:30px}.mock-header{display:flex;justify-content:space-between;margin-bottom:30px}.mock-content-block{background:#f5f5f5;border-radius:8px;height:120px;margin-bottom:20px}.features-section{margin:0 auto;max-width:1200px;padding:80px 20px}.section-intro{margin:0 auto 60px;max-width:600px;text-align:center}.section-intro h2{color:var(--text-primary);font-family:Lora,serif;font-size:32px;margin-bottom:16px}.section-intro p{color:var(--text-secondary);line-height:1.6}.features-grid{grid-gap:24px;display:grid;gap:24px;grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}.feature-item{background:#fff;border:1px solid var(--line-color);border-radius:16px;padding:28px;transition:all .3s ease}.feature-item:hover{border-color:var(--accent);box-shadow:0 8px 30px #0000000f;transform:translateY(-2px)}.feature-icon{align-items:center;background:#ebe7de;border-radius:14px;color:var(--text-primary);display:flex;height:52px;justify-content:center;margin-bottom:20px;width:52px}.feature-icon svg{height:24px;width:24px}.feature-item h3{color:var(--text-primary);font-size:18px;font-weight:600;margin-bottom:12px}.feature-item p{color:var(--text-secondary);font-size:14px;line-height:1.6;margin:0}.pricing-container{margin:0 auto;max-width:1000px;padding:40px;text-align:center;width:100%}.pricing-header{margin-bottom:50px}.pricing-header h2{color:var(--text-primary);font-size:28px;font-weight:600;margin-bottom:12px}.pricing-header p{color:var(--text-secondary);margin-bottom:24px}.pricing-toggle{align-items:center;background:#ebe7de;border-radius:24px;cursor:pointer;display:inline-flex;gap:12px;padding:4px;position:relative}.toggle-label{border-radius:20px;color:var(--text-secondary);font-size:13px;font-weight:500;padding:6px 16px;transition:all .3s}.toggle-label.active{background:#fff;box-shadow:0 2px 4px #0000000d;color:var(--text-primary)}.pricing-grid{grid-gap:24px;align-items:stretch;gap:24px;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}.pricing-card{background:#fff;border:1px solid var(--line-color);text-align:left}.pricing-card:hover{border-color:var(--accent);box-shadow:0 8px 30px #0000000f;transform:translateY(-2px)}.pricing-card.featured{border-color:var(--accent);box-shadow:0 12px 40px #00000014}.popular-badge{background:var(--accent);border-radius:12px;color:#fff;font-size:11px;font-weight:600;left:50%;padding:4px 12px;position:absolute;text-transform:uppercase;top:-12px;transform:translateX(-50%)}.plan-name{font-size:16px;font-weight:600;margin-bottom:8px}.plan-price{color:var(--text-primary);font-size:36px;font-weight:700;letter-spacing:-1px;margin-bottom:8px}.plan-price span{font-weight:500;letter-spacing:normal}.plan-desc,.plan-price span{color:var(--text-secondary);font-size:14px}.plan-desc{height:40px;margin-bottom:24px}.feature-list{list-style:none;margin:0;padding:0}.feature-list li{align-items:center;color:var(--text-primary);display:flex;font-size:14px;gap:10px;margin-bottom:12px}.landing-footer{border-top:1px solid var(--line-color);color:var(--text-secondary);font-size:14px;margin-top:80px;padding:60px 20px;text-align:center}@media (max-width:900px){.features-grid{gap:24px;grid-template-columns:repeat(2,1fr)}.pricing-grid{grid-template-columns:1fr;margin:0 auto;max-width:400px}}@media (max-width:768px){.landing-nav{padding:calc(16px + env(safe-area-inset-top, 0px)) 20px 16px}.landing-nav .brand-name{font-size:18px}.landing-nav .logo-mark,.landing-nav .logo-mark img{height:28px;width:28px}.nav-links.desktop-only{display:none}.mobile-actions{display:flex}.hero-section{padding:40px 20px 0}.hero-title{font-size:32px;line-height:1.2}.hero-subtitle{font-size:15px;margin-bottom:32px}.hero-badge{font-size:11px;padding:5px 10px}.hero-actions{flex-direction:column;gap:12px;margin-bottom:40px}.hero-actions .btn-primary,.hero-actions .btn-secondary{justify-content:center;min-width:0;min-width:auto;text-align:center;width:100%}.mock-sidebar{display:none}.app-preview-container{border-radius:12px 12px 0 0;height:250px}.mock-main{padding:16px}.features-section{padding:60px 20px}.section-intro h2{font-size:26px}.features-grid{gap:16px;grid-template-columns:1fr}.feature-item{padding:20px}.feature-icon{height:40px;margin-bottom:16px;width:40px}.pricing-header h2{font-size:24px}.pricing-card{padding:24px}.plan-price{font-size:32px}.landing-footer{margin-top:40px;padding:40px 20px}}@media (max-width:480px){.landing-nav{padding:calc(12px + env(safe-area-inset-top, 0px)) 16px 12px}.hero-title{font-size:28px}.hero-subtitle{font-size:14px}.app-preview-container{height:200px}.pricing-toggle{flex-wrap:wrap;justify-content:center}}.theme-dark .hero-badge{background:#2f2f2f;color:var(--text-primary)}.theme-dark .close-menu-btn:hover,.theme-dark .hamburger-btn:hover{background:#ffffff0d}.theme-dark .mobile-menu-cta{background:var(--accent);color:#1a1a1a}.theme-dark .mobile-menu-cta:hover{background:var(--accent-hover)}.theme-dark .app-preview-container{background:var(--bg-paper);border-color:var(--line-color);box-shadow:0 20px 80px -10px #0006}.theme-dark .preview-overlay{background:linear-gradient(180deg,#1a1a1a00 0,#1a1a1a 90%)}.theme-dark .mock-sidebar{background:#1f1f1f;border-right-color:var(--line-color)}.theme-dark .mock-line{background:#2f2f2f}.theme-dark .mock-main{background:var(--bg-paper)}.theme-dark .mock-content-block{background:#1a1a1a}.theme-dark .feature-item{background:var(--bg-paper);border-color:var(--line-color)}.theme-dark .feature-item:hover{border-color:var(--accent);box-shadow:0 8px 30px #0000004d}.theme-dark .feature-icon{background:#2f2f2f;color:var(--text-primary)}.theme-dark .pricing-toggle{background:#2f2f2f}.theme-dark .toggle-label{color:var(--text-secondary)}.theme-dark .toggle-label.active{background:var(--bg-paper);box-shadow:0 2px 4px #0000004d;color:var(--text-primary)}.theme-dark .pricing-card{background:var(--bg-paper);border-color:var(--line-color)}.theme-dark .pricing-card:hover{border-color:var(--accent);box-shadow:0 8px 30px #0000004d}.theme-dark .pricing-card.featured{border-color:var(--accent);box-shadow:0 12px 40px #0006}.theme-dark .popular-badge{background:var(--accent);color:#1a1a1a}.help-container{margin:0 10vw;max-width:80vw;padding:32px}.help-header-section{margin-bottom:64px;text-align:center}.help-main-title{-webkit-text-fill-color:#0000;background:var(--gradient-primary);-webkit-background-clip:text;background-clip:text;font-size:3rem;font-weight:700;margin-bottom:24px}.help-main-subtitle{color:var(--text-secondary);font-size:1.25rem;line-height:1.6;margin:0 auto;max-width:700px}.help-categories-grid{grid-gap:32px;display:grid;gap:32px;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));margin-bottom:64px}.help-category-card,.help-category-card2{background:var(--background-dark);border:1px solid var(--border-color);border-radius:16px;display:flex;flex-direction:column;height:100%;padding:32px;transition:all .3s ease}.help-category-card2:hover,.help-category-card:hover{border-color:var(--primary-color);box-shadow:var(--shadow-lg);transform:translateY(-4px)}.help-category-title{align-items:center;color:var(--text-primary);display:flex;font-size:1.5rem;font-weight:600;gap:16px;margin-bottom:16px}.help-category-title svg{color:var(--primary-color);height:28px;width:28px}.help-category-description{color:var(--text-secondary);font-size:1rem;line-height:1.6;margin-bottom:24px}.help-topic-list{display:flex;flex-direction:column;flex-grow:1;gap:12px;list-style:none;margin:0;padding:0}.help-topic-item{background:#4d9fff0d;border:1px solid var(--border-color);border-radius:8px;color:var(--text-secondary);font-size:1rem;padding:12px 16px;transition:all .3s ease}.help-topic-item:hover{background:#4d9fff1a;border-color:var(--primary-color);color:var(--primary-color);transform:translateX(8px)}.help-faq-section{margin-bottom:64px}.help-faq-grid{grid-gap:32px;display:grid;gap:32px;grid-template-columns:repeat(auto-fit,minmax(400px,1fr))}.help-faq-card{background:var(--background-dark);border:1px solid var(--border-color);border-radius:16px;height:100%;padding:32px;transition:all .3s ease}.help-faq-card:hover{border-color:var(--primary-color);box-shadow:var(--shadow-lg);transform:translateY(-4px)}.help-faq-question{align-items:flex-start;color:var(--text-primary);display:flex;font-size:1.25rem;font-weight:600;gap:16px;margin-bottom:16px}.help-faq-question svg{color:var(--primary-color);flex-shrink:0;height:28px;margin-top:4px;width:28px}.help-faq-answer{color:var(--text-secondary);font-size:1rem;line-height:1.6;padding-left:44px}.help-contact-section{background:#4d9fff0d;border:1px solid var(--border-color);border-radius:24px;padding:48px;text-align:center}.help-contact-title{color:var(--text-primary);font-size:2rem;font-weight:600;margin-bottom:16px}.help-contact-text{color:var(--text-secondary);font-size:1.1rem;margin-bottom:32px;margin-left:auto;margin-right:auto;max-width:500px}.help-contact-button{align-items:center;background:var(--gradient-primary);border-radius:12px;color:#fff;display:inline-flex;font-size:1.1rem;font-weight:600;gap:12px;padding:16px 32px;text-decoration:none;transition:all .3s ease}.help-contact-button:hover{box-shadow:var(--shadow-lg);transform:translateY(-2px)}.help-contact-button svg{height:20px;width:20px}@media (max-width:1024px){.help-container{margin:0 5vw;max-width:90vw;padding:24px}.help-main-title{font-size:2.5rem}.help-main-subtitle{font-size:1.1rem}.help-faq-grid{grid-template-columns:1fr}}@media (max-width:768px){.help-container{margin:1rem 2.5vw 0;max-width:95vw;padding:16px 16px 100px}.help-header-section{margin-bottom:48px}.help-main-title{font-size:2rem}.help-category-card,.help-faq-card{padding:24px}.help-contact-section{padding:32px}.help-contact-title{font-size:1.75rem}.help-categories-grid{gap:16px;grid-template-columns:1fr}.help-category-title{font-size:1.25rem}.help-category-title svg{height:24px;width:24px}.help-faq-question{font-size:1.1rem}.help-faq-question svg{height:24px;width:24px}.help-faq-answer{font-size:.95rem;padding-left:40px}.help-contact-button{justify-content:center;padding:14px 24px;width:100%}}.auth-page{align-items:center;background:var(--bg-app);display:flex;justify-content:center;min-height:100vh;overflow:hidden;padding:24px;position:relative}.auth-container{animation:fadeInUp .4s ease;background:#fff;border:1px solid var(--line-color);border-radius:16px;box-shadow:0 4px 20px #0000000d;max-width:420px;padding:40px;position:relative;width:100%;z-index:1}.auth-header{margin-bottom:32px;text-align:center}.auth-title{color:var(--text-primary);font-family:Lora,serif;font-size:28px;font-weight:600;margin-bottom:8px}.auth-subtitle{color:var(--text-secondary);font-size:14px;line-height:1.5}.auth-form{gap:20px}.auth-field,.auth-form{display:flex;flex-direction:column}.auth-field{gap:6px}.auth-field label{color:var(--text-primary);font-size:13px;font-weight:600}.auth-field input{background:#fafafa;border:1px solid var(--line-color);border-radius:8px;color:var(--text-primary);font-family:Inter,sans-serif;font-size:14px;padding:10px 12px;transition:all .2s ease}.auth-field input:focus{background:#fff;border-color:var(--accent);box-shadow:0 0 0 3px var(--focus-ring);outline:none}.auth-field input::placeholder{color:#aaa}.auth-submit-button{align-items:center;background:var(--accent);border:none;border-radius:8px;color:#fff;cursor:pointer;display:flex;font-size:14px;font-weight:600;justify-content:center;margin-top:12px;padding:12px;transition:all .2s ease;width:100%}.auth-submit-button:hover:not(:disabled){background:var(--accent-hover)}.auth-submit-button:disabled{cursor:not-allowed;opacity:.6}.auth-anonymous-button{background:#0000;border:1px solid var(--line-color);border-radius:8px;color:var(--text-secondary);cursor:pointer;font-size:14px;font-weight:500;padding:10px;transition:all .2s ease;width:100%}.auth-anonymous-button:hover{background:#fafafa;border-color:#d1d1d1;color:var(--text-primary)}.auth-forgot-password{margin-top:-12px;text-align:right}.auth-link{background:none;border:none;color:var(--text-secondary);cursor:pointer;font-size:13px;padding:0;text-decoration:underline}.auth-link:hover{color:var(--text-primary)}.auth-divider{align-items:center;color:var(--text-secondary);display:flex;font-size:12px;font-weight:500;margin:24px 0}.auth-divider:after,.auth-divider:before{background:var(--line-color);content:"";flex:1 1;height:1px}.auth-divider span{padding:0 12px;text-transform:uppercase}.auth-toggle{color:var(--text-secondary);font-size:14px;margin-top:24px;text-align:center}.auth-toggle .auth-link{color:var(--accent);font-weight:600;text-decoration:none}.auth-toggle .auth-link:hover{text-decoration:underline}.auth-error{background:#fee2e2;border:1px solid #fecaca;border-radius:8px;color:#b91c1c}.auth-error,.auth-success{font-size:13px;margin-bottom:20px;padding:10px}.auth-success{background:#d1fae5;border:1px solid #a7f3d0;border-radius:8px;color:#047857;text-align:center}.spinner{animation:spin .8s linear infinite;border:2px solid #ffffff4d;border-top-color:#fff;height:16px;margin-right:8px;width:16px}@keyframes fadeInUp{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.theme-dark .auth-container{background:var(--bg-paper)}.theme-dark .auth-field input{background:var(--bg-tertiary);border-color:var(--line-color);color:var(--text-primary)}.theme-dark .auth-field input:focus{background:var(--bg-paper)}.theme-dark .auth-field input::placeholder{color:var(--text-secondary)}.theme-dark .auth-anonymous-button:hover{background:var(--bg-tertiary)}@media (max-width:480px){.auth-container{background:#0000;border:none;box-shadow:none;padding:30px 20px}}.pricing-card{backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);background:var(--background-dark);border:1px solid var(--border-color);border-radius:16px;display:flex;flex-direction:column;gap:24px;min-width:300px;padding:32px;position:relative;transition:all .3s ease}.pricing-card:hover{border-color:var(--primary-color);box-shadow:var(--shadow-lg);transform:translateY(-4px)}.pricing-card.popular{border:2px solid var(--primary-color);box-shadow:var(--shadow-glow)}.pricing-card.current{background:linear-gradient(145deg,#4d9fff1a,#6366f11a);border:2px solid var(--primary-color)}.current-badge,.popular-badge{background:var(--gradient-primary);border-radius:20px;box-shadow:var(--shadow-sm);color:#fff;font-size:.75rem;font-weight:600;padding:4px 12px;position:absolute;right:24px;top:-12px}.current-badge{background:var(--gradient-card);border:1px solid var(--primary-color)}.pricing-header{text-align:center}.plan-name{color:var(--text-primary);font-size:1.5rem;font-weight:700;margin-bottom:16px}.price-container{align-items:baseline;display:flex;gap:4px;justify-content:center;margin-bottom:12px}.currency{color:var(--text-primary);font-size:1.5rem;font-weight:600}.price{-webkit-text-fill-color:#0000;background:var(--gradient-primary);-webkit-background-clip:text;background-clip:text;font-size:3rem;font-weight:700;line-height:1}.interval{font-size:1rem}.description,.interval{color:var(--text-secondary)}.description{font-size:.95rem;line-height:1.5}.features-list{display:flex;flex:1 1;flex-direction:column;gap:12px;list-style:none;margin:0;padding:0}.feature-item{align-items:center;color:var(--text-secondary);display:flex;font-size:.95rem;gap:12px}.feature-item.included{color:var(--text-primary)}.feature-item.not-included{opacity:.5}.feature-icon{color:var(--primary-color);height:20px;width:20px}.feature-item.not-included .feature-icon{opacity:.5}.select-button{background:var(--gradient-primary);border:none;border-radius:12px;color:#fff;cursor:pointer;font-size:1rem;font-weight:600;overflow:hidden;padding:12px 24px;position:relative;transition:all .3s ease;width:100%}.select-button:hover:not(:disabled){box-shadow:var(--shadow-glow);transform:translateY(-2px)}.select-button:disabled{cursor:not-allowed;opacity:.7}.select-button.loading{color:#0000}.select-button.loading:after{animation:spin .8s linear infinite;border:2px solid #fff;border-radius:50%;border-top-color:#0000;content:"";height:20px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:20px}@media (max-width:768px){.pricing-card{min-width:100%;padding:24px}.price{font-size:2.5rem}.currency,.plan-name{font-size:1.25rem}}.page-container{margin:0 auto;max-width:1200px;padding:32px;width:100%}.page-title{-webkit-text-fill-color:#0000;background:var(--gradient-primary);-webkit-background-clip:text;background-clip:text;font-size:2.5rem;font-weight:700;margin-bottom:32px;text-align:center}.error-message{animation:fadeIn .3s ease;background:#dc26261a;border:1px solid #dc262633;border-radius:8px;color:#ef4444;font-size:.95rem;margin-bottom:24px;padding:12px 16px;text-align:center}.auth-error{align-items:center;background:var(--background-dark);color:var(--text-primary);display:flex;flex-direction:column;justify-content:center;min-height:100vh;padding:24px;text-align:center}.auth-error h2{color:#ef4444;font-size:1.5rem;margin-bottom:16px}.auth-error p{color:var(--text-secondary);line-height:1.6;max-width:500px}.billing-cycle-toggle{align-items:center;background-color:var(--background-dark);border:1px solid var(--border-color);border-radius:30px;box-shadow:0 2px 4px #0000001a;display:flex;justify-content:center;margin-bottom:32px;margin-left:auto;margin-right:auto;padding:6px;width:fit-content}.billing-cycle-toggle button{background-color:initial;border:none;border-radius:25px;color:var(--text-secondary);cursor:pointer;font-weight:600;min-width:100px;padding:10px 20px;position:relative;transition:all .3s ease;z-index:1}.billing-cycle-toggle button.active{background-color:var(--primary-color);box-shadow:0 2px 4px #0003;color:#fff}.discount-badge{background-color:var(--primary-color);border-radius:10px;color:#fff;font-size:.85em;margin-left:8px;padding:3px 7px;position:relative;top:-2px}.subscription-intro{color:var(--text-secondary);margin:0 auto 48px;max-width:800px;text-align:center}.subscription-intro p{font-size:1.1rem;margin-bottom:24px}.subscription-intro ul{display:flex;flex-wrap:wrap;gap:16px;justify-content:center;list-style:none;padding:0}.subscription-intro li{background:#4d9fff1a;border:1px solid var(--border-color);border-radius:20px;color:var(--text-primary);font-size:.95rem;padding:8px 16px}.pricing-grid{grid-gap:32px;display:grid;gap:32px;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));margin-bottom:48px;padding:0 16px}.subscription-footer{border-top:1px solid var(--border-color);color:var(--text-secondary);margin-top:32px;padding-top:32px;text-align:center}.subscription-footer p{margin-bottom:16px}.subscription-footer a{color:var(--primary-color);text-decoration:none;transition:color .3s ease}.subscription-footer a:hover{color:var(--primary-color-light);text-decoration:underline}.about-section{background:var(--background-dark);border:1px solid var(--border-color);border-radius:16px;margin-bottom:32px;padding:32px}.about-section h3{color:var(--text-primary);font-size:1.5rem;font-weight:600;margin-bottom:16px}.about-section p{color:var(--text-secondary);line-height:1.6;margin-bottom:16px}.faq-section{margin:0 auto;max-width:800px}.faq-item{background:var(--background-dark);border:1px solid var(--border-color);border-radius:12px;margin-bottom:16px;padding:24px}.faq-question{color:var(--text-primary);font-size:1.1rem;font-weight:600;margin-bottom:12px}.faq-answer{color:var(--text-secondary);line-height:1.6}@media (max-width:1024px){.page-container{padding:24px}.pricing-grid{gap:24px}}@media (max-width:768px){.page-container{margin-top:3.2rem;padding:16px}.page-title{font-size:2rem;margin-bottom:24px}.subscription-intro{margin-bottom:32px}.subscription-intro p{font-size:1rem}.pricing-grid{gap:16px;grid-template-columns:1fr;padding:0}.about-section,.faq-item{padding:20px}.billing-cycle-toggle{margin:0 auto 24px;width:90%}.billing-cycle-toggle button{font-size:.9rem;padding:8px 15px}}@media (max-width:480px){.page-title{font-size:1.75rem}.subscription-intro li{text-align:center;width:100%}.error-message{margin:0 12px 24px}}.dashboard-container{margin:0 auto;max-width:100%;min-height:100%;padding:40px;width:100%}.welcome-section{margin-bottom:32px}.welcome-section h2{color:var(--text-primary);font-size:24px;font-weight:600;margin-bottom:8px}.welcome-section p{color:var(--text-secondary);margin:0}.stats-grid{grid-gap:20px;display:grid;gap:20px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));margin-bottom:40px}.stat-card{background:#fff;border:1px solid var(--line-color);border-radius:12px;display:flex;flex-direction:column;gap:8px;padding:24px}.stat-icon{align-items:center;background:#f5f2eb;border-radius:8px;color:var(--text-primary);display:flex;height:40px;justify-content:center;margin-bottom:8px;width:40px}.stat-value{font-size:28px;font-weight:600}.stat-label{color:var(--text-secondary);font-size:13px}.dashboard-split{grid-gap:32px;display:grid;gap:32px;grid-template-columns:2fr 1fr}@media (max-width:1000px){.dashboard-split{grid-template-columns:1fr}}.section-header{margin-bottom:16px}.section-header h3{font-size:16px;font-weight:600}.activity-table{background:#fff;border:1px solid var(--line-color);border-radius:12px;overflow:hidden}.table-header,.table-row{align-items:center;display:grid;font-size:14px;grid-template-columns:1.5fr 1fr 1fr 1fr .5fr;padding:16px 24px}.table-header{background:#fafafa;color:var(--text-secondary);font-size:12px;font-weight:500;letter-spacing:.05em;text-transform:uppercase}.table-header,.table-row{border-bottom:1px solid var(--line-color)}.table-row{transition:background .1s}.table-row:last-child{border-bottom:none}.table-row:hover{background:#fafafa}.table-row.clickable{cursor:pointer}.row-title{align-items:center;display:flex;font-weight:500;gap:10px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-title svg{color:var(--text-secondary);flex-shrink:0;height:20px;width:20px}.icon-btn-small{align-items:center;background:none;border:none;border-radius:6px;color:var(--text-secondary);cursor:pointer;display:inline-flex;flex-shrink:0;justify-content:center;min-height:36px;min-width:36px;padding:8px;transition:all .2s}.icon-btn-small svg{background:none;border:none;flex-shrink:0;height:20px;width:20px}.icon-btn-small:hover{background:#eee;color:var(--text-primary)}.badge{background:#ebe7de;border-radius:4px;color:#555;display:inline-block;font-size:10px;font-weight:600;padding:4px 8px;text-transform:uppercase}.badge.success{background:#e3f2e6;color:#3a7f48}.badge.pending{background:#ebe7de;color:#555}.badge.running{background:#e6f0ff;color:#06c}.badge.failed{background:#ffebeb;color:#c00}.library-section{max-width:100%}.library-card{background:#fff;border:1px solid var(--line-color);border-radius:12px;display:flex;flex-direction:column;height:100%}.library-header{align-items:center;border-bottom:1px solid var(--line-color);display:flex;justify-content:space-between;padding:16px 20px}.library-header h4{font-size:14px;font-weight:600;margin:0}.library-list{list-style:none;margin:0;padding:0}.library-item{align-items:center;border-bottom:1px solid var(--line-color);cursor:pointer;display:flex;gap:12px;padding:16px 20px;transition:background .1s}.library-item:last-child{border-bottom:none}.library-item:hover{background:#fafafa}.file-icon{align-items:center;background:#f5f2eb;border-radius:8px;display:flex;height:36px;justify-content:center;width:36px}.file-info{flex-grow:1;min-width:0}.file-name{font-size:14px;margin-bottom:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-meta{align-items:center;color:var(--text-secondary);display:flex;font-size:11px;gap:8px}.meta-tag{background:#ebe7de;border-radius:4px;color:#555;font-weight:500;padding:2px 6px}.library-actions{border-top:1px solid var(--line-color);margin-top:auto;padding:16px 20px}.theme-dark .stat-card{background:var(--bg-paper);border-color:var(--line-color)}.theme-dark .stat-icon{background:#2f2f2f}.theme-dark .activity-table{background:var(--bg-paper)}.theme-dark .table-header{background:var(--bg-tertiary)}.theme-dark .table-row{background:var(--bg-paper)}.theme-dark .table-row:hover{background:var(--bg-tertiary)}.theme-dark .icon-btn-small:hover{background:#2f2f2f}.theme-dark .library-card{background:var(--bg-paper)}.theme-dark .library-item:hover{background:var(--bg-tertiary)}.theme-dark .file-icon{background:#2f2f2f}.theme-dark .meta-tag{background:#2f2f2f;color:var(--text-secondary)}.theme-dark .result-modal{background:var(--bg-paper)}.theme-dark .modal-content{background:var(--bg-tertiary)}.result-modal-overlay{align-items:center;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#00000080;display:flex;inset:0;justify-content:center;position:fixed;z-index:200}.result-modal{background:#fff;border-radius:12px;box-shadow:0 10px 25px #0000001a;display:flex;flex-direction:column;height:80vh;max-width:800px;width:90%}.modal-header{border-bottom:1px solid var(--line-color);padding:20px}.modal-header h2{font-size:18px;margin:0}.modal-content{background:#fafafa;flex:1 1;overflow:auto;padding:20px}.result-preview{font-family:monospace;font-size:14px;white-space:pre-wrap}.modal-actions{border-top:1px solid var(--line-color);display:flex;gap:12px;justify-content:flex-end;padding:20px}.modal-close{background:none;font-size:24px}@media (max-width:768px){.dashboard-container{padding:1rem}.welcome-section{margin-bottom:16px}.welcome-section h2{font-size:1.125rem}.welcome-section p{font-size:.8125rem}.stats-grid{gap:10px;grid-template-columns:repeat(2,1fr);margin-bottom:20px}.stat-card{padding:12px}.stat-icon{height:28px;margin-bottom:4px;width:28px}.stat-value{font-size:1.25rem}.stat-label{font-size:.625rem}.section-header h3{font-size:.875rem}.activity-table{background:#0000;border:none;border-radius:0}.table-header{display:none}.table-row{grid-gap:.25rem .5rem;align-items:center;background:#fff;border:1px solid var(--line-color);border-radius:10px;display:grid;gap:.25rem .5rem;grid-template-columns:1fr auto;grid-template-rows:auto auto auto;margin-bottom:.5rem;padding:.75rem}.table-row:last-child{margin-bottom:0}.table-row:hover{background:#fff}.theme-dark .table-row,.theme-dark .table-row:hover{background:var(--bg-paper)}.row-title{font-size:.8125rem;font-weight:500;grid-column:1;grid-row:1;margin:0;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.row-title svg{height:14px;width:14px}.icon-btn-small{align-self:center;grid-column:2;grid-row:1/4;min-height:36px;min-width:36px}.badge{font-size:.5625rem;grid-column:1;grid-row:2;justify-self:start;padding:2px 6px}.table-row>span:not(.badge):not(.row-title){color:var(--text-secondary);font-size:.6875rem;grid-column:1;grid-row:3;text-align:left}.table-row>div:nth-child(n+4),.table-row>span:nth-child(n+4){display:none}.library-section{max-width:100%}.library-item{padding:10px 12px}.file-icon{height:28px;width:28px}.file-name{font-size:.75rem}.file-meta{font-size:.625rem}.result-modal{height:90vh;margin:1rem;width:95%}.modal-header{padding:12px 16px}.modal-header h2{font-size:.9375rem}.modal-actions,.modal-content{padding:12px 16px}.modal-actions{flex-direction:column;gap:8px}.modal-actions button{justify-content:center;min-height:44px;width:100%}.btn-primary,.btn-secondary,button[class*=btn]{min-height:44px}}@media (max-width:480px){.dashboard-container{padding:.75rem}.welcome-section h2{font-size:1rem}.welcome-section p{font-size:.75rem}.stats-grid{gap:.5rem;grid-template-columns:1fr 1fr}.stat-card{padding:10px}.stat-value{font-size:1.125rem}.stat-label{font-size:.5625rem}.table-row{border-radius:8px;padding:.625rem}.row-title{font-size:.75rem}.badge{font-size:.5rem;padding:2px 5px}.library-item{padding:8px 10px}.file-icon{height:24px;width:24px}.file-name{font-size:.6875rem}}.edit-form{display:flex;flex-direction:column;gap:1rem}.edit-readonly-info{background-color:#f9fafb;background-color:var(--bg-secondary,#f9fafb);border-left:3px solid #3b82f6;border-left:3px solid var(--primary-color,#3b82f6);border-radius:6px;margin-top:1.5rem;padding:1rem}.edit-readonly-info p{color:#6b7280;color:var(--text-secondary,#6b7280);font-size:.9rem;margin:0 0 .75rem}.edit-readonly-info p:last-child{margin-bottom:0}.edit-readonly-info strong{font-weight:600}.edit-readonly-info strong,.readonly-summary{color:#374151;color:var(--text-primary,#374151)}.readonly-summary{background-color:#fff;border:1px solid #e5e7eb;border:1px solid var(--border-color,#e5e7eb);border-radius:6px;font-size:.9rem;line-height:1.6;margin-top:.5rem!important;padding:.75rem}.edit-form .form-group{display:flex;flex-direction:column;gap:.5rem}.edit-form .form-group label{color:#1f2937;color:var(--text-primary,#1f2937);font-size:.9rem;font-weight:500}.edit-form .required{color:#ef4444;color:var(--danger-color,#ef4444)}.edit-form input,.edit-form select{background-color:#fff;border:1px solid #d1d5db;border:1px solid var(--border-color,#d1d5db);border-radius:6px;color:#1f2937;color:var(--text-primary,#1f2937);font-size:.95rem;padding:.75rem;transition:all .2s}.edit-form input:focus,.edit-form select:focus{border-color:#3b82f6;border-color:var(--primary-color,#3b82f6);box-shadow:0 0 0 3px #3b82f61a;outline:none}.edit-form input:disabled,.edit-form select:disabled{background-color:#f3f4f6;background-color:var(--bg-secondary,#f3f4f6);cursor:not-allowed}.edit-form small{color:#6b7280;color:var(--text-secondary,#6b7280);font-size:.85rem;margin-top:-.25rem}.edit-form .form-row{grid-gap:1rem;display:grid;gap:1rem;grid-template-columns:1fr 1fr}@media (max-width:768px){.edit-form .form-row{grid-template-columns:1fr}.edit-readonly-info{padding:.75rem}.readonly-summary{font-size:.85rem;padding:.5rem}}.reference-document-card{background-color:#fff;border:1px solid #e5e7eb;border:1px solid var(--border-color,#e5e7eb);border-radius:12px;padding:1.5rem;transition:all .3s}.reference-document-card:hover{border-color:#3b82f6;border-color:var(--primary-color,#3b82f6);box-shadow:0 4px 12px #00000014}.doc-card-header{align-items:flex-start;display:flex;gap:1rem;justify-content:space-between;margin-bottom:1rem}.doc-card-title-section{display:flex;flex:1 1;gap:1rem;min-width:0}.doc-card-icon{color:#3b82f6;color:var(--primary-color,#3b82f6);flex-shrink:0;height:40px;width:40px}.doc-card-title{color:#1f2937;color:var(--text-primary,#1f2937);font-size:1.1rem;font-weight:600;margin:0 0 .5rem;word-break:break-word}.doc-card-badges{display:flex;flex-wrap:wrap;gap:.5rem}.doc-confidence-badge,.doc-status-badge,.doc-type-badge{align-items:center;border-radius:12px;color:#fff;display:inline-flex;font-size:.8rem;font-weight:500;padding:.25rem .75rem;white-space:nowrap}.doc-confidence-badge{font-size:.75rem}.doc-card-actions{display:flex;flex-shrink:0;gap:.5rem}.btn-icon-only{background-color:#f3f4f6;background-color:var(--bg-hover,#f3f4f6);border:1px solid #e5e7eb;border:1px solid var(--border-color,#e5e7eb);display:flex;padding:.5rem}.btn-icon-only svg{color:#6b7280;color:var(--text-secondary,#6b7280);height:20px;width:20px}.btn-icon-only:hover{background-color:#3b82f6;background-color:var(--primary-color,#3b82f6);border-color:#3b82f6;border-color:var(--primary-color,#3b82f6)}.btn-icon-only:hover svg{color:#fff}.btn-icon-only.btn-danger:hover{background-color:#ef4444;background-color:var(--danger-color,#ef4444);border-color:#ef4444;border-color:var(--danger-color,#ef4444)}.btn-icon-only:disabled{cursor:not-allowed;opacity:.5}.btn-icon-only:disabled:hover{background-color:#f3f4f6;background-color:var(--bg-hover,#f3f4f6);border-color:#e5e7eb;border-color:var(--border-color,#e5e7eb)}.btn-icon-only:disabled:hover svg{color:#6b7280;color:var(--text-secondary,#6b7280)}.btn-spinner-small{animation:spin .8s linear infinite;border:2px solid #e5e7eb;border-top-color:#3b82f6;border:2px solid var(--border-color,#e5e7eb);border-radius:50%;border-top-color:var(--primary-color,#3b82f6);height:20px;width:20px}.doc-card-body{display:flex;flex-direction:column;gap:1rem}.doc-card-summary{color:#374151;color:var(--text-primary,#374151);font-size:.95rem;line-height:1.6;margin:0}.doc-card-tags{display:flex;flex-wrap:wrap;gap:.5rem}.doc-tag{background-color:#f3f4f6;background-color:var(--bg-secondary,#f3f4f6);border:1px solid #e5e7eb;border:1px solid var(--border-color,#e5e7eb);border-radius:12px;color:#6b7280;color:var(--text-secondary,#6b7280);font-size:.85rem;padding:.25rem .75rem;white-space:nowrap}.doc-card-metadata{border-top:1px solid #e5e7eb;border-top:1px solid var(--border-color,#e5e7eb);display:flex;flex-wrap:wrap;gap:1rem;padding-top:.5rem}.doc-meta-item{align-items:center;color:#6b7280;color:var(--text-secondary,#6b7280);display:flex;font-size:.85rem;gap:.5rem}.doc-meta-item svg{color:#9ca3af;color:var(--text-tertiary,#9ca3af);height:16px;width:16px}.doc-card-optional-meta{background-color:#f9fafb;background-color:var(--bg-secondary,#f9fafb);border-radius:6px;display:flex;flex-wrap:wrap;gap:1.5rem;padding:.75rem}.doc-card-optional-meta .doc-meta-item{font-size:.9rem}.doc-card-optional-meta strong{color:#374151;color:var(--text-primary,#374151);margin-right:.25rem}.doc-card-sections{border-top:1px solid #e5e7eb;border-top:1px solid var(--border-color,#e5e7eb);margin-top:1rem;padding-top:1rem}.doc-card-sections h5{color:#1f2937;color:var(--text-primary,#1f2937);font-size:1rem;font-weight:600;margin:0 0 1rem}.doc-sections-list{display:flex;flex-direction:column;gap:.75rem}.doc-section-item{background-color:#f9fafb;background-color:var(--bg-secondary,#f9fafb);border-left:3px solid #3b82f6;border-left:3px solid var(--primary-color,#3b82f6);border-radius:6px;padding:.75rem}.doc-section-header{align-items:center;display:flex;gap:1rem;justify-content:space-between;margin-bottom:.5rem}.doc-section-header strong{color:#1f2937;color:var(--text-primary,#1f2937);font-size:.95rem}.doc-section-type{background-color:#fff;border:1px solid #e5e7eb;border:1px solid var(--border-color,#e5e7eb);border-radius:8px;font-size:.75rem;padding:.2rem .5rem;white-space:nowrap}.doc-section-content,.doc-section-type{color:#6b7280;color:var(--text-secondary,#6b7280)}.doc-section-content{font-size:.85rem;line-height:1.5;margin:0}@media (max-width:768px){.reference-document-card{padding:1rem}.doc-card-header{flex-direction:column}.doc-card-title-section{width:100%}.doc-card-actions{justify-content:flex-end;width:100%}.doc-card-badges{align-items:flex-start;flex-direction:column}.doc-card-metadata{flex-direction:column;gap:.5rem}.doc-card-optional-meta{flex-direction:column;gap:.75rem}.doc-section-header{align-items:flex-start;flex-direction:column}}.file-drop-zone{background-color:#f9fafb;background-color:var(--bg-secondary,#f9fafb);border:2px dashed #d1d5db;border:2px dashed var(--border-color,#d1d5db);border-radius:12px;cursor:pointer;margin-bottom:1.5rem;padding:2rem;text-align:center;transition:all .3s}.file-drop-zone:hover{background-color:#3b82f60d}.file-drop-zone.drag-active,.file-drop-zone:hover{border-color:#3b82f6;border-color:var(--primary-color,#3b82f6)}.file-drop-zone.drag-active{background-color:#3b82f61a;transform:scale(1.02)}.file-drop-zone.has-file{background-color:#10b9810d;border-color:#10b981;border-color:var(--success-color,#10b981);cursor:default}.file-drop-zone.has-file:hover{transform:none}.drop-zone-content{align-items:center;display:flex;flex-direction:column;gap:.75rem}.upload-icon{color:#3b82f6;color:var(--primary-color,#3b82f6);height:64px;margin-bottom:.5rem;width:64px}.drop-zone-text{color:#1f2937;color:var(--text-primary,#1f2937);font-size:1rem;margin:0}.drop-zone-text strong{color:#3b82f6;color:var(--primary-color,#3b82f6)}.drop-zone-hint{color:#6b7280;color:var(--text-secondary,#6b7280);font-size:.9rem;margin:0}.file-preview{align-items:center;background-color:#fff;border-radius:8px;display:flex;gap:1rem;padding:1rem}.file-icon{color:#3b82f6;color:var(--primary-color,#3b82f6);height:48px;width:48px}.file-info{flex:1 1;text-align:left}.file-name{color:#1f2937;color:var(--text-primary,#1f2937);margin:0 0 .25rem;word-break:break-all}.file-size{color:#6b7280;color:var(--text-secondary,#6b7280);font-size:.9rem;margin:0}.remove-file-btn{background-color:#f3f4f6;background-color:var(--bg-hover,#f3f4f6);border:none;border-radius:6px;cursor:pointer;flex-shrink:0;padding:.5rem;transition:all .2s}.remove-file-btn svg{color:#6b7280;color:var(--text-secondary,#6b7280);height:20px;width:20px}.remove-file-btn:hover{background-color:#ef4444;background-color:var(--danger-color,#ef4444)}.remove-file-btn:hover svg{color:#fff}.upload-form{display:flex;flex-direction:column;gap:1rem}.form-row{grid-template-columns:1fr 1fr}.form-group label{color:#1f2937;color:var(--text-primary,#1f2937);font-size:.9rem}.form-group .required{color:#ef4444;color:var(--danger-color,#ef4444)}.form-group input,.form-group select{background-color:#fff;border:1px solid #d1d5db;border:1px solid var(--border-color,#d1d5db);border-radius:6px;color:#1f2937;color:var(--text-primary,#1f2937);font-size:.95rem;padding:.75rem;transition:all .2s}.form-group input:focus,.form-group select:focus{border-color:#3b82f6;border-color:var(--primary-color,#3b82f6);box-shadow:0 0 0 3px #3b82f61a;outline:none}.form-group input:disabled,.form-group select:disabled{background-color:#f3f4f6;background-color:var(--bg-secondary,#f3f4f6);cursor:not-allowed}.form-group small{color:#6b7280;color:var(--text-secondary,#6b7280);font-size:.85rem}.processing-info{align-items:flex-start;background-color:#3b82f61a;border-left:4px solid #3b82f6;border-left:4px solid var(--primary-color,#3b82f6);border-radius:6px;display:flex;gap:1rem;margin-top:1rem;padding:1rem}.processing-icon{animation:pulse 2s ease-in-out infinite;color:#3b82f6;color:var(--primary-color,#3b82f6);flex-shrink:0;height:32px;width:32px}.processing-info h4{color:#1f2937;color:var(--text-primary,#1f2937);font-size:1rem;font-weight:600;margin:0 0 .5rem}.processing-info p{color:#6b7280;color:var(--text-secondary,#6b7280);font-size:.9rem;line-height:1.5;margin:0}.btn-spinner{display:inline-block;height:20px;margin-right:.5rem;width:20px}@media (max-width:768px){.file-drop-zone{padding:1.5rem 1rem}.upload-icon{height:48px;width:48px}.form-row{grid-template-columns:1fr}.file-preview{flex-direction:column}.file-info,.file-preview{text-align:center}}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.reference-documents{margin:0 auto;max-width:1200px;width:100%}.reference-documents-header{align-items:flex-start;display:flex;gap:2rem;justify-content:space-between;margin-bottom:1.5rem}.reference-documents-header h3{color:#1f2937;color:var(--text-primary,#1f2937);font-size:1.5rem;font-weight:600;margin:0 0 .5rem}.ref-docs-description{color:#6b7280;color:var(--text-secondary,#6b7280);font-size:.95rem;margin:0;max-width:600px}.reference-documents-controls{align-items:center;background-color:#f9fafb;background-color:var(--bg-secondary,#f9fafb);border-radius:8px;display:flex;gap:2rem;justify-content:space-between;margin-bottom:1.5rem;padding:1rem}.filters,.sort-controls{align-items:center;display:flex;gap:.75rem}.filters svg,.sort-controls svg{color:#6b7280;color:var(--text-secondary,#6b7280)}.filter-select,.sort-select{background-color:#fff;border:1px solid #d1d5db;border:1px solid var(--border-color,#d1d5db);border-radius:6px;color:#1f2937;color:var(--text-primary,#1f2937);cursor:pointer;font-size:.9rem;padding:.5rem .75rem;transition:all .2s}.filter-select:focus,.filter-select:hover,.sort-select:focus,.sort-select:hover{border-color:#3b82f6;border-color:var(--primary-color,#3b82f6)}.filter-select:focus,.sort-select:focus{box-shadow:0 0 0 3px #3b82f61a;outline:none}.sort-order-btn{background-color:#fff;border:1px solid #d1d5db;border:1px solid var(--border-color,#d1d5db);border-radius:6px;color:#1f2937;color:var(--text-primary,#1f2937);cursor:pointer;font-size:1.2rem;min-width:40px;padding:.5rem .75rem;transition:all .2s}.sort-order-btn:hover{background-color:#f3f4f6;background-color:var(--bg-hover,#f3f4f6);border-color:#3b82f6;border-color:var(--primary-color,#3b82f6)}.reference-documents-list{display:flex;flex-direction:column;gap:1rem}.ref-docs-loading{align-items:center;display:flex;flex-direction:column;justify-content:center;padding:4rem 2rem;text-align:center}.ref-docs-loading .spinner{animation:spin .8s linear infinite;border:3px solid #f3f4f6;border-top-color:#3b82f6;border:3px solid var(--bg-secondary,#f3f4f6);border-radius:50%;border-top-color:var(--primary-color,#3b82f6);height:40px;margin-bottom:1rem;width:40px}.ref-docs-loading p{color:#6b7280;color:var(--text-secondary,#6b7280);font-size:1rem}.ref-docs-empty{align-items:center;background-color:#f9fafb;background-color:var(--bg-secondary,#f9fafb);border:2px dashed #d1d5db;border:2px dashed var(--border-color,#d1d5db);border-radius:12px;display:flex;flex-direction:column;justify-content:center;padding:4rem 2rem;text-align:center}.ref-docs-empty .empty-icon{color:#9ca3af;color:var(--text-tertiary,#9ca3af);height:80px;margin-bottom:1.5rem;width:80px}.ref-docs-empty h3{color:#1f2937;color:var(--text-primary,#1f2937);font-size:1.5rem;font-weight:600;margin:0 0 .5rem}.ref-docs-empty p{color:#6b7280;color:var(--text-secondary,#6b7280);font-size:1rem;line-height:1.6;margin:0 0 2rem;max-width:500px}.ref-docs-pagination{align-items:center;background-color:#f9fafb;background-color:var(--bg-secondary,#f9fafb);border-radius:8px;display:flex;gap:1.5rem;justify-content:center;margin-top:2rem;padding:1.5rem 1rem}.pagination-info{color:#6b7280;color:var(--text-secondary,#6b7280);font-size:.95rem}@media (max-width:768px){.reference-documents-controls,.reference-documents-header{flex-direction:column;gap:1rem}.reference-documents-controls{align-items:stretch}.filters,.sort-controls{flex-wrap:wrap}.filter-select,.sort-select{flex:1 1;min-width:120px}.ref-docs-pagination{flex-direction:column;gap:1rem}.ref-docs-pagination .btn-secondary{width:100%}}.profile-page{margin:0 auto;max-width:1600px;min-height:100%;padding:2rem}.profile-header{align-items:flex-start;display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;margin-bottom:2rem}.profile-title h1{color:var(--text-primary);font-size:2rem;margin:0}.profile-title p{color:var(--text-secondary);margin:.5rem 0 0}.profile-actions{display:flex;gap:.75rem}.profile-auth-prompt{padding:4rem 2rem;text-align:center}.profile-auth-prompt h2{color:var(--text-primary);margin:0 0 1.5rem}.profile-layout{grid-gap:2rem;display:grid;gap:2rem;grid-template-columns:280px 1fr;min-height:calc(100vh - 200px)}.business-list{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:16px;height:fit-content;padding:1.5rem;position:sticky;top:2rem}.business-list h3{color:var(--text-secondary);font-size:1rem;letter-spacing:.05em;margin:0 0 1rem;text-transform:uppercase}.no-businesses{padding:2rem 1rem;text-align:center}.no-businesses .empty-icon{color:var(--text-secondary);height:48px;margin-bottom:1rem;width:48px}.no-businesses p{color:var(--text-secondary);margin:0 0 1rem}.business-items{display:flex;flex-direction:column;gap:.5rem}.business-item{align-items:center;background:var(--bg-primary);border:1px solid #0000;border-radius:10px;cursor:pointer;display:flex;gap:.75rem;padding:.75rem;text-align:left;transition:all .2s;width:100%}.business-item:hover{background:var(--bg-tertiary);border-color:var(--border-color)}.business-item.active{background:var(--accent-color);border-color:var(--accent-color);color:#fff}.business-item.active .business-desc{color:#fffc}.business-icon{flex-shrink:0;height:24px;width:24px}.business-item-info{display:flex;flex:1 1;flex-direction:column;gap:.125rem;min-width:0}.business-name{font-weight:500}.business-desc,.business-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.business-desc{color:var(--text-secondary);font-size:.75rem}.business-details{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:16px;overflow:hidden}.details-loading,.no-selection{align-items:center;display:flex;flex-direction:column;justify-content:center;padding:4rem 2rem;text-align:center}.details-loading .spinner{animation:spin 1s linear infinite;border:3px solid var(--border-color);border-radius:50%;border-top-color:var(--accent-color);height:40px;margin-bottom:1rem;width:40px}.no-selection .empty-icon{color:var(--text-secondary);height:64px;margin-bottom:1rem;width:64px}.no-selection h3{color:var(--text-primary);margin:0 0 .5rem}.no-selection p{color:var(--text-secondary);margin:0}.details-header{align-items:flex-start;border-bottom:1px solid var(--border-color);display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;padding:1.5rem}.details-title{align-items:center;display:flex;flex-wrap:wrap;gap:.75rem}.details-title h2{color:var(--text-primary);font-size:1.5rem;margin:0}.industry-badge{background:var(--accent-color);border-radius:20px;color:#fff;font-size:.75rem;font-weight:500;padding:.25rem .75rem}.details-actions{display:flex;flex-wrap:wrap;gap:.5rem;max-width:500px;width:100%}.details-actions .btn-danger,.details-actions .btn-secondary{flex:1 1;min-width:0}.details-actions .btn-primary{width:100%}.details-actions .btn-icon{flex-shrink:0;height:20px;width:20px}.details-tabs{border-bottom:1px solid var(--border-color);display:flex;gap:.5rem;overflow-x:auto;padding:0 1.5rem}.tab-btn{align-items:center;background:none;border:none;border-bottom:2px solid #0000;color:var(--text-secondary);cursor:pointer;display:flex;font-weight:500;gap:.5rem;margin-bottom:-1px;padding:1rem 1.25rem;transition:all .2s;white-space:nowrap}.tab-btn:hover{color:var(--text-primary)}.tab-btn.active{border-bottom-color:var(--accent-color);color:var(--accent-color)}.tab-icon{height:18px;width:18px}.tab-content{padding:1.5rem}.info-section{max-width:800px}.form-grid{grid-gap:1.5rem;display:grid;gap:1.5rem;grid-template-columns:repeat(2,1fr)}.form-group{display:flex;flex-direction:column;gap:.5rem}.form-group.full-width{grid-column:1/-1}.form-group label{color:var(--text-secondary);font-size:.875rem;font-weight:500}.form-group input,.form-group select,.form-group textarea{background:var(--bg-primary);border:1px solid var(--border-color);border-radius:8px;color:var(--text-primary);font-size:1rem;padding:.75rem;transition:border-color .2s}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:var(--accent-color);outline:none}.form-group textarea{min-height:80px;resize:vertical}.form-group p{color:var(--text-primary);margin:0;padding:.5rem 0}.form-row{grid-gap:1rem;display:grid;gap:1rem;grid-template-columns:repeat(2,1fr)}.section-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:1.5rem}.section-header h3{color:var(--text-primary);font-size:1.1rem;margin:0}.empty-section{background:var(--bg-tertiary);border-radius:12px;padding:3rem 2rem;text-align:center}.empty-section .empty-icon{color:var(--text-secondary);height:48px;margin-bottom:1rem;width:48px}.empty-section p{color:var(--text-secondary);margin:0 0 1rem}.items-grid{grid-gap:1rem;display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}.item-card{background:var(--bg-primary);border:1px solid var(--border-color);border-radius:12px;padding:1.25rem;transition:all .2s}.item-card:hover{border-color:var(--accent-color);box-shadow:0 4px 12px #0000001a}.item-header{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:.75rem}.item-header h4{color:var(--text-primary);font-size:1rem;margin:0}.item-card p{color:var(--text-secondary);font-size:.875rem;line-height:1.5;margin:0 0 .75rem}.item-meta{display:flex;flex-wrap:wrap;gap:.5rem}.item-category,.item-pricing{border-radius:4px;font-size:.75rem;font-weight:500;padding:.25rem .5rem}.item-category{background:#e0e7ff;color:#3730a3}.item-pricing{background:#d1fae5;color:#065f46}.team-grid{grid-gap:1.5rem;display:grid;gap:1.5rem;grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}.team-card{background:var(--bg-primary);border:1px solid var(--border-color);border-radius:16px;padding:1.5rem;text-align:center;transition:all .2s}.team-card:hover{border-color:var(--accent-color);box-shadow:0 4px 12px #0000001a}.team-header{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:1rem}.team-avatar{align-items:center;background:linear-gradient(135deg,var(--accent-color),#8b5cf6);border-radius:50%;color:#fff;display:flex;font-size:1.5rem;font-weight:600;height:56px;justify-content:center;margin:0 auto;width:56px}.team-card h4{color:var(--text-primary);font-size:1.1rem;margin:0 0 .25rem}.team-title{color:var(--accent-color);display:block;font-size:.875rem;font-weight:500;margin-bottom:.25rem}.team-role{display:block;font-size:.8rem;margin-bottom:.75rem}.team-bio,.team-role{color:var(--text-secondary)}.team-bio{font-size:.85rem;line-height:1.5;margin:0 0 .75rem}.team-experience{background:var(--bg-tertiary);border-radius:20px;color:var(--text-secondary);display:inline-block;font-size:.75rem;padding:.25rem .75rem}.btn-icon-only{align-items:center;background:#0000;border:none;border-radius:6px;color:var(--text-secondary);cursor:pointer;display:inline-flex;flex-shrink:0;justify-content:center;min-height:44px;min-width:44px;padding:8px;transition:all .2s}.btn-icon-only:hover{background:#fee2e2;color:#dc2626}.btn-icon-only svg{background:none;border:none;flex-shrink:0;height:16px;width:16px}.theme-dark .business-list{background:var(--bg-paper)}.theme-dark .business-item{background:var(--bg-tertiary)}.theme-dark .business-item:hover{background:#2f2f2f}.theme-dark .business-item.active{background:var(--accent);color:#1a1a1a}.theme-dark .business-item.active .business-desc{color:#1a1a1ab3}.theme-dark .business-details,.theme-dark .details-loading,.theme-dark .no-selection{background:var(--bg-paper)}.theme-dark .empty-section,.theme-dark .item-card{background:var(--bg-tertiary)}.theme-dark .item-card:hover{border-color:var(--accent);box-shadow:0 4px 12px #0000004d}.theme-dark .item-category{background:#5c9fcc26;color:var(--info)}.theme-dark .item-pricing{background:#5fb57426;color:var(--success)}.theme-dark .team-card{background:var(--bg-tertiary)}.theme-dark .team-card:hover{border-color:var(--accent);box-shadow:0 4px 12px #0000004d}.theme-dark .team-experience{background:#2f2f2f}.theme-dark .btn-icon-only:hover{background:#ff6b6b26;color:var(--error)}.modal{max-height:90vh;max-width:500px;overflow-y:auto}.modal-body .form-group{margin-bottom:1rem}.modal-body .form-group:last-child{margin-bottom:0}.warning-text{margin-top:.5rem}.modal-large{max-width:600px}.modal-xl{max-width:900px}.modal-subtitle{color:var(--text-secondary);font-size:.875rem;font-weight:400;margin:.25rem 0 0}.url-generator-info{background:var(--bg-tertiary);border-radius:12px;display:flex;gap:1rem;margin-bottom:1.5rem;padding:1rem}.url-generator-info .info-icon{color:var(--accent-color);flex-shrink:0;height:32px;width:32px}.url-generator-info h4{color:var(--text-primary);font-size:.875rem;margin:0 0 .5rem}.url-generator-info ul{color:var(--text-secondary);font-size:.8125rem;line-height:1.6;margin:0;padding-left:1.25rem}.url-generator-info li{margin-bottom:.25rem}.form-group small{color:var(--text-secondary);font-size:.75rem;margin-top:-.25rem}.generation-progress{align-items:center;background:var(--bg-tertiary);border-radius:12px;display:flex;gap:1rem;margin-top:1rem;padding:1.5rem}.generation-progress .spinner-icon{animation:spin 1s linear infinite;color:var(--accent-color);flex-shrink:0;height:32px;width:32px}.generation-progress h4{color:var(--text-primary);font-size:.9375rem;margin:0 0 .25rem}.generation-progress p{color:var(--text-secondary);font-size:.8125rem;margin:0}.btn-icon.spinner{animation:spin 1s linear infinite}.preview-modal-body{max-height:70vh;overflow-y:auto}.preview-section{margin-bottom:2rem}.preview-section:last-child{margin-bottom:0}.preview-section h4{border-bottom:2px solid var(--border-color);color:var(--text-primary);font-size:1rem;font-weight:600;margin:0 0 1rem;padding-bottom:.5rem}.preview-items{grid-gap:.75rem;display:grid;gap:.75rem}.preview-item{background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:8px;padding:1rem}.preview-item strong{color:var(--text-primary);display:block;font-size:.9375rem;margin-bottom:.5rem}.preview-item p{color:var(--text-secondary);font-size:.8125rem;line-height:1.5;margin:0}.preview-item .item-category{display:inline-block;margin-top:.5rem}.preview-item .team-title{display:inline;margin-left:0}.theme-dark .generation-progress,.theme-dark .preview-item,.theme-dark .url-generator-info{background:var(--bg-tertiary)}.theme-dark .preview-item{border-color:#333}@media (max-width:1024px){.profile-layout{grid-template-columns:1fr}.business-list{position:static}.business-items{flex-direction:row;flex-wrap:wrap}.business-item{flex:1 1 200px}}@media (max-width:768px){.profile-page{padding:1rem}.profile-header{align-items:stretch;flex-direction:column;margin-bottom:1rem}.profile-title h1{font-size:1.125rem;margin-bottom:.125rem}.profile-title p{font-size:.8125rem}.profile-actions{width:100%}.profile-actions .btn-primary{flex:1 1;font-size:.875rem;justify-content:center;min-height:44px}.btn-danger,.btn-primary,.btn-secondary{font-size:.875rem;min-height:44px;padding:.625rem .875rem}.business-list{border-radius:12px;padding:1rem}.business-list h3{font-size:.75rem;margin-bottom:.75rem}.business-item{padding:.625rem}.business-icon{height:20px;width:20px}.business-name{font-size:.8125rem}.business-desc{font-size:.6875rem}.details-header{flex-direction:column;padding:.875rem}.details-title h2{font-size:1rem}.industry-badge{font-size:.625rem;padding:.125rem .5rem}.details-actions{gap:.375rem;width:100%}.details-actions button{flex:1 1;font-size:.75rem;justify-content:center;min-height:40px;padding:.5rem .625rem}.details-tabs{gap:.25rem;padding:0 .875rem}.tab-btn{font-size:.75rem;min-height:40px;padding:.625rem .5rem}.tab-btn span{display:none}.tab-icon{height:16px;width:16px}.tab-content{padding:.875rem}.form-grid{gap:1rem;grid-template-columns:1fr}.form-group label{font-size:.75rem}.form-group input,.form-group select,.form-group textarea{font-size:.875rem;padding:.625rem}.form-row{grid-template-columns:1fr}.section-header h3{font-size:.9375rem}.items-grid,.team-grid{gap:.75rem;grid-template-columns:1fr}.item-card{border-radius:10px;padding:1rem}.item-header h4{font-size:.875rem}.item-card p{font-size:.75rem}.team-card{border-radius:12px;padding:1rem}.team-avatar{font-size:1.25rem;height:44px;width:44px}.team-card h4{font-size:.9375rem}.team-title{font-size:.75rem}.team-role{font-size:.6875rem}.team-bio{font-size:.75rem}.modal{border-radius:12px;margin:.75rem;max-height:calc(100vh - 1.5rem)}.modal-header{padding:1rem}.modal-header h3{font-size:1rem}.modal-body{padding:1rem}.modal-footer{flex-direction:column;gap:.5rem;padding:1rem}.modal-footer button{min-height:44px;width:100%}}@media (max-width:480px){.profile-page{padding:.75rem}.profile-title h1{font-size:1rem}.profile-title p{font-size:.75rem}.business-list{padding:.75rem}.business-list h3{font-size:.6875rem}.business-item{padding:.5rem}.business-name{font-size:.75rem}.business-desc{font-size:.625rem}.details-title h2{font-size:.9375rem}.details-actions button{padding:.375rem .5rem}.details-actions button,.tab-btn{font-size:.6875rem;min-height:36px}.tab-btn{padding:.5rem .375rem}.tab-icon{height:14px;width:14px}.tab-content{padding:.75rem}.form-group label{font-size:.6875rem}.form-group input,.form-group select,.form-group textarea{font-size:.8125rem;padding:.5rem}.section-header h3{font-size:.8125rem}.item-card{padding:.75rem}.item-header h4{font-size:.8125rem}.item-card p{font-size:.6875rem}.team-card{padding:.75rem}.team-avatar{font-size:1rem;height:36px;width:36px}.team-card h4{font-size:.8125rem}.team-title{font-size:.6875rem}.btn-icon{height:14px;width:14px}.btn-danger,.btn-primary,.btn-secondary{font-size:.8125rem;min-height:40px;padding:.5rem .75rem}}.files-page{margin:0 auto;max-width:1400px;min-height:100%;padding:2rem}.files-header{align-items:flex-start;display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;margin-bottom:1.5rem}.files-title h1{color:var(--text-primary);font-size:2rem;margin:0}.files-title p{color:var(--text-secondary);margin:.5rem 0 0}.files-actions{display:flex;gap:.75rem}.files-auth-prompt{padding:4rem 2rem;text-align:center}.files-auth-prompt h2{color:var(--text-primary);margin:0 0 1.5rem}.upload-zone{background:var(--bg-secondary);border:2px dashed var(--border-color);border-radius:16px;cursor:pointer;margin-bottom:1.5rem;padding:2rem;text-align:center;transition:all .2s}.upload-zone.active,.upload-zone:hover{background:#6366f10d;border-color:var(--accent-color)}.upload-zone-icon{color:var(--text-secondary);height:48px;margin-bottom:1rem;width:48px}.upload-zone p{color:var(--text-primary);font-weight:500;margin:0 0 .5rem}.upload-zone span{color:var(--text-secondary);font-size:.875rem}.files-filters{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1.5rem}.filter-btn{align-items:center;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:20px;color:var(--text-secondary);cursor:pointer;display:flex;font-size:.875rem;gap:.5rem;padding:.5rem 1rem;transition:all .2s}.filter-btn:hover{background:var(--bg-tertiary);color:var(--text-primary)}.filter-btn.active{background:var(--accent-color);border-color:var(--accent-color);color:#fff}.filter-icon{height:16px;width:16px}.files-empty,.files-loading{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:16px;padding:4rem 2rem;text-align:center}.spinner{border:3px solid var(--border-color);border-top-color:var(--accent-color);margin:0 auto 1rem}.empty-icon{color:var(--text-secondary);height:64px;margin-bottom:1rem;width:64px}.files-empty h3{color:var(--text-primary);margin:0 0 .5rem}.files-empty p{color:var(--text-secondary);margin:0 0 1.5rem}.files-table-container{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:16px;overflow:hidden}.files-table{border-collapse:collapse;width:100%}.files-table th{background:var(--bg-tertiary);color:var(--text-secondary);font-size:.875rem;font-weight:500;letter-spacing:.05em;text-align:left;text-transform:uppercase}.files-table td,.files-table th{border-bottom:1px solid var(--border-color);padding:1rem 1.5rem}.files-table td{color:var(--text-primary)}.files-table tr:last-child td{border-bottom:none}.files-table tr:hover{background:var(--bg-tertiary)}.file-name-cell{align-items:center;display:flex;gap:.75rem}.file-icon{color:var(--text-secondary);flex-shrink:0;height:24px;width:24px}.file-icon.doc{color:var(--accent-color)}.file-name{font-weight:500;word-break:break-word}.file-type-badge{border-radius:4px;display:inline-block;font-size:.75rem;font-weight:500;padding:.25rem .5rem}.file-type-badge.uploads{background:#e0e7ff;color:#3730a3}.file-type-badge.generated{background:#d1fae5;color:#065f46}.file-date,.file-size{color:var(--text-secondary);font-size:.875rem;white-space:nowrap}.file-actions{display:flex;gap:.5rem}.action-btn{align-items:center;background:#0000;border:none;border-radius:6px;cursor:pointer;display:inline-flex;flex-shrink:0;justify-content:center;min-height:36px;min-width:36px;padding:8px;transition:all .2s}.action-btn svg{background:none;border:none;flex-shrink:0;height:16px;width:16px}.action-btn.download{color:var(--accent-color)}.action-btn.download:hover{background:#6366f11a}.action-btn.delete{color:var(--text-secondary)}.action-btn.delete:hover{background:#fee2e2;color:#dc2626}.btn-danger,.btn-primary,.btn-secondary{align-items:center;border:none;border-radius:8px;cursor:pointer;display:inline-flex;font-size:.875rem;font-weight:500;gap:.5rem;justify-content:center;line-height:1.2;min-height:44px;padding:10px 16px;transition:all .2s;white-space:nowrap}.btn-primary{background:var(--accent-color)}.btn-secondary{background:var(--bg-tertiary);border:1px solid var(--border-color);color:var(--text-primary)}.btn-secondary:hover{background:var(--bg-primary);border-color:var(--accent-color)}.btn-danger{background:#fee2e2;color:#dc2626}.btn-icon{background:none;border:none;height:16px;width:16px}.theme-dark .upload-zone{background:var(--bg-tertiary);border-color:#3a3a3a}.theme-dark .upload-zone.active,.theme-dark .upload-zone:hover{background:#e8e8e80d;border-color:var(--accent)}.theme-dark .filter-btn{background:var(--bg-tertiary)}.theme-dark .filter-btn:hover{background:#2f2f2f}.theme-dark .filter-btn.active{background:var(--accent);color:#1a1a1a}.theme-dark .files-empty,.theme-dark .files-loading,.theme-dark .files-table-container{background:var(--bg-paper)}.theme-dark .files-table th,.theme-dark .files-table tr:hover{background:var(--bg-tertiary)}.theme-dark .file-type-badge.uploads{background:#5c9fcc26;color:var(--info)}.theme-dark .file-type-badge.generated{background:#5fb57426;color:var(--success)}.theme-dark .action-btn.download:hover{background:#e8e8e81a}.theme-dark .action-btn.delete:hover,.theme-dark .btn-danger{background:#ff6b6b26;color:var(--error)}.theme-dark .btn-danger:hover{background:#ff6b6b40}.theme-dark .modal{background:var(--bg-paper)}.theme-dark .modal-close:hover{background:var(--bg-tertiary)}.theme-dark .file-card{background:var(--bg-paper)}.modal-overlay{align-items:center;background:#00000080;bottom:0;display:flex;justify-content:center;left:0;padding:1rem;position:fixed;right:0;top:0;z-index:1000}.modal{background:var(--bg-primary);border-radius:16px;box-shadow:0 25px 50px #00000040;max-width:400px;width:100%}.modal-header{align-items:center;border-bottom:1px solid var(--border-color);display:flex;justify-content:space-between;padding:1.25rem 1.5rem}.modal-header h3{color:var(--text-primary);font-size:1.25rem;margin:0}.modal-close{background:#0000;border:none;border-radius:6px;color:var(--text-secondary);cursor:pointer;padding:.375rem;transition:all .2s}.modal-close:hover{background:var(--bg-tertiary);color:var(--text-primary)}.modal-close svg{height:20px;width:20px}.modal-body{padding:1.5rem}.modal-body p{color:var(--text-primary);margin:0 0 .5rem}.warning-text{color:#dc2626;font-size:.875rem}.modal-footer{border-top:1px solid var(--border-color);display:flex;gap:.75rem;justify-content:flex-end;padding:1.25rem 1.5rem}.files-card-view{display:none}.file-card{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:12px;margin-bottom:.75rem;padding:1rem}.file-card:last-child{margin-bottom:0}.file-card-header{align-items:flex-start;display:flex;gap:.75rem;justify-content:space-between}.file-card-info{display:flex;flex:1 1;gap:.75rem;min-width:0}.file-card-info .file-icon{flex-shrink:0;margin-top:2px}.file-card-details{flex:1 1;min-width:0}.file-card-details .file-name{color:var(--text-primary);display:block;font-weight:500;line-height:1.3;margin-bottom:.375rem;word-break:break-word}.file-card-meta{border-top:1px solid var(--border-color);display:flex;flex-wrap:wrap;gap:.75rem;margin-top:.75rem;padding-top:.75rem}.file-card-meta-item{display:flex;flex-direction:column;gap:.125rem}.file-card-meta-label{color:var(--text-secondary);font-size:.6875rem;font-weight:600;letter-spacing:.05em;text-transform:uppercase}.file-card-meta-value{color:var(--text-primary);font-size:.8125rem}.file-card-actions{display:flex;flex-shrink:0;gap:.375rem}.file-card-actions .action-btn{align-items:center;display:flex;justify-content:center;min-height:40px;min-width:40px}@media (max-width:768px){.files-page{padding:1rem}.files-header{align-items:stretch;flex-direction:column;margin-bottom:1rem}.files-title h1{font-size:1.25rem;margin-bottom:.25rem}.files-title p{color:var(--text-secondary);font-size:.8125rem}.files-actions{align-self:flex-start;width:auto}.files-actions .btn-primary{font-size:.875rem;min-height:44px;padding:.625rem 1.25rem;width:auto}.btn-danger,.btn-primary,.btn-secondary{font-size:.875rem;min-height:44px;padding:.625rem 1rem}.upload-zone{border-radius:12px;margin-bottom:1rem;margin-left:auto;margin-right:auto;max-width:85%;padding:1.25rem}.upload-zone-icon{height:32px;margin-bottom:.5rem;width:32px}.upload-zone p{font-size:.8125rem;margin-bottom:.25rem}.upload-zone span{font-size:.6875rem}.files-filters{gap:.5rem;margin-bottom:1rem;overflow-x:auto;padding-bottom:.5rem}.filter-btn{font-size:.75rem;min-height:36px;padding:.375rem .75rem;white-space:nowrap}.filter-icon{height:14px;width:14px}.files-table-container{display:none}.files-card-view{display:block;padding-bottom:2rem}.file-card{border-radius:10px;margin-bottom:.5rem;padding:.875rem}.file-card-info .file-icon{height:20px;width:20px}.file-card-details .file-name{font-size:.75rem;line-height:1.3;margin-bottom:.25rem}.file-card-details .file-type-badge{font-size:.625rem;padding:.125rem .375rem}.file-card-meta{gap:1rem;margin-top:.5rem;padding-top:.5rem}.file-card-meta-label{font-size:.5625rem}.file-card-meta-value{font-size:.6875rem}.file-card-actions .action-btn{min-height:36px;min-width:36px;padding:.375rem}.file-card-actions .action-btn svg{height:16px;width:16px}.files-empty,.files-loading{padding:2rem 1rem}.empty-icon{height:48px;width:48px}.files-empty h3{font-size:1rem}.files-empty p{font-size:.8125rem}.modal{margin:1rem}.modal-header h3{font-size:1rem}.modal-footer{flex-direction:column;gap:.5rem}.modal-footer button{min-height:44px;width:100%}}@media (max-width:480px){.files-page{padding:.75rem}.files-title h1{font-size:1.125rem}.files-title p{font-size:.75rem}.files-actions .btn-primary{font-size:.8125rem;min-height:40px;padding:.5rem 1rem}.upload-zone{border-radius:10px;padding:1rem}.upload-zone-icon{height:28px;margin-bottom:.375rem;width:28px}.upload-zone p{font-size:.75rem}.upload-zone span{font-size:.625rem}.filter-btn{font-size:.6875rem;min-height:32px;padding:.25rem .625rem}.file-card{margin-bottom:.375rem;padding:.75rem}.file-card-info .file-icon{height:18px;width:18px}.file-card-details .file-name{font-size:.7rem}.file-card-details .file-type-badge{font-size:.5625rem}.file-card-meta-label{font-size:.5rem}.file-card-meta-value{font-size:.625rem}.file-card-actions .action-btn{min-height:32px;min-width:32px}.file-card-actions .action-btn svg{height:14px;width:14px}}.version-modal-overlay{align-items:center;background:#00000080;bottom:0;display:flex;justify-content:center;left:0;padding:20px;position:fixed;right:0;top:0;z-index:1000}.version-modal{background:#fff;background:var(--bg-paper,#fff);border-radius:12px;box-shadow:0 20px 60px #0000004d;display:flex;flex-direction:column;max-height:90vh;max-width:1200px;width:90%}.version-modal-header{align-items:center;border-bottom:1px solid #e6e2d6;border-bottom:1px solid var(--line-color,#e6e2d6);display:flex;justify-content:space-between;padding:20px 24px}.version-modal-title{align-items:center;display:flex;gap:12px}.version-modal-title h2{color:#2d2d2d;color:var(--text-primary,#2d2d2d);font-size:18px;font-weight:600;margin:0}.version-modal-title .milestone-badge{background:#f5f2eb;background:var(--bg-tertiary,#f5f2eb);border-radius:4px;color:#757575;color:var(--text-secondary,#757575);font-size:12px;font-weight:500;padding:4px 8px}.version-modal-tabs{border-bottom:1px solid #e6e2d6;border-bottom:1px solid var(--line-color,#e6e2d6);display:flex;gap:8px;padding:0 24px}.version-modal-tabs .tab{background:#0000;border:none;border-bottom:2px solid #0000;color:#757575;color:var(--text-secondary,#757575);cursor:pointer;font-size:14px;font-weight:500;padding:12px 16px;transition:all .15s}.version-modal-tabs .tab:hover{background:#00000005;color:#2d2d2d;color:var(--text-primary,#2d2d2d)}.version-modal-tabs .tab.active{border-bottom-color:#2d2d2d;border-bottom-color:var(--accent,#2d2d2d);color:#2d2d2d;color:var(--accent,#2d2d2d)}.version-modal-content{background:#f5f2eb;background:var(--bg-app,#f5f2eb);display:flex;flex:1 1;flex-direction:column;min-height:0;overflow:hidden;padding:24px}.preview-pane{background:#fff;background:var(--bg-paper,#fff);border-radius:8px;height:100%;overflow-y:auto}.preview-pane .tiptap-editor-wrapper{min-height:100%}.compare-pane-wrapper{display:flex;flex:1 1;flex-direction:column;gap:20px;min-height:0}.version-diff-stats{background:#f5f2eb;background:var(--bg-tertiary,#f5f2eb);border:1px solid #e6e2d6;border:1px solid var(--line-color,#e6e2d6);border-radius:8px;display:flex;flex-shrink:0;gap:24px;padding:16px 20px}.version-diff-stat{align-items:center;display:flex;gap:8px}.compare-diff-viewer{word-wrap:break-word;background:#fff;background:var(--bg-paper,#fff);border:1px solid #e6e2d6;border:1px solid var(--line-color,#e6e2d6);border-radius:8px;color:#2d2d2d;color:var(--text-primary,#2d2d2d);flex:1 1;font-family:inherit;font-size:14px;line-height:1.8;min-height:0;overflow-x:hidden;overflow-y:auto;padding:24px 32px;white-space:pre-wrap}.compare-diff-viewer::-webkit-scrollbar{width:8px}.compare-diff-viewer::-webkit-scrollbar-track{background:#0000;border-radius:4px}.compare-diff-viewer::-webkit-scrollbar-thumb{background:#757575;background:var(--text-secondary,#757575);border-radius:4px;opacity:.3}.compare-diff-viewer::-webkit-scrollbar-thumb:hover{background:#2d2d2d;background:var(--text-primary,#2d2d2d);opacity:.5}.compare-diff-viewer:hover::-webkit-scrollbar-thumb{background:#757575;background:var(--text-secondary,#757575)}.compare-pane{grid-gap:20px;display:grid;flex:1 1;gap:20px;grid-template-columns:1fr 1px 1fr;min-height:0}.compare-section{display:flex;flex-direction:column;min-height:0}.compare-section h3{color:#757575;color:var(--text-secondary,#757575);font-size:14px;font-weight:600;margin:0 0 12px}.compare-editor{background:#fff;background:var(--bg-paper,#fff);border-radius:8px;flex:1 1;overflow-y:auto}.compare-editor .tiptap-editor-wrapper{min-height:100%}.compare-divider{background:#e6e2d6;background:var(--line-color,#e6e2d6);width:1px}.version-modal-footer{align-items:center;border-top:1px solid #e6e2d6;border-top:1px solid var(--line-color,#e6e2d6);display:flex;gap:12px;justify-content:flex-end;padding:16px 24px}.version-modal-footer .btn-secondary{background:#fff;background:var(--bg-paper,#fff);border:1px solid #e6e2d6;border:1px solid var(--line-color,#e6e2d6);border-radius:8px;color:#2d2d2d;color:var(--text-primary,#2d2d2d);cursor:pointer;font-size:14px;font-weight:500;padding:10px 20px;transition:all .15s}.version-modal-footer .btn-secondary:hover{background:#f5f2eb;background:var(--bg-tertiary,#f5f2eb);border-color:#757575;border-color:var(--text-secondary,#757575)}.version-modal-footer .btn-primary{background:#2d2d2d;background:var(--accent,#2d2d2d);border:none;border-radius:8px;color:#fff;cursor:pointer;font-size:14px;font-weight:500;padding:10px 20px;transition:all .15s}.version-modal-footer .btn-primary:hover{background:#4a4a4a;background:var(--accent-hover,#4a4a4a)}.version-preview-editor .ProseMirror{min-height:300px;padding:24px 32px}.theme-dark .version-diff-stats{background:#1a1a1a;border-color:#404040}.theme-dark .compare-diff-viewer{background:#2d2d2d;border-color:#404040;color:#e0e0e0}.theme-dark .compare-diff-viewer::-webkit-scrollbar-thumb{background:#757575}.theme-dark .compare-diff-viewer::-webkit-scrollbar-thumb:hover{background:#9e9e9e}.theme-dark .diff-equal{color:#e0e0e0}.theme-dark .diff-insert{background:#2d5a2d;color:#a5d6a7}.theme-dark .diff-delete{background:#5a2d2d;color:#ef9a9a}@media (max-width:768px){.version-modal{border-radius:0;height:100vh;max-height:100vh;max-width:100%;width:100%}.version-diff-stats{flex-direction:column;gap:12px}.compare-pane{gap:12px;grid-template-columns:1fr;grid-template-rows:auto auto auto}.compare-section{max-height:40vh}.compare-diff-viewer{padding:16px 20px}.compare-divider{height:1px;width:100%}.version-modal-header{padding:16px}.version-modal-tabs{padding:0 16px}.version-modal-content{padding:16px}.version-modal-footer{padding:12px 16px}}.diff-preview-backdrop{align-items:center;background:#00000080;bottom:0;display:flex;justify-content:center;left:0;padding:20px;position:fixed;right:0;top:0;z-index:2000}.diff-preview-modal{background:#fff;background:var(--bg-paper,#fff);border-radius:12px;box-shadow:0 8px 32px #0003;display:flex;flex-direction:column;max-height:90vh;max-width:900px;width:100%}.diff-preview-header{align-items:center;border-bottom:1px solid #e6e2d6;border-bottom:1px solid var(--line-color,#e6e2d6);display:flex;justify-content:space-between;padding:20px 24px}.diff-preview-header h3{color:#2d2d2d;color:var(--text-primary,#2d2d2d);font-size:20px;font-weight:600;margin:0}.diff-close-btn{align-items:center;background:#0000;border:none;border-radius:6px;color:#757575;color:var(--text-secondary,#757575);cursor:pointer;display:flex;font-size:18px;height:32px;justify-content:center;transition:all .15s ease;width:32px}.diff-close-btn:hover{color:#2d2d2d;color:var(--text-primary,#2d2d2d)}.diff-close-btn:hover,.diff-stats{background:#f5f2eb;background:var(--bg-tertiary,#f5f2eb)}.diff-stats{border-bottom:1px solid #e6e2d6;border-bottom:1px solid var(--line-color,#e6e2d6);display:flex;gap:24px;padding:16px 24px}.diff-stat{align-items:center;display:flex;gap:8px}.diff-stat-label{color:#757575;color:var(--text-secondary,#757575);font-size:13px}.diff-stat-value{color:#2d2d2d;color:var(--text-primary,#2d2d2d);font-size:14px;font-weight:600}.diff-stat-value.added{color:#4caf50}.diff-stat-value.removed{color:#f44336}.diff-content{flex:1 1;overflow-y:auto;padding:24px}.diff-section{margin-bottom:24px}.diff-section:last-child{margin-bottom:0}.diff-section h4{color:#757575;color:var(--text-secondary,#757575);font-size:14px;font-weight:600;letter-spacing:.5px;margin:0 0 12px;text-transform:uppercase}.diff-text{word-wrap:break-word;border-radius:8px;font-size:14px;line-height:1.6;padding:16px;white-space:pre-wrap}.diff-text.original{background:#fff9f0;border:1px solid #ffe0b2;color:#2d2d2d}.diff-text.combined{background:#fff;background:var(--bg-paper,#fff);border:1px solid #e6e2d6;border:1px solid var(--line-color,#e6e2d6)}.diff-text.improved{background:#f0f9f4;border:1px solid #b2dfdb;color:#2d2d2d}.diff-equal{color:#2d2d2d;color:var(--text-primary,#2d2d2d)}.diff-insert{background:#c8e6c9;color:#1b5e20}.diff-delete,.diff-insert{border-radius:3px;font-weight:500;padding:2px 4px}.diff-delete{background:#ffcdd2;color:#b71c1c;text-decoration:line-through}.diff-preview-footer{border-top:1px solid #e6e2d6;border-top:1px solid var(--line-color,#e6e2d6);display:flex;gap:12px;justify-content:flex-end;padding:20px 24px}.diff-accept-btn,.diff-reject-btn{border:none;border-radius:8px;cursor:pointer;font-size:14px;font-weight:500;height:40px;padding:0 24px;transition:all .15s ease}.diff-reject-btn{background:#f5f2eb;background:var(--bg-tertiary,#f5f2eb);color:#2d2d2d;color:var(--text-primary,#2d2d2d)}.diff-reject-btn:hover{background:#edeae1;background:var(--bg-sidebar-darker,#edeae1)}.diff-accept-btn{background:#2d2d2d;background:var(--accent,#2d2d2d);color:#fff}.diff-accept-btn:hover{opacity:.9}.theme-dark .diff-preview-modal{background:#2d2d2d}.theme-dark .diff-text.original{background:#3a2f1f;border-color:#4a3f2f}.theme-dark .diff-text.combined{background:#1a1a1a;border-color:#404040}.theme-dark .diff-text.improved{background:#1f3a2f;border-color:#2f4a3f}.theme-dark .diff-reject-btn{background:#1a1a1a;color:#e0e0e0}.editor-page{background:var(--bg-app);display:flex;flex-direction:column;height:100%}.editor-page.error,.editor-page.loading{align-items:center;color:var(--text-secondary);display:flex;flex-direction:column;gap:16px;justify-content:center}.editor-header{align-items:center;background:#fff;border-bottom:1px solid var(--line-color);display:flex;gap:16px;justify-content:space-between;padding:12px 24px}.header-left{flex:1 1}.header-left,.header-right{align-items:center;display:flex;gap:12px}.btn-icon{align-items:center;background:#0000;border:1px solid var(--line-color);border-radius:8px;color:var(--text-secondary);cursor:pointer}.btn-icon svg{background:none;border:none;flex-shrink:0;height:16px;width:16px}.btn-icon:hover{background:#fafafa;border-color:#ccc;color:var(--text-primary)}.title-input{background:#0000;border:none;color:var(--text-primary);flex:1 1;font-family:Lora,serif;font-size:18px;font-weight:600;min-width:200px;padding:8px 0}.title-input:focus{outline:none}.title-input::placeholder{color:var(--text-secondary)}.unsaved-indicator{background:#a78b5e1a;border-radius:4px;color:var(--accent);font-size:12px;padding:4px 8px}.last-saved{color:var(--text-secondary);font-size:12px}.btn-primary{transition:all .15s}.btn-primary svg{background:none;border:none}.btn-primary:hover:not(:disabled){background:var(--accent-hover);transform:translateY(-1px)}.btn-primary:active:not(:disabled){transform:translateY(0)}.btn-primary:disabled{cursor:not-allowed;opacity:.6}.btn-spinner{animation:spin .8s linear infinite;border:2px solid #ffffff4d;border-radius:50%;border-top-color:#fff;height:14px;width:14px}.editor-body{display:flex;flex:1 1;overflow:hidden}.version-panel{background:#fff;border-right:1px solid var(--line-color);display:flex;flex-direction:column;flex-shrink:0;width:280px}.version-header{align-items:center;border-bottom:1px solid var(--line-color);display:flex;justify-content:space-between;padding:16px 20px}.version-header h3{font-size:14px;font-weight:600;margin:0}.version-list{flex:1 1;overflow-y:auto;padding:12px}.no-versions{color:var(--text-secondary);font-size:13px;padding:24px;text-align:center}.version-item{align-items:center;background:#fafafa;border-radius:8px;display:flex;justify-content:space-between;margin-bottom:8px;padding:12px;transition:background .15s}.version-item:hover{background:#f0ede6}.version-item.milestone{background:#fff8e6;border:1px solid #f5dfa0}.version-info{display:flex;flex-direction:column;gap:4px}.version-date{color:var(--text-primary);font-size:13px}.milestone-badge{background:#b8860b26;border-radius:4px;color:#b8860b;font-size:10px;font-weight:600;padding:2px 6px;text-transform:uppercase;width:fit-content}.editor-container{background:var(--bg-app);display:flex;flex:1 1;flex-direction:column;overflow:hidden}.quill-wrapper{display:flex;flex:1 1;flex-direction:column;margin:0 auto;max-width:900px;overflow-y:auto;padding:40px;width:100%}.quill-wrapper .quill{background:#fff;border-radius:12px;box-shadow:0 4px 20px #0000000a;display:flex;flex:1 1;flex-direction:column;overflow:hidden}.quill-wrapper .ql-toolbar{background:#fafafa;border:none;border-bottom:1px solid var(--line-color);padding:12px 16px}.quill-wrapper .ql-container{border:none;flex:1 1;font-family:Lora,serif;font-size:16px}.quill-wrapper .ql-editor{line-height:1.8;min-height:600px;padding:40px 60px}.quill-wrapper .ql-editor.ql-blank:before{color:var(--text-secondary);font-style:normal;left:60px}.quill-wrapper .ql-editor h1{font-size:28px;font-weight:600;margin-bottom:16px}.quill-wrapper .ql-editor h2{font-size:22px;font-weight:600;margin-bottom:14px}.quill-wrapper .ql-editor h3{font-size:18px;font-weight:600;margin-bottom:12px}.quill-wrapper .ql-editor p{margin-bottom:16px}.quill-wrapper .ql-editor ol,.quill-wrapper .ql-editor ul{margin-bottom:16px;padding-left:24px}.quill-wrapper .ql-editor blockquote{border-left:3px solid var(--accent);color:var(--text-secondary);font-style:italic;margin:16px 0;padding-left:16px}.spinner{animation:spin 1s linear infinite;border:4px solid #ebe7de;border-radius:50%;border-top:4px solid var(--accent);height:40px;width:40px}.theme-dark .editor-header{background:var(--bg-paper)}.theme-dark .btn-icon:hover{background:var(--bg-tertiary);border-color:var(--line-color)}.theme-dark .unsaved-indicator{background:#e8e8e81a}.theme-dark .version-panel{background:var(--bg-paper)}.theme-dark .version-item{background:var(--bg-tertiary)}.theme-dark .version-item:hover{background:#2f2f2f}.theme-dark .version-item.milestone{background:#b8860b26;border-color:#b8860b4d}.theme-dark .quill-wrapper .quill{background:var(--bg-paper);box-shadow:0 4px 20px #0000004d}.theme-dark .spinner{border-color:#2f2f2f;border-top-color:var(--accent)}@media (max-width:768px){.editor-header{flex-wrap:wrap;padding:12px 16px}.header-left{flex:1 0 100%;margin-bottom:12px;order:1}.header-right{flex:1 0 100%;justify-content:flex-end;order:2}.title-input{font-size:16px}.version-panel{bottom:0;box-shadow:-4px 0 20px #0000001a;position:fixed;right:0;top:0;z-index:100}.quill-wrapper{padding:20px}.quill-wrapper .ql-editor{padding:24px}}.app{color:var(--text-primary);height:100vh;overflow:hidden;width:100vw}.app,.main-content{background:var(--bg-app);display:flex;position:relative}.main-content{flex-direction:column;flex-grow:1;overflow-x:hidden;overflow-y:auto;transition:all .3s ease}.main-content.landing-mode{background:#fff;height:100vh;overflow:auto}.theme-dark .main-content.landing-mode{background:var(--bg-app)}.content-container{flex:1 1;margin:0 auto;max-width:1400px;overflow-y:auto;padding-bottom:60px;width:100%}.top-bar{align-items:center;background:var(--bg-app);border-bottom:1px solid var(--line-color);display:flex;flex-shrink:0;height:var(--header-height);justify-content:space-between;padding:0 32px}.page-title{color:var(--text-primary);font-size:16px;font-weight:600;margin:0}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.animate-fade-in{animation:fadeIn .4s ease forwards}.btn-danger svg,.btn-ghost svg,.btn-icon-only svg,.btn-primary svg,.btn-secondary svg,button svg{background:none;border:none;outline:none}.btn-primary{align-items:center;background:var(--accent);border:none;border-radius:8px;color:#fff;cursor:pointer;display:inline-flex;font-size:14px;font-weight:500;gap:8px;justify-content:center;line-height:1.2;min-height:44px;padding:10px 16px;text-decoration:none;transition:all .2s;white-space:nowrap;width:100%}.btn-primary:hover{background:var(--accent-hover);transform:translateY(-1px)}.btn-primary:active{transform:translateY(0)}.btn-primary svg{flex-shrink:0;height:16px;width:16px}.btn-ghost,.btn-secondary{align-items:center;background:#0000;border:1px solid var(--line-color);border-radius:8px;color:var(--text-primary);cursor:pointer;display:inline-flex;font-size:14px;font-weight:500;gap:8px;line-height:1.2;min-height:44px;padding:10px 16px;transition:background .2s;white-space:nowrap}.btn-secondary:hover{background:#fff;border-color:var(--accent)}.btn-secondary svg{flex-shrink:0}.theme-dark .btn-secondary:hover{background:var(--bg-paper)}.btn-ghost{border:none}.btn-ghost:hover{background:var(--bg-tertiary)}.btn-text-only{align-items:center;background:none;border:none;color:var(--text-secondary);cursor:pointer;display:inline-flex;font-size:13px;min-height:44px;padding:10px 0;text-decoration:underline}.btn-danger:hover{background:#fecaca}.btn-icon{display:inline-flex;flex-shrink:0;height:36px;justify-content:center;min-height:36px;min-width:36px;transition:all .15s;width:36px}.btn-secondary svg{height:16px;height:20px;width:16px;width:20px}.loading-overlay{align-items:center;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#fffc;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:1000}.loading-spinner{animation:spin 1s linear infinite;border:3px solid var(--line-color);border-radius:50%;border-top-color:var(--accent);height:40px;width:40px}@keyframes spin{to{transform:rotate(1turn)}}.mobile-overlay{background:#0006;inset:0;opacity:0;pointer-events:none;position:fixed;transition:opacity .3s;z-index:90}.mobile-overlay.active{opacity:1;pointer-events:auto}@media (max-width:768px){.app{flex-direction:column}.sidebar{display:none}.main-content{-webkit-overflow-scrolling:touch;height:100%;overflow-y:auto;padding-bottom:calc(180px + env(safe-area-inset-bottom, 0px));padding-top:calc(80px + env(safe-area-inset-top, 0px));width:100%}.main-content.landing-mode{padding-bottom:0;padding-top:0}.top-bar{flex-shrink:0;height:calc(56px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 16px 0}.page-title{font-size:16px}.content-container{flex:1 1;overflow-y:visible;padding-bottom:20px}.btn-primary,.btn-secondary{font-size:.9375rem;min-height:48px;padding:.75rem 1rem}.btn-primary.large,.btn-secondary.large{font-size:15px;min-height:52px;padding:14px 20px}.icon-btn{align-items:center;background:#0000;border:1px solid var(--line-color);border-radius:8px;display:flex;height:44px;justify-content:center;min-width:44px;width:44px}}@media (max-width:480px){.main-content{padding-bottom:calc(180px + env(safe-area-inset-bottom, 0px));padding-top:calc(80px + env(safe-area-inset-top, 0px))}.top-bar{height:calc(52px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 12px 0}.page-title{font-size:15px}.btn-primary,.btn-secondary{font-size:.875rem;min-height:48px;padding:.75rem 1rem}}
/*# sourceMappingURL=main.03310a99.css.map*/