:root{--coral: var(--system-blue);--creamy-white: var(--system-background);--light-creamy-white: var(--system-white);--mid-coral: var(--system-blue);--deep-coral: var(--system-blue-hover);--dark-coral: var(--system-text-primary);--deep-bordeaux: var(--system-white);--dark-gray: var(--system-text-primary);--white: var(--system-white)}*{margin:0;padding:0;box-sizing:border-box}body{margin:0;font-family:var(--font-family-primary);font-size:var(--font-size-base);line-height:var(--line-height-base);color:var(--system-text-primary);background-color:var(--system-background);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}h1{font-size:var(--font-size-3xl);font-weight:var(--font-weight-bold);line-height:var(--line-height-tight);letter-spacing:-.02em}h2{font-size:var(--font-size-2xl);font-weight:var(--font-weight-semibold);line-height:var(--line-height-tight);letter-spacing:-.01em}h3{font-size:var(--font-size-xl);font-weight:var(--font-weight-semibold);line-height:var(--line-height-base)}a{color:var(--system-blue);text-decoration:none;transition:color var(--transition-fast)}a:hover{color:var(--system-blue-hover)}button{font-family:inherit;font-size:inherit;cursor:pointer;border:none;background:none;padding:0;margin:0;line-height:inherit;color:inherit}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:var(--system-gray-5)}::-webkit-scrollbar-thumb{background:var(--system-gray-3);border-radius:var(--radius-sm)}::-webkit-scrollbar-thumb:hover{background:var(--system-gray-2)}#root{min-height:100vh;width:100%;margin:0;padding:0}.app-layout{display:flex;flex-direction:column;min-height:100vh;background-color:var(--system-background);color:var(--system-text-primary)}.app-nav{background-color:var(--system-white);padding:0 var(--spacing-xl);height:64px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--system-gray-4);position:sticky;top:0;z-index:var(--z-sticky);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);background-color:#ffffffd9}.app-logo{display:flex;align-items:center}.logo-text{font-size:var(--font-size-lg);font-weight:var(--font-weight-semibold);color:var(--system-text-primary);letter-spacing:-.01em;transition:opacity var(--transition-fast)}.logo-text:hover{opacity:.7}.app-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:var(--spacing-xs);align-items:center}.app-nav ul li a{color:var(--system-text-primary);font-weight:var(--font-weight-regular);font-size:var(--font-size-base);padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--radius-md);transition:all var(--transition-fast);display:inline-block}.app-nav ul li a:hover{background-color:var(--system-gray-5);color:var(--system-text-primary)}.app-nav ul li a:active{background-color:var(--system-gray-4)}.user-info{display:flex;align-items:center;gap:var(--spacing-md);font-size:var(--font-size-sm)}.user-email{color:var(--system-text-secondary);font-weight:var(--font-weight-regular)}.user-role{font-size:var(--font-size-xs);color:var(--system-text-tertiary);text-transform:uppercase;letter-spacing:.05em;font-weight:var(--font-weight-medium)}.logout-button{background-color:var(--system-gray-5);color:var(--system-text-primary);padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--radius-full);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);transition:all var(--transition-fast)}.logout-button:hover{background-color:var(--system-gray-4)}.logout-button:active{background-color:var(--system-gray-3)}.app-main{flex:1;overflow-y:auto;position:relative}.main-content-wrapper{opacity:1;transition:opacity var(--transition-base)}.app-main.auth-page{display:flex;align-items:center;justify-content:center}.app-main.auth-page .main-content-wrapper{width:100%;display:flex;align-items:center;justify-content:center}.app-footer{background-color:var(--system-white);padding:var(--spacing-xl) var(--spacing-xl);text-align:center;border-top:1px solid var(--system-gray-4);margin-top:auto}.app-footer p{margin:0;color:var(--system-text-secondary);font-size:var(--font-size-sm);font-weight:var(--font-weight-regular)}.footer-links{margin-top:var(--spacing-sm);color:var(--system-text-tertiary);font-size:var(--font-size-xs)}.app-layout:has(.chat-interface-container){height:100vh;overflow:hidden}.app-layout:has(.chat-interface-container) .app-main{overflow:hidden;height:calc(100vh - 64px)}.app-layout:has(.chat-interface-container) .app-footer{display:none}@media (max-width: 768px){.app-nav{padding:0 var(--spacing-md);height:56px}.logo-text{font-size:var(--font-size-md)}.app-nav ul{gap:0}.app-nav ul li a{font-size:var(--font-size-sm);padding:var(--spacing-xs) var(--spacing-sm)}.user-info{gap:var(--spacing-sm)}.user-email,.user-role{display:none}.logout-button{font-size:var(--font-size-xs);padding:var(--spacing-xs) var(--spacing-sm)}.app-layout:has(.chat-interface-container) .app-nav{display:none}.app-layout:has(.chat-interface-container) .app-main{height:100vh}}@media (max-width: 480px){.app-nav{padding:0 var(--spacing-sm)}.app-nav ul li a{font-size:var(--font-size-xs);padding:var(--spacing-xs)}}.tool-list-container{max-width:var(--max-width-lg);margin:var(--spacing-3xl) auto;padding:0 var(--spacing-lg);animation:fadeIn var(--transition-slow) ease-out}.tool-list-header{margin-bottom:var(--spacing-2xl);animation:slideUp var(--transition-slow) ease-out}.tool-list-title{font-size:var(--font-size-3xl);font-weight:var(--font-weight-bold);color:var(--system-text-primary);margin:0 0 var(--spacing-sm) 0;letter-spacing:-.02em;line-height:var(--line-height-tight)}.tool-list-subtitle{font-size:var(--font-size-lg);color:var(--system-text-secondary);margin:0;font-weight:var(--font-weight-regular)}.tool-list{margin-bottom:var(--spacing-2xl);max-width:600px;margin-left:auto;margin-right:auto}.tool-list-container .tool-item{display:flex;align-items:center;justify-content:space-between;padding:var(--spacing-lg) 0;border-bottom:1px solid var(--system-gray-4);transition:all var(--transition-fast);cursor:pointer;background:transparent;border-radius:0;box-shadow:none;animation:none;opacity:1;transform:none;min-height:80px}.tool-list-container .tool-item:last-child{border-bottom:none}.tool-list-container .tool-item:hover{padding-left:var(--spacing-sm);background:transparent;transform:none;box-shadow:none}.tool-list-container .tool-content{display:flex;flex-direction:column;flex:1;min-width:0;text-align:left}.tool-list-container .tool-name{font-size:var(--font-size-lg);font-weight:var(--font-weight-semibold);color:var(--system-text-primary);margin:0 0 var(--spacing-xs) 0;transition:color var(--transition-fast);text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tool-list-container .tool-description{font-size:var(--font-size-sm);color:var(--system-text-secondary);margin:0;line-height:var(--line-height-base);text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:400px}.tool-list-container .tool-item:hover .tool-name{color:var(--system-blue)}.create-tool-section{display:flex;justify-content:center;margin-top:var(--spacing-3xl)}.create-tool-button{display:inline-flex;align-items:center;gap:var(--spacing-sm);background:var(--system-blue);color:var(--system-white);border:none;padding:var(--spacing-md) var(--spacing-xl);border-radius:var(--radius-full);font-size:var(--font-size-md);font-weight:var(--font-weight-medium);cursor:pointer;transition:all var(--transition-base);text-decoration:none;animation:slideUp var(--transition-slow) ease-out;animation-delay:.3s;animation-fill-mode:both}.create-tool-button:hover{background:var(--system-blue-hover);transform:translateY(-1px);box-shadow:var(--shadow-md)}.create-tool-button:active{transform:translateY(0);transition-duration:var(--transition-fast)}.create-tool-button svg{width:20px;height:20px}.empty-state{text-align:center;padding:var(--spacing-4xl) var(--spacing-xl);animation:fadeIn var(--transition-slow) ease-out}.empty-state-icon{width:120px;height:120px;background:var(--system-gray-5);border-radius:var(--radius-2xl);margin:0 auto var(--spacing-xl);display:flex;align-items:center;justify-content:center;font-size:var(--font-size-4xl);color:var(--system-text-tertiary)}.empty-state-title{font-size:var(--font-size-xl);font-weight:var(--font-weight-semibold);color:var(--system-text-primary);margin:0 0 var(--spacing-sm) 0}.empty-state-description{font-size:var(--font-size-md);color:var(--system-text-secondary);margin:0 0 var(--spacing-xl) 0}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;animation:fadeIn var(--transition-base) ease-out}.loading-spinner{width:48px;height:48px;border:3px solid var(--system-gray-4);border-top-color:var(--system-blue);border-radius:var(--radius-full);animation:spin 1s linear infinite}.loading-text{margin-top:var(--spacing-lg);font-size:var(--font-size-md);color:var(--system-text-secondary)}.error-container{text-align:center;padding:var(--spacing-3xl);animation:fadeIn var(--transition-base) ease-out}.error-icon{width:64px;height:64px;background:var(--system-red);color:var(--system-white);border-radius:var(--radius-full);margin:0 auto var(--spacing-lg);display:flex;align-items:center;justify-content:center;font-size:var(--font-size-xl)}.error-message{font-size:var(--font-size-md);color:var(--system-text-primary);margin:0}.tool-details-panel{position:fixed;top:0;right:-480px;width:480px;height:100vh;background:var(--system-white);box-shadow:var(--shadow-xl);transition:right var(--transition-spring);z-index:var(--z-modal);display:flex;flex-direction:column}.tool-details-panel.show{right:0}.tool-details-header{display:flex;align-items:center;justify-content:space-between;padding:var(--spacing-lg);border-bottom:1px solid var(--system-gray-4)}.tool-details-title{font-size:var(--font-size-lg);font-weight:var(--font-weight-semibold);color:var(--system-text-primary);margin:0}.close-details-button{width:32px;height:32px;border-radius:var(--radius-full);background:var(--system-gray-5);border:none;color:var(--system-text-tertiary);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all var(--transition-fast)}.close-details-button:hover{background:var(--system-gray-4);color:var(--system-text-primary)}.tool-details-content{flex:1;overflow-y:auto;padding:var(--spacing-lg)}@media (max-width: 768px){.tool-list-container{padding:0 var(--spacing-md);margin:var(--spacing-2xl) auto}.tool-list-title{font-size:var(--font-size-2xl)}.tool-list-container .tool-item{padding:var(--spacing-sm) 0}.tool-list-container .tool-item:hover{padding-left:var(--spacing-xs)}.tool-list-container .tool-name{font-size:var(--font-size-base)}.tool-list-container .tool-description{font-size:var(--font-size-xs)}.tool-details-panel{width:100%;right:-100%}}.spinner-container{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}.spinner{position:relative;display:inline-block}.spinner-circle{border-radius:50%;border-style:solid;animation:spin 1s linear infinite}.spinner-small .spinner-circle{width:16px;height:16px;border-width:2px}.spinner-medium .spinner-circle{width:24px;height:24px;border-width:3px}.spinner-large .spinner-circle{width:40px;height:40px;border-width:4px}.spinner-primary .spinner-circle{border-color:var(--coral, #ff7977) transparent var(--coral, #ff7977) transparent}.spinner-secondary .spinner-circle{border-color:var(--deep-bordeaux, #4a1f23) transparent var(--deep-bordeaux, #4a1f23) transparent}.spinner-white .spinner-circle{border-color:#ffffff transparent #ffffff transparent}.spinner-text{font-size:14px;color:var(--dark-gray, #333333);text-align:center;margin-top:8px}.spinner-container{min-height:60px;transition:opacity .2s ease-in-out}.spinner-container.full-page{min-height:calc(100vh - 300px);padding:40px}.spinner-placeholder{opacity:1;transition:none}.spinner-container.fade-in{opacity:0;animation:fadeIn .3s ease-in-out forwards}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.tool-detail-container{max-width:900px;margin:50px auto;padding:35px;border:none;border-radius:16px;background-color:var(--creamy-white);color:var(--dark-gray);box-shadow:0 10px 30px #0000001f;transition:all .3s ease}.tool-detail-container h2{color:var(--dark-gray);margin-top:0;text-align:center;margin-bottom:35px;font-size:1.8rem;font-weight:600;position:relative;padding-bottom:12px}.tool-detail-container h2:after{content:"";position:absolute;bottom:0;left:50%;transform:translate(-50%);width:80px;height:3px;background-color:var(--deep-coral);border-radius:2px}.tool-detail-container h3{color:var(--dark-gray);margin-top:30px;margin-bottom:20px;font-size:1.4rem;font-weight:600;position:relative;display:inline-block;padding-bottom:8px}.tool-detail-container h3:after{content:"";position:absolute;bottom:0;left:0;width:60%;height:3px;background-color:var(--coral);border-radius:2px}.tool-detail-container h4{color:var(--dark-gray);margin-top:20px;margin-bottom:10px;font-size:1.2rem;font-weight:600}.tool-detail-container p{color:var(--dark-gray);margin-bottom:15px;font-size:1rem;line-height:1.5}.tool-detail-container ul{list-style:none;padding:0;margin-bottom:25px}.tool-detail-container>ul>li{background-color:#fff;color:var(--dark-gray);padding:20px;border-radius:12px;margin-bottom:16px;border:none;box-shadow:0 4px 12px #0000000f;transition:all .3s ease}.tool-detail-container>ul>li:hover{transform:translateY(-3px);box-shadow:0 8px 20px #0000001a}.tool-detail-container ul ul li{margin-bottom:10px;padding:12px 16px;background-color:var(--light-creamy-white);border-radius:8px;transition:all .2s ease}.tool-detail-container ul ul li:hover{transform:translateY(-2px);box-shadow:0 4px 8px #0000000d}.tool-detail-container strong{color:var(--dark-gray);font-weight:600}.tool-detail-container button{background-color:var(--coral);color:#fff;border:none;padding:10px 18px;border-radius:8px;cursor:pointer;font-size:.95rem;font-weight:500;transition:all .2s ease;box-shadow:0 2px 4px #0000001a;margin-right:15px}.tool-detail-container button:hover{background-color:var(--deep-coral);transform:translateY(-2px);box-shadow:0 4px 8px #00000026}.tool-detail-container button:active{transform:translateY(0)}.tool-detail-container a{text-decoration:none}.tool-actions{display:flex;margin-top:30px;justify-content:center}.tool-actions button:first-child{background-color:var(--deep-coral);font-weight:600}.tool-info-section{background-color:#fff;padding:25px;border-radius:12px;margin-bottom:25px;box-shadow:0 4px 12px #0000000f;transition:all .3s ease}.tool-info-section:hover{transform:translateY(-3px);box-shadow:0 8px 20px #0000001a}.tool-info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.tool-info-grid p{margin:0;padding:10px;background-color:var(--light-creamy-white);border-radius:8px}.tool-form-container{max-width:700px;margin:50px auto;padding:35px;border:none;border-radius:16px;background-color:var(--creamy-white);color:var(--dark-gray);box-shadow:0 8px 24px #0000001f;transition:all .3s ease}.tool-form-container h2{color:var(--dark-gray);margin-top:0;text-align:center;margin-bottom:30px;font-size:1.8rem;font-weight:600;position:relative;padding-bottom:12px}.tool-form-container form{display:flex;flex-direction:column;gap:24px}.form-section{display:flex;flex-direction:column;padding:20px;border:1px solid rgba(0,0,0,.08);border-radius:12px;background-color:var(--light-creamy-white);box-shadow:0 2px 8px #0000000a;transition:all .2s ease}.form-section:hover{box-shadow:0 4px 12px #00000014;transform:translateY(-2px)}.form-section label{margin-bottom:12px;color:var(--dark-gray);font-weight:600;font-size:1.05rem}.form-field{margin-bottom:20px}.form-field label{display:block;margin-bottom:8px;font-weight:600;color:var(--dark-gray)}.form-field input{width:100%;padding:12px 16px;border:1px solid rgba(0,0,0,.1);border-radius:8px;background-color:#fff;font-size:1rem;transition:all .2s ease}.form-field input:focus{outline:none;border-color:var(--deep-coral);box-shadow:0 0 0 3px #ff7f5033}.labels-input-container{display:flex;flex-wrap:wrap;gap:10px;padding:14px;border-radius:10px;border:1px solid rgba(0,0,0,.1);background-color:#fff;align-items:center;min-width:83%;transition:all .2s ease}.labels-input-container:focus-within{border-color:var(--deep-coral);box-shadow:0 0 0 3px #ff7f5033}.labels-input-container input[type=text]{flex-grow:1;border:none;outline:none;background-color:transparent;color:var(--dark-gray);padding:8px;font-size:1rem}.label{display:flex;align-items:center;background-color:var(--dark-gray);color:var(--coral);padding:6px 12px;border-radius:20px;font-size:.9rem;margin-right:5px;box-shadow:0 2px 4px #0000001a;transition:all .2s ease}.label:hover{transform:translateY(-1px);box-shadow:0 3px 6px #00000026}.label button{background:none;border:none;color:var(--coral);margin-left:10px;cursor:pointer;padding:0;font-size:1rem;transition:transform .2s ease}.label button:hover{transform:scale(1.2)}.dropzone{border:2px dashed var(--deep-coral);border-radius:12px;padding:40px 30px;text-align:center;cursor:pointer;background-color:#ff7f5008;color:var(--dark-gray);transition:all .3s ease;margin-bottom:20px}.dropzone:hover{background-color:#ff7f5014;transform:translateY(-2px)}.dropzone.active{background-color:#ff7f5026;color:var(--dark-gray);border-color:var(--deep-coral);transform:scale(1.01)}.dropzone p{font-size:1.1rem;margin:0}.file-list{list-style:none;padding:0;margin-top:20px}.file-list li{background-color:#fff;color:var(--dark-gray);padding:18px;border-radius:12px;margin-bottom:16px;display:flex;flex-direction:column;gap:14px;border:1px solid rgba(0,0,0,.08);box-shadow:0 2px 8px #0000000a;transition:all .2s ease}.file-list li:hover{box-shadow:0 4px 12px #00000014;transform:translateY(-2px)}.file-list li .file-info{display:flex;justify-content:space-between;align-items:center;width:100%;padding-bottom:10px;border-bottom:1px solid rgba(0,0,0,.05)}.file-list li .file-info strong{font-size:1.05rem;color:var(--dark-gray)}.file-list li .file-actions{display:flex;justify-content:space-between;align-items:center;width:100%;padding-top:5px}.file-list li button{background-color:var(--coral);color:#fff;border:none;padding:10px 18px;border-radius:8px;cursor:pointer;font-size:.95rem;font-weight:500;transition:all .2s ease;box-shadow:0 2px 4px #0000001a}.file-list li button:hover{background-color:var(--deep-coral);transform:translateY(-2px);box-shadow:0 4px 8px #00000026}.file-list li button:active{transform:translateY(0)}.error-message{color:var(--deep-coral);font-size:1.05rem;font-weight:600;margin-top:15px;text-align:center;position:relative;padding:12px 15px 12px 40px;background-color:#ff7f501a;border-radius:8px;border-left:4px solid var(--deep-coral)}.tool-form-container{max-width:1100px;width:90%;margin:50px auto;padding:35px;border:none;border-radius:16px;background-color:var(--creamy-white);color:var(--dark-gray);box-shadow:0 10px 30px #0000001f;transition:all .3s ease}.tool-form-container h2{color:var(--dark-gray);margin-top:0;text-align:center;margin-bottom:35px;font-size:1.8rem;font-weight:600;position:relative;padding-bottom:12px}.tool-form-container h2:after{content:"";position:absolute;bottom:0;left:50%;transform:translate(-50%);width:80px;height:3px;background-color:var(--deep-coral);border-radius:2px}.tool-creation-container{margin-bottom:40px}.file-section{border:none;border-radius:12px;padding:25px;margin-bottom:35px;background-color:#fff;box-shadow:0 4px 16px #00000014;transition:all .3s ease}.file-section:hover{box-shadow:0 8px 24px #0000001f;transform:translateY(-2px)}.file-section h3{margin-top:0;margin-bottom:25px;color:var(--dark-gray);font-size:1.4rem;font-weight:600;position:relative;display:inline-block;padding-bottom:8px}.file-section h3:after{content:"";position:absolute;bottom:0;left:0;width:60%;height:3px;background-color:var(--coral);border-radius:2px}.template-vars-container{display:flex;gap:25px}.template-vars-menu{flex:1;display:flex;flex-direction:column;gap:12px;padding:20px;border-radius:12px;background-color:var(--light-creamy-white);height:540px;overflow-y:auto;overflow-x:auto;box-shadow:inset 0 2px 6px #0000000d;scrollbar-width:thin;scrollbar-color:var(--coral) var(--light-creamy-white)}.template-vars-menu::-webkit-scrollbar{width:6px}.template-vars-menu::-webkit-scrollbar-track{background:var(--light-creamy-white);border-radius:10px}.template-vars-menu::-webkit-scrollbar-thumb{background-color:var(--coral);border-radius:10px}.menu-button{flex-shrink:0;align-self:flex-start;min-width:100%;background-color:var(--dark-gray);color:var(--coral);padding:12px 18px;border:none;border-radius:8px;cursor:pointer;font-size:1rem;text-align:left;transition:all .2s ease;box-shadow:0 2px 4px #0000001a;position:relative;overflow:hidden}.menu-button.complete{background-color:var(--dark-gray);color:var(--coral)}.menu-button.complete:before{content:"";position:absolute;left:0;top:0;height:100%;width:8px;background-color:#4fc3f7;opacity:1;transition:opacity .2s ease}.menu-button.complete:hover{background-color:var(--dark-gray);color:#fff;transform:translate(3px)}.menu-button.complete:hover:before{opacity:1;width:10px;background-color:#4fc3f7}.menu-button.incomplete{background-color:var(--dark-gray);color:var(--coral)}.menu-button:before{content:"";position:absolute;left:0;top:0;height:100%;width:4px;background-color:var(--deep-coral);opacity:0;transition:opacity .2s ease}.menu-button:hover{background-color:var(--dark-gray);color:#fff;transform:translate(3px)}.menu-button:hover:before{opacity:1}.menu-button.active{background-color:var(--deep-coral);color:#fff;transform:translate(3px);box-shadow:0 3px 8px #ff7f504d}.menu-button.active:before{opacity:1;width:6px}.template-vars-form{flex:2;display:flex;flex-direction:column;gap:20px;border-radius:12px;padding:0;background-color:transparent}.collapsable-form-section{display:flex;flex-direction:column;padding:25px;border:none;border-radius:12px;background-color:#fff;box-shadow:0 4px 16px #00000014;transition:all .3s ease}.collapsable-form-section:hover{box-shadow:0 8px 24px #0000001f}.collapsable-form-section h3{color:var(--dark-gray);margin-top:0;margin-bottom:30px;font-size:1.3rem;font-weight:600;padding-bottom:10px;border-bottom:2px solid rgba(0,0,0,.05)}.form-field{display:flex;align-items:center;margin-bottom:22px}.form-field label{flex:0 0 150px;margin-bottom:0;color:var(--dark-gray);font-weight:600;margin-right:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:1.05rem}.form-field input[type=text],.form-field select{flex:1;padding:12px 16px;border:1px solid rgba(0,0,0,.1);border-radius:8px;background-color:#fff;color:var(--dark-gray);font-size:1rem;transition:all .2s ease;box-shadow:0 1px 3px #0000000d}.form-field textarea{flex:1;padding:12px 16px;border:1px solid rgba(0,0,0,.1);border-radius:8px;background-color:#fff;color:var(--dark-gray);font-size:1rem;transition:all .2s ease;box-shadow:0 1px 3px #0000000d;min-height:200px;resize:vertical;font-family:Courier New,Courier,monospace;font-weight:700}.form-field input[type=text]:focus,.form-field select:focus,.form-field textarea:focus{outline:none;border-color:var(--deep-coral);box-shadow:0 0 0 3px #ff7f5033}.form-field select{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right 12px center;background-size:16px;padding-right:40px}.submit-button{display:block;width:100%;padding:14px 20px;background-color:var(--deep-coral);color:#fff;border:none;border-radius:10px;cursor:pointer;font-size:1.1rem;font-weight:600;letter-spacing:.5px;transition:all .3s ease;margin-top:30px;box-shadow:0 4px 12px #ff7f504d}.submit-button:hover{background-color:var(--deep-coral);transform:translateY(-3px);box-shadow:0 6px 16px #ff7f5066}.submit-button:active{transform:translateY(-1px)}.submit-button:disabled{background-color:#ccc;color:#999;cursor:not-allowed;transform:none;box-shadow:0 2px 6px #0000001a}.submit-button:disabled:hover{background-color:#ccc;transform:none;box-shadow:0 2px 6px #0000001a}.spinner{display:inline-block;width:16px;height:16px;border:2px solid #ffffff;border-radius:50%;border-top-color:transparent;animation:spin 1s ease-in-out infinite;margin-right:8px}.error-message{color:var(--deep-coral);font-size:1.05rem;font-weight:600;margin-top:15px;text-align:start;position:relative;padding:12px 15px 12px 40px;background-color:#ff7f501a;border-radius:8px;border-left:4px solid var(--deep-coral)}.error-message:before{content:"!";position:absolute;left:12px;top:50%;transform:translateY(-50%);background-color:var(--deep-coral);color:#fff;border-radius:50%;width:20px;height:20px;display:flex;justify-content:center;align-items:center;font-size:1.1rem;font-weight:700;box-shadow:0 2px 4px #0003}.success-message{color:green;font-size:1.05rem;font-weight:600;margin-top:15px;text-align:start;position:relative;padding:12px 15px 12px 40px;background-color:#0080001a;border-radius:8px;border-left:4px solid green}.success-message:before{content:"✓";position:absolute;left:12px;top:50%;transform:translateY(-50%);background-color:green;color:#fff;border-radius:50%;width:20px;height:20px;display:flex;justify-content:center;align-items:center;font-size:1.1rem;font-weight:700;box-shadow:0 2px 4px #0003}.field-actions{display:flex;gap:15px;margin-top:30px}.field-actions .submit-button{flex:1;margin-top:0}.delete-button{flex:1;padding:14px 20px;background-color:#dc3545;color:#fff;border:none;border-radius:10px;cursor:pointer;font-size:1.1rem;font-weight:600;letter-spacing:.5px;transition:all .3s ease;box-shadow:0 4px 12px #dc35454d}.delete-button:hover{background-color:#c82333;transform:translateY(-3px);box-shadow:0 6px 16px #dc354566}.delete-button:active{transform:translateY(-1px)}.loadbar-container{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:200px}.loadbar-track{width:100%;height:4px;background-color:#ffffff4d;border-radius:2px;overflow:hidden;position:relative}.loadbar-fill{height:100%;background:linear-gradient(90deg,var(--deep-coral, #d25956) 0%,var(--coral, #ff7977) 100%);border-radius:2px;transition:width .1s ease-out;position:relative}.loadbar-fill:after{content:"";position:absolute;top:0;right:0;width:20px;height:100%;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.3) 50%,transparent 100%);animation:shimmer 2s infinite}@keyframes shimmer{0%{transform:translate(-20px);opacity:0}50%{opacity:1}to{transform:translate(20px);opacity:0}}.loadbar-text{color:#fff;font-size:12px;font-weight:500;text-align:center;white-space:nowrap;animation:fadeInOut 1s ease-in-out}@keyframes fadeInOut{0%{opacity:.7}50%{opacity:1}to{opacity:.9}}.loadbar-container{min-height:24px;justify-content:center}.extracted-field-card{border:none;padding:15px;margin-bottom:10px;border-radius:12px;display:flex;flex-direction:column;gap:10px;background-color:#fff;box-shadow:0 2px 8px #00000014}.extracted-field-card .field-header{display:flex;align-items:center;gap:5px}.extracted-field-card label{font-weight:700}.extracted-field-card input[type=text]{flex-grow:1;padding:15px;border:none;border-radius:10px;background-color:#f0f0f0;color:#333;box-shadow:0 2px 8px #00000014}.extracted-field-card input[type=text][disabled]{background-color:#add8e6}.extracted-field-card input[type=checkbox]{margin-left:0;margin-right:5px}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#0006;display:flex;justify-content:center;align-items:center;z-index:var(--z-modal);animation:fadeIn var(--transition-base) ease-out}.modal-content{background-color:var(--system-white);color:var(--system-text-primary);padding:0;border-radius:var(--radius-2xl);box-shadow:var(--shadow-xl);max-width:95vw;min-width:90vw;max-height:95vh;overflow:hidden;position:relative;display:flex;animation:scaleIn var(--transition-base) ease-out}.close-button{position:absolute;top:var(--spacing-lg);right:var(--spacing-lg);background:var(--system-gray-5);border:none;width:32px;height:32px;border-radius:var(--radius-full);cursor:pointer;color:var(--system-text-secondary);font-size:var(--font-size-lg);display:flex;align-items:center;justify-content:center;transition:all var(--transition-fast);z-index:10}.close-button:hover{background:var(--system-gray-4);color:var(--system-text-primary);transform:scale(1.05)}.file-viewer-container{flex:1.5;background-color:var(--system-background);overflow-y:auto;border-radius:var(--radius-2xl) 0 0 var(--radius-2xl)}.fields-section{flex:1;display:flex;flex-direction:column;background-color:var(--system-white);border-radius:0 var(--radius-2xl) var(--radius-2xl) 0;border-left:1px solid var(--system-gray-4);overflow:hidden}.file-tabs-container{padding:var(--spacing-lg) var(--spacing-lg) 0;border-bottom:1px solid var(--system-gray-4)}.file-tabs{display:flex;gap:var(--spacing-xs);flex-wrap:wrap;margin-bottom:var(--spacing-lg)}.file-tab{display:flex;align-items:center;gap:var(--spacing-xs);padding:var(--spacing-sm) var(--spacing-md);background-color:transparent;color:var(--system-text-secondary);border:1px solid var(--system-gray-4);border-radius:var(--radius-full);cursor:pointer;font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);transition:all var(--transition-fast)}.file-tab:hover{background-color:var(--system-gray-6);border-color:var(--system-gray-3)}.file-tab.active{background-color:var(--system-blue);border-color:var(--system-blue);color:var(--system-white)}.file-tab-name{font-weight:var(--font-weight-medium)}.file-tab-count{background-color:var(--system-white);color:var(--system-blue);padding:2px var(--spacing-xs);border-radius:var(--radius-full);font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold);min-width:18px;text-align:center}.file-tab.active .file-tab-count{background-color:#ffffffe6;color:var(--system-blue)}.file-tab.all-checked{background-color:var(--system-green);border-color:var(--system-green);color:var(--system-white)}.file-tab.all-checked .file-tab-count{background-color:#ffffffe6;color:var(--system-green)}.file-tab.all-checked:hover{background-color:var(--system-green);border-color:var(--system-green)}.extracted-fields-container{flex:1;overflow-y:auto;padding:var(--spacing-lg);background-color:var(--system-white)}.extracted-fields-container h3{color:var(--system-text-primary);margin:0 0 var(--spacing-lg) 0;font-size:var(--font-size-xl);font-weight:var(--font-weight-semibold);letter-spacing:-.01em;line-height:var(--line-height-tight)}.page-section{margin-bottom:var(--spacing-xl)}.page-header{display:flex;align-items:center;gap:var(--spacing-sm);margin:var(--spacing-xl) 0 var(--spacing-md) 0;padding-bottom:var(--spacing-sm);border-bottom:1px solid var(--system-gray-4)}.page-header:first-of-type{margin-top:0}.page-checkbox{width:18px;height:18px;accent-color:var(--system-blue);cursor:pointer}.page-title{font-size:var(--font-size-md);font-weight:var(--font-weight-semibold);color:var(--system-text-secondary);margin:0;letter-spacing:-.01em;flex:1}.goto-page-button{background-color:var(--system-blue);color:var(--system-white);border:none;padding:var(--spacing-xs) var(--spacing-sm);border-radius:var(--radius-md);cursor:pointer;font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);transition:all var(--transition-fast);margin-left:auto}.goto-page-button:hover{background-color:var(--system-blue-hover);transform:translateY(-1px);box-shadow:var(--shadow-sm)}.goto-page-button:active{transform:translateY(0)}.submit-section{padding:var(--spacing-lg);border-top:1px solid var(--system-gray-4);background-color:var(--system-gray-6);display:flex;align-items:center;gap:var(--spacing-md)}.submit-button{background-color:var(--system-blue);color:var(--system-white);border:none;padding:var(--spacing-md) var(--spacing-xl);border-radius:var(--radius-full);cursor:pointer;font-size:var(--font-size-md);font-weight:var(--font-weight-semibold);transition:all var(--transition-fast);display:flex;align-items:center;justify-content:center;gap:var(--spacing-sm);min-width:120px}.submit-button:hover:not(.disabled){background-color:var(--system-blue-hover);transform:translateY(-1px);box-shadow:var(--shadow-md)}.submit-button:active:not(.disabled){transform:translateY(0)}.submit-button.disabled{background-color:var(--system-gray-3);color:var(--system-text-tertiary);cursor:not-allowed;transform:none}.submit-button .spinner{display:inline-block;width:16px;height:16px;border:2px solid currentColor;border-radius:var(--radius-full);border-top-color:transparent;animation:spin 1s linear infinite}.draft-status{font-size:var(--font-size-sm);color:var(--system-text-secondary);font-style:italic;display:flex;align-items:center;gap:var(--spacing-xs)}.draft-status.saving{color:var(--system-text-tertiary)}.draft-status.saved{color:var(--system-green)}.error-message{color:var(--system-red);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);margin:0;padding:var(--spacing-sm) var(--spacing-md);background-color:var(--system-red-background);border:1px solid var(--system-red-border);border-radius:var(--radius-md)}.empty-state{text-align:center;padding:var(--spacing-4xl) var(--spacing-xl);color:var(--system-text-secondary)}.empty-state h2{font-size:var(--font-size-xl);font-weight:var(--font-weight-semibold);color:var(--system-text-primary);margin:0 0 var(--spacing-md) 0}.empty-state p{font-size:var(--font-size-base);color:var(--system-text-secondary);line-height:var(--line-height-base);max-width:400px;margin:0 auto}@media (max-width: 768px){.modal-overlay{padding:0;align-items:stretch;justify-content:stretch}.modal-content{min-width:100vw;max-width:100vw;min-height:100vh;max-height:100vh;border-radius:0;flex-direction:column}.close-button{top:var(--spacing-md);right:var(--spacing-md);background-color:#ffffffe6;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:var(--shadow-sm)}.file-viewer-container{flex:none;height:40vh;border-radius:0}.fields-section{flex:1;border-radius:0;border-left:none;border-top:1px solid var(--system-gray-4)}.file-tabs-container{padding:var(--spacing-md)}.file-tabs{gap:var(--spacing-xs)}.file-tab{padding:var(--spacing-xs) var(--spacing-sm);font-size:var(--font-size-xs);flex:1;min-width:0;justify-content:center}.file-tab-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.extracted-fields-container{padding:var(--spacing-md)}.extracted-fields-container h3{font-size:var(--font-size-lg);margin-bottom:var(--spacing-md)}.goto-page-button{padding:var(--spacing-xs);font-size:var(--font-size-xs)}.submit-section{padding:var(--spacing-md)}.submit-button{padding:var(--spacing-sm) var(--spacing-lg);font-size:var(--font-size-sm)}}@media (max-width: 480px){.modal-content{gap:0}.close-button{top:var(--spacing-sm);right:var(--spacing-sm);width:28px;height:28px;font-size:var(--font-size-base)}.file-viewer-container{height:35vh}.file-tabs-container,.extracted-fields-container,.submit-section{padding:var(--spacing-sm)}.file-tab{padding:var(--spacing-xs);font-size:10px}.extracted-fields-container h3{font-size:var(--font-size-base)}.goto-page-button{padding:var(--spacing-xs);font-size:10px}}.modal-content .file-viewer-container>div{overflow-y:auto;height:100%;padding:var(--spacing-lg)}@media (max-width: 768px){.modal-content .file-viewer-container>div{padding:var(--spacing-md)}}@media (max-width: 480px){.modal-content .file-viewer-container>div{padding:var(--spacing-sm)}}.chat-full-warning{position:fixed;bottom:120px;left:50%;transform:translate(-50%);z-index:1000;background:linear-gradient(135deg,#ff7977,#d25956);color:#fff;padding:12px 20px;border-radius:8px;box-shadow:0 4px 12px #ff79774d;animation:slideUpFadeIn .3s ease-out;max-width:90%}.chat-full-message{display:flex;align-items:center;gap:12px;font-size:14px;font-weight:500}.new-chat-button{background:#fff3;color:#fff;border:1px solid rgba(255,255,255,.3);padding:6px 12px;border-radius:4px;font-size:12px;font-weight:500;cursor:pointer;transition:all .2s ease}.new-chat-button:hover{background:#ffffff4d;border-color:#ffffff80;transform:translateY(-1px)}@keyframes slideUpFadeIn{0%{transform:translate(-50%,20px);opacity:0}to{transform:translate(-50%);opacity:1}}.chat-interface-wrapper{display:block;height:100%;margin-top:0;overflow:hidden;position:relative;animation:fadeIn var(--transition-slow) ease-out}.chat-interface-container{height:100%;border-radius:0;background-color:var(--system-background);color:var(--system-text-primary);box-shadow:none;transition:all var(--transition-base) ease;display:flex;flex-direction:column;align-items:center;position:relative;overflow:hidden;border:none}.chat-interface-container.split-view{max-width:100%;display:grid;grid-template-columns:1fr 1.5fr;gap:var(--spacing-lg);align-items:stretch;overflow:visible}.chat-section{display:flex;flex-direction:column;width:100%;height:calc(100vh - 140px);overflow:hidden}.canvas-section{display:none;flex-direction:column;height:calc(100vh - 140px);overflow-y:auto;padding:var(--spacing-lg) var(--spacing-lg) 140px var(--spacing-lg);background-color:var(--system-background);border-radius:0;box-shadow:none;border:none;border-left:1px solid var(--system-gray-4)}.chat-interface-container.split-view .canvas-section{display:flex}.chat-interface-title{color:var(--dark-gray);margin-top:0;text-align:center;margin-bottom:35px;font-size:1.8rem;font-weight:600;position:relative;padding-bottom:12px}.chat-interface-title:after{content:"";position:absolute;bottom:0;left:50%;transform:translate(-50%);width:80px;height:3px;background-color:var(--deep-coral);border-radius:2px}.chat-messages{flex:1;overflow-y:auto;padding-top:var(--spacing-2xl);padding-bottom:120px;margin-bottom:0;background-color:transparent;border-radius:0;box-shadow:none;display:flex;flex-direction:column;gap:var(--spacing-lg);min-height:0;height:calc(100vh - 220px);scroll-padding-top:20px;max-width:none;margin-left:auto;margin-right:auto;padding-left:max(var(--spacing-lg),calc(50% - 300px));padding-right:max(var(--spacing-lg),calc(50% - 300px))}.chat-interface-container.split-view .chat-section{padding-left:var(--spacing-xl)}.chat-interface-container.split-view .chat-messages{padding-right:var(--spacing-xl)}.chat-interface-container.split-view .chat-messages{margin-left:0;margin-right:0;max-width:100%}.message{max-width:100%;padding:var(--spacing-lg) 0;border-radius:0;position:relative;animation:fadeIn .3s ease;border-bottom:1px solid var(--system-gray-4);background:transparent;box-shadow:none}.message:last-child{border-bottom:none}.first-message{animation:fadeInFirst .6s ease;animation-fill-mode:both}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeInFirst{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.user-message{align-self:stretch;background-color:transparent;color:var(--system-text-primary);border-bottom-right-radius:0;box-shadow:none;border-bottom:1px solid var(--system-gray-4)}.assistant-message{align-self:stretch;background-color:transparent;color:var(--system-text-primary);border-bottom-left-radius:0;box-shadow:none;border:none;border-bottom:1px solid var(--system-gray-4)}.assistant-message.typing{border-bottom:1px solid var(--system-gray-4)}.message-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--spacing-sm)}.message-author{font-size:var(--font-size-sm);font-weight:var(--font-weight-semibold);color:var(--system-text-secondary)}.user-message .message-author{color:var(--system-blue)}.assistant-message .message-author{color:var(--system-text-secondary)}.message-content{font-size:var(--font-size-md);line-height:var(--line-height-base);word-break:break-word;white-space:pre-wrap;text-align:left;font-weight:var(--font-weight-regular);color:var(--system-text-primary)}.message-timestamp{font-size:var(--font-size-xs);opacity:.7;color:var(--system-text-tertiary)}.typing-indicator{display:flex;align-items:center;gap:var(--spacing-xs);padding:var(--spacing-lg) 0}.typing-indicator span{width:8px;height:8px;background-color:var(--system-text-secondary);border-radius:var(--radius-full);display:inline-block;opacity:.6;animation:typing 1.4s infinite ease-in-out both}.typing-indicator span:nth-child(1){animation-delay:0s}.typing-indicator span:nth-child(2){animation-delay:.2s}.typing-indicator span:nth-child(3){animation-delay:.4s}@keyframes typing{0%,to{transform:translateY(0)}50%{transform:translateY(-5px)}}.chat-input-actions{display:flex;gap:8px;align-items:center}.chat-input-form{position:fixed;bottom:0;left:0;right:0;height:100px;background-color:var(--system-background);padding:var(--spacing-lg);border-radius:0;box-shadow:none;z-index:1000;border-top:1px solid var(--system-gray-4);display:flex;justify-content:center}.chat-input-container{display:flex;gap:var(--spacing-md);align-items:center;width:100%;max-width:700px}.chat-interface-wrapper:has(.split-view) .chat-input-form{justify-content:flex-start}.chat-interface-wrapper:has(.split-view) .chat-input-container{max-width:calc(50% - var(--spacing-lg))}.tools-header-chat{font-size:var(--font-size-xl);font-weight:var(--font-weight-semibold);color:var(--system-text-primary);margin:0 0 var(--spacing-lg) 0;letter-spacing:-.02em;line-height:var(--line-height-tight);text-align:center}.chat-input{flex:1;padding:var(--spacing-lg);border:1px solid var(--system-gray-3);border-radius:var(--radius-lg);background-color:var(--system-white);color:var(--system-text-primary);font-size:var(--font-size-md);box-shadow:var(--shadow-sm);transition:all var(--transition-fast) ease;min-height:60px;max-height:120px;resize:none;font-family:inherit;overflow-y:auto;line-height:var(--line-height-normal)}.chat-input:focus{outline:none;border-color:var(--system-blue);box-shadow:0 0 0 3px var(--system-blue-background)}.character-counter{position:absolute;bottom:8px;right:12px;pointer-events:none}.character-count{font-size:var(--font-size-xs);color:var(--system-text-secondary);background-color:var(--system-white);padding:2px 6px;border-radius:var(--radius-sm);border:1px solid var(--system-gray-4);transition:all var(--transition-fast) ease}.character-count.near-limit{color:#f59e0b;border-color:#f59e0b;background-color:#fef3c7}.character-count.at-limit{color:#dc2626;border-color:#dc2626;background-color:#fee2e2;font-weight:var(--font-weight-semibold)}.send-button{background-color:var(--system-blue);color:var(--system-white);border:none;padding:0 var(--spacing-xl);border-radius:var(--radius-lg);cursor:pointer;font-size:var(--font-size-md);font-weight:var(--font-weight-semibold);transition:all var(--transition-fast) ease;box-shadow:var(--shadow-md);height:60px;display:flex;align-items:center;justify-content:center}.send-button:hover:not(:disabled){background-color:var(--system-blue-hover);transform:translateY(-1px);box-shadow:var(--shadow-lg)}.tools-button{background-color:var(--system-gray-2);color:var(--system-white);border:none;padding:0;border-radius:var(--radius-lg);cursor:pointer;font-size:var(--font-size-lg);font-weight:var(--font-weight-semibold);transition:all var(--transition-fast) ease;box-shadow:var(--shadow-md);display:flex;align-items:center;justify-content:center;height:60px;width:60px}.tools-button img{width:24px;height:24px;object-fit:contain}.tools-button:hover{background-color:var(--system-blue);transform:translateY(-1px);box-shadow:var(--shadow-lg)}.tools-button:active{transform:translateY(0);transition-duration:var(--transition-fast)}.dropbox-grid-container{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:var(--spacing-md);padding:var(--spacing-lg);margin-top:var(--spacing-lg);background-color:transparent;border-radius:0;border:none;animation:slideUp var(--transition-base) ease forwards}@keyframes fadeInDropboxes{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.dropbox-container{display:flex;flex-direction:column;align-items:stretch}.dropbox-category{font-weight:var(--font-weight-semibold);color:var(--system-text-primary);margin:0 0 var(--spacing-xs) 0;padding:0 0 var(--spacing-xs) 0;font-size:var(--font-size-md);text-align:left;border-bottom:2px solid var(--system-blue)}.dropbox-item{background-color:var(--system-white);border:1px solid var(--system-gray-4);border-radius:var(--radius-xl);padding:var(--spacing-lg);text-align:center;transition:all var(--transition-fast) ease;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:space-between;min-height:100px;box-shadow:var(--shadow-sm)}.dropbox-item:hover{background-color:var(--system-gray-6);border-color:var(--system-blue);transform:translateY(-1px);box-shadow:var(--shadow-hover)}.dropbox-description{font-size:var(--font-size-sm);color:var(--system-text-secondary);margin-bottom:var(--spacing-xs)}.file-types{font-size:var(--font-size-xs);color:var(--system-text-tertiary);margin:0 0 var(--spacing-lg) 0;font-style:italic}.dropbox-area{width:40px;height:40px;border-radius:var(--radius-full);background-color:var(--system-gray-5);display:flex;align-items:center;justify-content:center;font-size:var(--font-size-xl);color:var(--system-blue);border:1px solid var(--system-blue);margin-top:var(--spacing-sm)}.dropbox-item:hover .dropbox-area{background-color:var(--system-blue);color:var(--system-white)}.dropbox-item.filled{border-color:var(--system-green);background-color:var(--system-green-background)}.dropbox-item.filled:hover{border-color:var(--system-green);background-color:var(--system-green-background);opacity:.9}.dropbox-item.filled .dropbox-area{background-color:var(--system-green);border-color:var(--system-green);color:var(--system-white)}.checkmark{font-size:1.2rem;font-weight:700}.dropbox-content{flex-grow:1;width:100%;display:flex;flex-direction:column;justify-content:center;overflow:hidden}.file-list-preview{font-size:var(--font-size-sm);text-align:left;max-height:80px;overflow-y:auto;padding:var(--spacing-xs);background-color:var(--system-gray-5);border-radius:var(--radius-md);margin-bottom:var(--spacing-sm);width:100%;border:1px solid var(--system-gray-4)}.file-list-preview p{margin:0 0 var(--spacing-xs) 0;font-weight:var(--font-weight-medium);color:var(--system-text-primary)}.file-list-preview ul{list-style:none;padding:0;margin:0}.file-list-preview li{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--system-text-secondary);padding:var(--spacing-xs) 0;border-bottom:1px solid var(--system-gray-4)}.file-list-preview li:last-child{border-bottom:none}.file-item{display:flex;justify-content:flex-start;align-items:center;gap:var(--spacing-xs)}.file-icon{color:var(--system-blue);flex-shrink:0}.file-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.remove-file-btn{background-color:transparent;border:none;color:var(--system-text-secondary);font-size:var(--font-size-lg);font-weight:var(--font-weight-bold);cursor:pointer;padding:0;width:20px;height:20px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-full);transition:all var(--transition-fast);flex-shrink:0;order:-1;margin-right:var(--spacing-xs)}.remove-file-btn:hover{background-color:var(--system-red-background);color:var(--system-red)}.remove-file-btn:active{transform:scale(.95)}.send-button:active:not(:disabled){transform:translateY(0)}.send-button:disabled{background-color:#ccc;cursor:not-allowed;box-shadow:none}.chat-messages{scrollbar-width:none;-ms-overflow-style:none}.chat-messages::-webkit-scrollbar{display:none}.tools-container{margin-top:var(--spacing-lg);padding:var(--spacing-lg);background-color:transparent;border-radius:0;box-shadow:none;border:none;animation:slideUp var(--transition-base) ease;animation-fill-mode:both}.tools-loading{display:flex;justify-content:center;align-items:center;min-height:200px;animation:fadeIn .3s ease-out}.tools-list{list-style:none;padding:0;display:flex;flex-direction:column;gap:0;max-width:600px;margin:0 auto}.tool-item{background-color:transparent;color:var(--system-text-primary);border:none;padding:var(--spacing-md) 0;border-radius:0;cursor:pointer;font-size:var(--font-size-md);font-weight:var(--font-weight-medium);transition:all var(--transition-fast) ease;box-shadow:none;text-align:left;opacity:0;animation:fadeInToolItem .3s ease forwards;animation-fill-mode:both;border-bottom:1px solid var(--system-gray-4);min-height:60px;display:flex;align-items:center}.tool-item-content{width:100%}.tool-item-header{display:flex;justify-content:space-between;align-items:center;width:100%}.tool-item-left{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.tool-item-name{font-size:var(--font-size-md);font-weight:var(--font-weight-medium);color:var(--system-text-primary);margin:0;line-height:var(--line-height-tight)}.tool-item-meta{display:flex;gap:var(--spacing-xs);align-items:center;flex-shrink:0}.tool-version{font-size:var(--font-size-xs);color:var(--system-text-secondary);background-color:var(--system-gray-5);padding:2px 6px;border-radius:var(--radius-sm);font-weight:var(--font-weight-medium)}.tool-status{font-size:var(--font-size-xs);color:var(--system-white);background-color:var(--system-orange);padding:2px 6px;border-radius:var(--radius-sm);font-weight:var(--font-weight-medium);text-transform:capitalize}.tool-item-files{display:flex;align-items:baseline;gap:var(--spacing-sm);flex-wrap:nowrap;overflow:hidden}.tool-file-group{display:flex;align-items:baseline;gap:4px;min-width:0}.tool-file-label{font-size:var(--font-size-xs);color:var(--system-text-tertiary);font-weight:var(--font-weight-medium);text-transform:lowercase;letter-spacing:0;flex-shrink:0}.tool-file-list{font-size:var(--font-size-xs);color:var(--system-text-secondary);line-height:var(--line-height-normal);font-weight:var(--font-weight-regular);font-style:italic;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.tool-item:last-child{border-bottom:none}.canvas-nav{display:flex;gap:var(--spacing-sm);margin-bottom:var(--spacing-lg);border-bottom:1px solid var(--system-gray-4);padding-bottom:var(--spacing-sm)}.nav-btn{background-color:transparent;color:var(--system-text-secondary);border:none;padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--radius-md);cursor:pointer;font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);transition:all var(--transition-fast) ease}.nav-btn:hover{background-color:var(--system-gray-5);color:var(--system-text-primary)}.nav-btn.active{background-color:var(--system-blue);color:var(--system-white)}.chat-history-container{margin-top:var(--spacing-lg);padding:var(--spacing-lg);background-color:transparent;border-radius:0;box-shadow:none;border:none;animation:slideUp var(--transition-base) ease;animation-fill-mode:both}.chat-history-header{display:flex;justify-content:center;align-items:center;margin-bottom:var(--spacing-lg);position:relative}.chat-history-title{font-size:var(--font-size-xl);font-weight:var(--font-weight-semibold);color:var(--system-text-primary);margin:0;letter-spacing:-.02em;line-height:var(--line-height-tight)}.new-chat-btn-history{display:flex;align-items:center;gap:var(--spacing-xs);background-color:var(--system-blue);color:var(--system-white);border:none;padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--radius-md);cursor:pointer;font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);transition:all var(--transition-fast) ease;box-shadow:var(--shadow-sm);position:absolute;right:0}.new-chat-btn-history:hover{background-color:var(--system-blue-hover);transform:translateY(-1px);box-shadow:var(--shadow-md)}.chat-history-loading{display:flex;justify-content:center;align-items:center;min-height:200px;animation:fadeIn .3s ease-out}.chat-history-list{list-style:none;padding:0;display:flex;flex-direction:column;gap:0;max-width:600px;margin:0 auto}.chat-history-item{background-color:transparent;color:var(--system-text-primary);border:none;padding:var(--spacing-md) 0;border-radius:0;cursor:pointer;transition:all var(--transition-fast) ease;box-shadow:none;text-align:left;opacity:0;animation:fadeInToolItem .3s ease forwards;animation-fill-mode:both;border-bottom:1px solid var(--system-gray-4);min-height:60px;display:flex;align-items:center}.chat-history-item:last-child{border-bottom:none}.chat-history-item:hover{background-color:var(--system-gray-6);padding-left:var(--spacing-sm)}.chat-history-item.active{background-color:var(--system-blue-background);color:var(--system-blue)}.chat-history-item-content{width:100%}.chat-history-item-header{display:flex;justify-content:space-between;align-items:center;width:100%;margin-bottom:2px}.chat-history-item-title{font-size:var(--font-size-md);font-weight:var(--font-weight-medium);color:var(--system-text-primary);margin:0;line-height:var(--line-height-tight)}.chat-history-date{font-size:var(--font-size-xs);color:var(--system-text-secondary);background-color:var(--system-gray-5);padding:2px 6px;border-radius:var(--radius-sm);font-weight:var(--font-weight-medium)}.chat-history-preview{font-size:var(--font-size-sm);color:var(--system-text-secondary);margin:0 0 2px;line-height:var(--line-height-normal);font-weight:var(--font-weight-regular);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-history-meta{display:flex;align-items:center}.chat-message-count{font-size:var(--font-size-xs);color:var(--system-text-tertiary);font-weight:var(--font-weight-medium)}@keyframes fadeInTools{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeInToolItem{0%{opacity:0;transform:scale(.9) translateY(10px)}to{opacity:1;transform:scale(1) translateY(0)}}.tool-item:hover{background-color:transparent;transform:none;box-shadow:none;padding-left:var(--spacing-sm);color:var(--system-blue)}.tool-item:active{transform:none;transition-duration:var(--transition-fast)}.submit-button-container{display:flex;flex-direction:column;align-items:center;gap:var(--spacing-lg);margin-top:var(--spacing-3xl);width:100%}.submit-files-button{background-color:var(--system-blue);color:var(--system-white);border:none;padding:var(--spacing-md) var(--spacing-xl);border-radius:var(--radius-full);width:auto;cursor:pointer;font-size:var(--font-size-md);font-weight:var(--font-weight-medium);transition:all var(--transition-base) ease;box-shadow:var(--shadow-sm);min-width:200px}.submit-files-button:hover{background-color:var(--system-blue-hover);opacity:1;transform:translateY(-1px);box-shadow:var(--shadow-md)}.dropbox-header{display:flex;align-items:center;gap:var(--spacing-lg);margin-bottom:var(--spacing-lg);padding:var(--spacing-lg) 0;border-bottom:1px solid var(--system-gray-4)}.back-to-tools-btn{display:inline-flex;align-items:center;gap:var(--spacing-xs);background-color:var(--system-gray-5);color:var(--system-text-primary);border:none;padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--radius-lg);cursor:pointer;font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);transition:all var(--transition-fast) ease;box-shadow:var(--shadow-sm)}.back-to-tools-btn:hover{background-color:var(--system-blue);color:var(--system-white);transform:translateY(-1px);box-shadow:var(--shadow-md)}.back-to-tools-btn svg{width:16px;height:16px}.selected-tool-title{font-size:var(--font-size-xl);font-weight:var(--font-weight-semibold);color:var(--system-text-primary);margin:0;letter-spacing:-.02em;line-height:var(--line-height-tight)}.submit-files-button:active{transform:translateY(0)}.submit-files-button:disabled{background-color:#ccc;cursor:not-allowed;box-shadow:none;transform:none}.submit-files-button:disabled:hover{background-color:#ccc;transform:none;box-shadow:none}.submit-files-button .spinner{display:inline-block;width:16px;height:16px;border:2px solid #ffffff;border-radius:50%;border-top-color:transparent;animation:spin 1s ease-in-out infinite;margin-right:8px}.extraction-spinner{display:inline-block;width:32px;height:32px;border:3px solid var(--light-creamy-white);border-radius:50%;border-top-color:var(--deep-coral);animation:spin 1s ease-in-out infinite}@keyframes fadeInStatus{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.message{max-width:100%;padding:var(--spacing-lg) 0;border-radius:0;position:relative;animation:fadeIn .3s ease;transition:all var(--transition-fast);box-shadow:none;border-bottom:1px solid var(--system-gray-4);background:transparent}.message:hover{transform:none;background-color:var(--system-gray-6);box-shadow:none}.modal-content{display:flex;gap:20px;width:90%;max-width:1200px;height:90%;max-height:800px}.extracted-fields-container,.extracted-fields-container-buttons{flex:1;overflow-y:auto;padding:10px}.modal-content .file-viewer-container{flex:2;overflow-y:auto}.modal-content .file-viewer-container canvas{max-width:100%;height:auto;display:block;margin:0 auto}.modal-content .file-viewer-container>div{overflow-y:auto;height:100%}.cursor{display:inline-block;width:2px;height:1.2em;background-color:currentColor;margin-left:2px;animation:blink 1s infinite;vertical-align:text-bottom}@keyframes blink{0%,50%{opacity:1}51%,to{opacity:0}}.message.streaming .message-content{animation:none}@media (min-width: 769px){.mobile-backdrop{display:none}}@media (max-width: 768px){.chat-interface-wrapper{flex-direction:column;height:100vh;overflow:hidden;padding-left:0;margin-top:0}.chat-interface-wrapper:has(.chat-sidebar.minimized){padding-left:0}.chat-interface-container{border-radius:0;box-shadow:none;margin:0;padding:0}.chat-interface-container.split-view{grid-template-columns:1fr;grid-template-rows:1fr auto;gap:10px;padding:10px}.chat-section{height:calc(100vh - 140px);padding-top:70px}.chat-messages{padding:0 10px 130px;border-radius:8px;height:calc(100vh - 180px);scroll-padding-top:15px}.message{padding:12px;font-size:.9rem;max-width:75%}.first-message{margin-top:30px}.message-content{font-size:1rem;line-height:1.4}.message-author{font-size:var(--font-size-xs)}.message-timestamp{font-size:.7rem}.canvas-section{position:fixed;bottom:0;left:0;right:0;max-height:70vh;background-color:var(--creamy-white);border-radius:16px 16px 0 0;box-shadow:0 -10px 30px #0003;z-index:1500;transform:translateY(100%);transition:transform .3s ease;padding:20px 15px 160px;overflow-y:auto}.chat-interface-container.split-view .canvas-section{transform:translateY(0)}.canvas-section:before{content:"";position:absolute;top:8px;left:50%;transform:translate(-50%);width:40px;height:4px;background-color:var(--mid-coral);border-radius:2px;opacity:.7}.mobile-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#0000004d;z-index:1400;transition:opacity .3s ease;cursor:pointer}.chat-input-form{padding:10px;height:auto;min-height:110px;z-index:1600}.chat-input-container{flex-direction:column;gap:10px;align-items:stretch;max-width:100%}.chat-input{min-height:60px;max-height:120px;font-size:1rem;padding:12px 16px;order:1}.chat-input-form .chat-input-actions{display:flex;gap:10px;order:2}.send-button,.tools-button{height:45px;flex:1}.send-button{padding:0 20px;font-size:.9rem;min-width:0}.tools-button{width:45px;flex:0 0 45px}.tools-button img{width:20px;height:20px}.dropbox-grid-container{grid-template-columns:1fr;gap:8px;padding:8px}.dropbox-item{min-height:120px;padding:12px}.dropbox-category{font-size:.9rem}.dropbox-description{font-size:.8rem}.file-types{font-size:.7rem}.tools-container{margin-top:20px;padding:15px 10px;background-color:transparent;box-shadow:none}.tools-list{grid-template-columns:repeat(2,1fr);gap:var(--spacing-sm)}.submit-button-container{margin-top:15px;margin-bottom:20px}.submit-files-button{font-size:.9rem;padding:12px 16px;width:100%}.extraction-spinner{width:28px;height:28px;border-width:2px}.file-list-preview{max-height:60px;font-size:.75rem}.file-item{gap:4px}.file-icon{width:12px;height:12px}.message:hover{transform:none;box-shadow:0 2px 8px #00000014}.typing-indicator span{width:6px;height:6px}}@media (max-width: 480px){.chat-interface-container.split-view{padding:5px;gap:5px}.chat-section{padding-top:65px}.chat-messages{padding:0 8px 120px;scroll-padding-top:10px}.message{padding:10px;font-size:.95rem;max-width:75%}.first-message{margin-top:25px}.chat-input-form{padding:8px;min-height:100px}.chat-input{min-height:55px;font-size:.9rem;padding:10px 12px}.send-button,.tools-button{height:40px}.send-button{font-size:.8rem;padding:0 16px}.tools-button{width:40px;flex:0 0 40px}.tools-button img{width:18px;height:18px}.dropbox-item{min-height:100px;padding:8px}.canvas-section{max-height:75vh;padding:15px 12px 150px}.tools-container{margin-top:15px;padding:10px 5px}}@media (max-width: 768px) and (orientation: landscape){.chat-section{height:calc(100vh - 120px);padding-top:50px}.chat-messages{padding-bottom:120px}.canvas-section{max-height:60vh;padding:15px 15px 140px}.chat-input-form{min-height:90px}.chat-input{min-height:45px}.tools-container{margin-top:15px;padding:10px}}.auth-container{width:100%;max-width:400px;margin:2rem auto;padding:var(--spacing-xl);border-radius:var(--radius-xl);background:var(--system-white);box-shadow:var(--shadow-md);animation:slideUp .6s var(--ease-spring)}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.auth-header{text-align:center;margin-bottom:var(--spacing-xl)}.auth-title{color:var(--system-text-primary);margin:0;font-size:var(--font-2xl);font-weight:var(--font-semibold);line-height:var(--line-tight)}.auth-subtitle{color:var(--system-text-secondary);font-size:var(--font-sm);margin:var(--spacing-xs) 0 0 0;line-height:var(--line-relaxed)}.auth-error{background:var(--system-red-background);border:1px solid var(--system-red-border);color:var(--system-red);padding:var(--spacing-md);border-radius:var(--radius-md);margin-bottom:var(--spacing-lg);display:flex;align-items:center;gap:var(--spacing-sm);font-size:var(--font-sm);animation:fadeIn .4s var(--ease-spring)}.auth-success{background:var(--system-green-background);border:1px solid var(--system-green-border);color:var(--system-green);padding:var(--spacing-md);border-radius:var(--radius-md);margin-bottom:var(--spacing-lg);display:flex;align-items:center;gap:var(--spacing-sm);font-size:var(--font-sm);animation:fadeIn .4s var(--ease-spring)}.error-icon,.success-icon{flex-shrink:0}@keyframes fadeIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@media (max-width: 768px){.auth-container{margin:20px;padding:2rem 1.5rem}.auth-title{font-size:1.75rem}}@media (max-width: 480px){.auth-container{margin:10px;padding:1.5rem 1rem}.checkbox-label{font-size:.85rem}.security-text{font-size:.8rem}}.auth-form{display:flex;flex-direction:column;gap:var(--spacing-lg)}.form-group{display:flex;flex-direction:column;gap:var(--spacing-xs)}.checkbox-group{flex-direction:row;align-items:flex-start}.form-group label{font-weight:var(--font-medium);color:var(--system-text-primary);font-size:var(--font-sm)}.checkbox-label{display:flex;align-items:flex-start;flex-direction:row;gap:.75rem;cursor:pointer;font-size:.9rem;line-height:1.4;font-weight:500!important}.checkbox-label input[type=checkbox]{width:18px;height:18px;margin:2px 0 0;cursor:pointer}.checkbox-text{display:flex;flex-direction:column;gap:.25rem}.checkbox-text small{color:#666;font-size:.8rem;font-weight:400}.form-group input[type=email],.form-group input[type=password]{padding:12px 16px;border-radius:8px;border:2px solid #e1e5e9;background-color:#fff;font-size:1rem;transition:all .2s ease;color:var(--dark-gray)}.form-group input[type=email]:focus,.form-group input[type=password]:focus{outline:none;border-color:var(--coral);box-shadow:0 0 0 3px #ff79771a}.form-group input::placeholder{color:#999}.form-group input:disabled{background-color:#f5f5f5;cursor:not-allowed}.login-button{background:linear-gradient(135deg,var(--coral),var(--deep-coral));color:#fff;border:none;padding:14px 24px;border-radius:8px;cursor:pointer;font-size:1rem;font-weight:600;margin-top:1rem;transition:all .2s ease;display:flex;align-items:center;justify-content:center;gap:.5rem}.login-button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px #ff79774d}.login-button:active:not(:disabled){transform:translateY(0)}.login-button.loading{background:#ccc;cursor:not-allowed;transform:none!important}.login-button:disabled{background:#ccc;cursor:not-allowed;transform:none;box-shadow:none}.loading-spinner{width:16px;height:16px;border:2px solid transparent;border-top:2px solid white;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.security-info{margin-top:2rem;padding-top:2rem;border-top:1px solid #e1e5e9;text-align:center}.security-badge{display:flex;align-items:center;justify-content:center;gap:.5rem;color:var(--deep-bordeaux);font-weight:600;margin-bottom:.5rem}.security-icon{font-size:1.2rem}.security-text{color:#666;font-size:.85rem;margin:0;line-height:1.4}.auth-links{display:flex;flex-direction:row;justify-content:space-around;margin-top:1.5rem;text-align:center;padding-top:1rem;border-top:1px solid #e1e5e9}.auth-link{color:var(--coral);text-decoration:none;font-size:.9rem;font-weight:500;transition:color .2s ease}.auth-link:hover{color:var(--system-blue-hover);text-decoration:underline}.auth-actions{display:flex;flex-direction:column;gap:var(--spacing-sm);margin:var(--spacing-xl) 0;padding-top:var(--spacing-lg);border-top:1px solid var(--system-gray-4)}.auth-link-button{background:none;border:none;color:var(--system-blue);cursor:pointer;font-size:var(--font-sm);padding:var(--spacing-sm);border-radius:var(--radius-md);transition:all var(--transition-fast);text-align:center}.auth-link-button:hover:not(:disabled){color:var(--system-blue-hover);background-color:var(--system-blue-background)}.auth-link-button:disabled{color:var(--system-text-tertiary);cursor:not-allowed}.form-help{display:block;color:var(--system-text-secondary);font-size:var(--font-xs);margin-top:var(--spacing-xs);text-align:center}.form-group input[type=text]{padding:var(--spacing-sm) var(--spacing-md);border-radius:var(--radius-md);border:1px solid var(--system-gray-4);background-color:var(--system-white);font-size:var(--font-base);transition:all var(--transition-fast);color:var(--system-text-primary);line-height:var(--line-base)}.form-group input[type=text]:focus{outline:none;border-color:var(--system-blue);box-shadow:0 0 0 3px var(--system-blue-background)}.error-boundary-container{display:flex;justify-content:center;align-items:center;min-height:50vh;padding:2rem}.error-boundary-content{text-align:center;max-width:600px;width:100%;background:#fff;border-radius:8px;padding:3rem;box-shadow:0 4px 6px #0000001a}.error-boundary-content h1{color:var(--deep-bordeaux, #4a1f23);font-size:2rem;margin-bottom:1rem}.error-message{color:var(--dark-gray, #333333);font-size:1.1rem;line-height:1.6;margin-bottom:2rem;padding-left:40px}.error-actions{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap}.error-reset-button,.error-reload-button{padding:.75rem 1.5rem;border:none;border-radius:4px;font-size:1rem;cursor:pointer;transition:all .3s ease}.error-reset-button{background-color:var(--coral, #ff7977);color:#fff}.error-reset-button:hover{background-color:var(--deep-coral, #d25956)}.error-reload-button{background-color:transparent;color:var(--coral, #ff7977);border:2px solid var(--coral, #ff7977)}.error-reload-button:hover{background-color:var(--coral, #ff7977);color:#fff}.error-details{margin-top:2rem;text-align:left}.error-details summary{cursor:pointer;color:var(--dark-gray, #333333);font-weight:500;padding:.5rem;background-color:#f5f5f5;border-radius:4px;margin-bottom:.5rem}.error-stack{background-color:#f5f5f5;padding:1rem;border-radius:4px;overflow-x:auto;font-size:.85rem;line-height:1.5;color:#333;max-height:300px;overflow-y:auto}.pagination-info{margin-bottom:var(--spacing-lg);text-align:center}.pagination-info p{color:var(--system-text-secondary);font-size:var(--font-size-sm);margin:0}.pagination-controls{display:flex;justify-content:center;align-items:center;gap:var(--spacing-sm);margin-top:var(--spacing-xl);padding:var(--spacing-lg) 0}.pagination-btn{padding:var(--spacing-sm) var(--spacing-md);border:1px solid var(--system-border-primary);background:var(--system-background-primary);color:var(--system-text-primary);border-radius:var(--border-radius-md);cursor:pointer;font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);transition:all var(--transition-medium) ease;min-width:100px}.pagination-btn:hover:not(:disabled){background:var(--coral);color:#fff;border-color:var(--coral);transform:translateY(-1px)}.pagination-btn:disabled{opacity:.5;cursor:not-allowed;background:var(--system-background-secondary);color:var(--system-text-disabled)}.pagination-current{padding:var(--spacing-sm) var(--spacing-lg);font-weight:var(--font-weight-semibold);color:var(--system-text-primary);font-size:var(--font-size-sm)}@media (max-width: 768px){.pagination-controls{flex-wrap:wrap;gap:var(--spacing-xs)}.pagination-btn{min-width:80px;padding:var(--spacing-xs) var(--spacing-sm);font-size:var(--font-size-xs)}.pagination-current{width:100%;text-align:center;order:-1;margin-bottom:var(--spacing-sm)}}.review-history-container{max-width:var(--max-width-lg);margin:var(--spacing-3xl) auto;padding:0 var(--spacing-lg);animation:fadeIn var(--transition-slow) ease-out}.review-history-header{margin-bottom:var(--spacing-2xl);animation:slideUp var(--transition-slow) ease-out}.review-history-header h1{font-size:var(--font-size-3xl);font-weight:var(--font-weight-bold);color:var(--system-text-primary);margin:0 0 var(--spacing-sm) 0;letter-spacing:-.02em;line-height:var(--line-height-tight)}.review-history-subtitle{font-size:var(--font-size-lg);color:var(--system-text-secondary);margin:0;font-weight:var(--font-weight-regular)}.review-history-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;animation:fadeIn var(--transition-base) ease-out}.review-history-error{text-align:center;padding:var(--spacing-3xl);animation:fadeIn var(--transition-base) ease-out}.review-history-error{color:var(--system-red);font-size:var(--font-size-md)}.review-history-empty{text-align:center;padding:var(--spacing-4xl) var(--spacing-xl);animation:fadeIn var(--transition-slow) ease-out}.review-history-empty p{font-size:var(--font-size-md);color:var(--system-text-secondary);margin:0}.review-history-table-container{background:var(--system-white);border-radius:var(--radius-xl);box-shadow:var(--shadow-sm);border:1px solid var(--system-gray-4);overflow:hidden;animation:slideUp var(--transition-slow) ease-out;animation-delay:.2s;animation-fill-mode:both}.review-history-table{width:100%;border-collapse:collapse}.review-history-table th{background-color:var(--system-gray-6);padding:var(--spacing-md) var(--spacing-lg);text-align:left;font-weight:var(--font-weight-semibold);font-size:var(--font-size-sm);color:var(--system-text-secondary);border-bottom:1px solid var(--system-gray-4);letter-spacing:.02em}.review-history-table td{padding:var(--spacing-md) var(--spacing-lg);border-bottom:1px solid var(--system-gray-4);font-size:var(--font-size-sm);color:var(--system-text-primary);vertical-align:middle}.review-history-table tbody tr{transition:background-color var(--transition-fast)}.review-history-table tbody tr:hover{background-color:var(--system-gray-6)}.review-history-table tbody tr:last-child td{border-bottom:none}.status-badge{display:inline-flex;align-items:center;padding:var(--spacing-xs) var(--spacing-sm);border-radius:var(--radius-full);font-size:var(--font-size-xs);font-weight:var(--font-weight-semibold);text-transform:uppercase;letter-spacing:.02em;min-width:80px;justify-content:center}.status-started{background-color:var(--system-blue-background);color:var(--system-blue)}.status-extracted{background-color:#ff95001a;color:var(--system-orange)}.status-reviewed,.status-completed{background-color:var(--system-green-background);color:var(--system-green)}.status-failed{background-color:var(--system-red-background);color:var(--system-red)}.view-button{display:inline-flex;align-items:center;gap:var(--spacing-xs);background:var(--system-blue);color:var(--system-white);border:none;padding:var(--spacing-xs) var(--spacing-md);border-radius:var(--radius-md);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);cursor:pointer;transition:all var(--transition-fast);text-decoration:none}.view-button:hover{background:var(--system-blue-hover);transform:translateY(-1px);box-shadow:var(--shadow-sm)}.view-button:active{transform:translateY(0);transition-duration:var(--transition-fast)}@media (max-width: 768px){.review-history-container{padding:0 var(--spacing-md);margin:var(--spacing-2xl) auto}.review-history-header h1{font-size:var(--font-size-2xl)}.review-history-table-container{overflow-x:auto}.review-history-table{min-width:600px}.review-history-table th,.review-history-table td{padding:var(--spacing-sm) var(--spacing-md)}.status-badge{min-width:70px;font-size:10px}}.json-viewer{font-family:Monaco,Consolas,Courier New,monospace;font-size:13px;line-height:1.5}.json-viewer-title{font-size:14px;font-weight:600;margin-bottom:12px;color:#333;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.json-content{text-align:left;background-color:#f8f9fa;border:1px solid #e9ecef;border-radius:4px;padding:16px;overflow-x:auto}.json-content pre{margin:0;font-size:12px;line-height:1.5;color:#333;white-space:pre-wrap;word-wrap:break-word}.review-detail-container{padding:20px;max-width:1200px;margin:0 auto}.review-detail-loading{display:flex;justify-content:center;align-items:center;min-height:400px;padding:40px}.review-detail-header{margin-bottom:30px}.review-detail-header h1{font-size:24px;font-weight:600;margin-top:16px;color:#1a1a1a}.back-button{background:none;border:none;color:#007bff;font-size:14px;cursor:pointer;padding:0;margin-bottom:8px;display:inline-flex;align-items:center;gap:4px}.back-button:hover{text-decoration:underline}.review-detail-loading,.review-detail-error{text-align:center;padding:60px 20px;font-size:16px;color:#666}.review-detail-error{color:#dc3545}.review-detail-content{display:flex;flex-direction:column;gap:24px}.detail-section{background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a;padding:24px}.detail-section h2{font-size:18px;font-weight:600;margin-bottom:16px;color:#333}.detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}.detail-item{display:flex;flex-direction:column;gap:4px}.detail-item.full-width{grid-column:1 / -1}.detail-item label{font-size:12px;font-weight:600;color:#666;text-transform:uppercase}.detail-item span{font-size:14px;color:#333}.error-text{color:#dc3545!important}.status-badge{display:inline-block;padding:4px 12px;border-radius:20px;font-size:12px;font-weight:500;text-transform:uppercase}.status-started{background-color:#e3f2fd;color:#1976d2}.status-extracted{background-color:#fff3cd;color:#856404}.status-reviewed{background-color:#e8f5e9;color:#2e7d32}.status-completed{background-color:#d4edda;color:#155724}.status-failed{background-color:#f8d7da;color:#721c24}.file-list{display:flex;flex-direction:column;gap:8px}.file-item{display:flex;align-items:center;padding:12px;background-color:#f8f9fa;border-radius:4px;font-size:14px;gap:16px}.file-name{flex:1;font-weight:500;color:#333}.file-label{background-color:#e9ecef;padding:4px 8px;border-radius:4px;font-size:12px;color:#495057}.file-size,.file-date{font-size:12px;color:#666}.action-section{display:flex;justify-content:center;padding:24px}.review-button,.re-review-button{background-color:#007bff;color:#fff;border:none;padding:12px 32px;border-radius:4px;font-size:16px;font-weight:500;cursor:pointer;transition:background-color .2s}.review-button:hover,.re-review-button:hover{background-color:#0056b3}.re-review-button{background-color:#28a745}.re-review-button:hover{background-color:#218838}@media (max-width: 768px){.detail-grid{grid-template-columns:1fr}.file-item{flex-wrap:wrap}}:root{--system-white: #ffffff;--system-background: #f5f5f7;--system-secondary-background: #ffffff;--system-tertiary-background: #f5f5f7;--system-gray-1: #8e8e93;--system-gray-2: #c7c7cc;--system-gray-3: #d1d1d6;--system-gray-4: #e5e5ea;--system-gray-5: #f2f2f7;--system-gray-6: #f7f7f7;--system-black: #000000;--system-text-primary: #1d1d1f;--system-text-secondary: #86868b;--system-text-tertiary: #515154;--system-blue: #0071e3;--system-blue-hover: #0077ed;--system-blue-background: rgba(0, 113, 227, .1);--system-green: #34c759;--system-green-background: rgba(52, 199, 89, .1);--system-green-border: rgba(52, 199, 89, .3);--system-red: #ff3b30;--system-red-background: rgba(255, 59, 48, .1);--system-red-border: rgba(255, 59, 48, .3);--system-orange: #ff9500;--font-family-primary: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;--font-family-mono: "SF Mono", Monaco, "Consolas", "Liberation Mono", "Courier New", monospace;--font-xs: 11px;--font-sm: 13px;--font-base: 15px;--font-md: 17px;--font-lg: 21px;--font-xl: 28px;--font-2xl: 34px;--font-3xl: 48px;--font-4xl: 64px;--font-size-xs: 11px;--font-size-sm: 13px;--font-size-base: 15px;--font-size-md: 17px;--font-size-lg: 21px;--font-size-xl: 28px;--font-size-2xl: 34px;--font-size-3xl: 48px;--font-size-4xl: 64px;--line-tight: 1.2;--line-base: 1.47059;--line-relaxed: 1.6;--line-height-tight: 1.2;--line-height-base: 1.47059;--line-height-relaxed: 1.6;--font-regular: 400;--font-medium: 500;--font-semibold: 600;--font-bold: 700;--font-weight-regular: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--font-weight-bold: 700;--spacing-xs: 4px;--spacing-sm: 8px;--spacing-md: 16px;--spacing-lg: 24px;--spacing-xl: 32px;--spacing-2xl: 48px;--spacing-3xl: 64px;--spacing-4xl: 96px;--radius-sm: 6px;--radius-md: 10px;--radius-lg: 14px;--radius-xl: 18px;--radius-2xl: 24px;--radius-full: 9999px;--shadow-xs: 0 1px 2px rgba(0, 0, 0, .04);--shadow-sm: 0 2px 8px rgba(0, 0, 0, .04);--shadow-md: 0 4px 12px rgba(0, 0, 0, .08);--shadow-lg: 0 8px 24px rgba(0, 0, 0, .08);--shadow-xl: 0 12px 48px rgba(0, 0, 0, .12);--shadow-hover: 0 4px 16px rgba(0, 0, 0, .08);--transition-fast: .15s ease;--transition-base: .25s ease;--transition-slow: .35s ease;--transition-spring: .25s cubic-bezier(.25, .46, .45, .94);--z-base: 0;--z-dropdown: 100;--z-sticky: 200;--z-overlay: 300;--z-modal: 400;--z-popover: 500;--z-tooltip: 600;--max-width-sm: 640px;--max-width-md: 768px;--max-width-lg: 1024px;--max-width-xl: 1280px;--max-width-2xl: 1536px;--ease-in-out-quart: cubic-bezier(.77, 0, .175, 1);--ease-out-expo: cubic-bezier(.19, 1, .22, 1);--ease-spring: cubic-bezier(.25, .46, .45, .94)}*{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.text-primary{color:var(--system-text-primary)}.text-secondary{color:var(--system-text-secondary)}.text-tertiary{color:var(--system-text-tertiary)}.bg-primary{background-color:var(--system-background)}.bg-secondary{background-color:var(--system-secondary-background)}.bg-tertiary{background-color:var(--system-tertiary-background)}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes scaleIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}:focus-visible{outline:2px solid var(--system-blue);outline-offset:2px}::selection{background-color:var(--system-blue);color:var(--system-white)}.button,.btn{display:inline-flex;align-items:center;justify-content:center;gap:var(--spacing-sm);padding:var(--spacing-sm) var(--spacing-lg);border:none;border-radius:var(--radius-md);font-family:inherit;font-size:var(--font-size-base);font-weight:var(--font-weight-medium);line-height:1;text-decoration:none;cursor:pointer;transition:all var(--transition-fast);-webkit-user-select:none;user-select:none}.button-primary,.btn-primary{background:var(--system-blue);color:var(--system-white)}.button-primary:hover,.btn-primary:hover{background:var(--system-blue-hover);transform:translateY(-1px);box-shadow:var(--shadow-sm)}.button-primary:active,.btn-primary:active{transform:translateY(0)}.button-secondary,.btn-secondary{background:var(--system-gray-5);color:var(--system-text-primary)}.button-secondary:hover,.btn-secondary:hover{background:var(--system-gray-4)}.button-secondary:active,.btn-secondary:active{background:var(--system-gray-3)}.button-ghost,.btn-ghost{background:transparent;color:var(--system-text-primary)}.button-ghost:hover,.btn-ghost:hover{background:var(--system-gray-5)}.button-danger,.btn-danger{background:var(--system-red);color:var(--system-white)}.button-danger:hover,.btn-danger:hover{opacity:.9;transform:translateY(-1px)}.button-small,.btn-small{padding:var(--spacing-xs) var(--spacing-md);font-size:var(--font-size-sm)}.button-large,.btn-large{padding:var(--spacing-md) var(--spacing-xl);font-size:var(--font-size-md)}.button:disabled,.btn:disabled{opacity:.5;cursor:not-allowed;transform:none!important}.button-icon,.btn-icon{width:40px;height:40px;padding:0;border-radius:var(--radius-full)}.button-icon.small,.btn-icon.small{width:32px;height:32px}.button-icon.large,.btn-icon.large{width:48px;height:48px}.form-group{margin-bottom:var(--spacing-lg)}.form-label{display:block;font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);color:var(--system-text-primary);margin-bottom:var(--spacing-xs)}.form-input,.form-textarea,.form-select{width:100%;padding:var(--spacing-md);border:1px solid var(--system-gray-3);border-radius:var(--radius-md);font-family:inherit;font-size:var(--font-size-base);color:var(--system-text-primary);background:var(--system-white);transition:all var(--transition-fast)}.form-input:focus,.form-textarea:focus,.form-select:focus{outline:none;border-color:var(--system-blue);box-shadow:0 0 0 3px #0071e31a}.form-input::placeholder,.form-textarea::placeholder{color:var(--system-text-tertiary)}.form-textarea{resize:vertical;min-height:100px}.form-input.error,.form-textarea.error,.form-select.error{border-color:var(--system-red)}.form-input.error:focus,.form-textarea.error:focus,.form-select.error:focus{box-shadow:0 0 0 3px #ff3b301a}.form-error{color:var(--system-red);font-size:var(--font-size-sm);margin-top:var(--spacing-xs)}.form-success{color:var(--system-green);font-size:var(--font-size-sm);margin-top:var(--spacing-xs)}.card{background:var(--system-white);border-radius:var(--radius-xl);padding:var(--spacing-xl);box-shadow:var(--shadow-sm);border:1px solid var(--system-gray-4)}.card-header{margin-bottom:var(--spacing-lg)}.card-title{font-size:var(--font-size-xl);font-weight:var(--font-weight-semibold);color:var(--system-text-primary);margin:0 0 var(--spacing-xs) 0}.card-subtitle{font-size:var(--font-size-base);color:var(--system-text-secondary);margin:0}.user-tool-assignment{max-width:var(--max-width-lg);margin:var(--spacing-3xl) auto;padding:0 var(--spacing-lg);animation:fadeIn var(--transition-slow) ease-out}.user-tool-assignment h2{font-size:var(--font-size-3xl);font-weight:var(--font-weight-bold);color:var(--system-text-primary);margin:0 0 var(--spacing-sm) 0;letter-spacing:-.02em;line-height:var(--line-height-tight)}.user-tool-assignment p{font-size:var(--font-size-lg);color:var(--system-text-secondary);margin:0 0 var(--spacing-2xl) 0;font-weight:var(--font-weight-regular)}.user-tool-assignment.loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;animation:fadeIn var(--transition-base) ease-out}.user-tool-assignment.error{text-align:center;padding:var(--spacing-3xl);font-size:var(--font-size-md);color:var(--system-red);animation:fadeIn var(--transition-base) ease-out}.assignments-list{display:flex;flex-direction:column;gap:var(--spacing-lg)}.tool-assignment-card{background:var(--system-white);border-radius:var(--radius-xl);padding:var(--spacing-xl);box-shadow:var(--shadow-sm);border:1px solid var(--system-gray-4);animation:slideUp var(--transition-slow) ease-out;animation-fill-mode:both;transition:all var(--transition-fast)}.tool-assignment-card:hover{box-shadow:var(--shadow-md);transform:translateY(-1px)}.tool-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--spacing-lg);padding-bottom:var(--spacing-md);border-bottom:1px solid var(--system-gray-4)}.tool-header h3{margin:0;color:var(--system-text-primary);font-size:var(--font-size-lg);font-weight:var(--font-weight-semibold)}.assign-button{display:inline-flex;align-items:center;gap:var(--spacing-xs);background:var(--system-blue);color:var(--system-white);border:none;padding:var(--spacing-sm) var(--spacing-lg);border-radius:var(--radius-md);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);cursor:pointer;transition:all var(--transition-fast);text-decoration:none}.assign-button:hover{background:var(--system-blue-hover);transform:translateY(-1px);box-shadow:var(--shadow-sm)}.assign-button:active{transform:translateY(0);transition-duration:var(--transition-fast)}.assign-user-form{display:flex;gap:var(--spacing-md);align-items:center;margin-bottom:var(--spacing-lg);padding:var(--spacing-lg);background-color:var(--system-gray-6);border-radius:var(--radius-lg);animation:slideUp var(--transition-base) ease-out}.user-select{flex:1;padding:var(--spacing-sm) var(--spacing-md);border:1px solid var(--system-gray-3);border-radius:var(--radius-md);font-family:inherit;font-size:var(--font-size-sm);color:var(--system-text-primary);background:var(--system-white);transition:all var(--transition-fast)}.user-select:focus{outline:none;border-color:var(--system-blue);box-shadow:0 0 0 3px var(--system-blue-background)}.confirm-assign-button{display:inline-flex;align-items:center;gap:var(--spacing-xs);background:var(--system-green);color:var(--system-white);border:none;padding:var(--spacing-sm) var(--spacing-lg);border-radius:var(--radius-md);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);cursor:pointer;transition:all var(--transition-fast)}.confirm-assign-button:hover:not(:disabled){opacity:.9;transform:translateY(-1px);box-shadow:var(--shadow-sm)}.confirm-assign-button:active:not(:disabled){transform:translateY(0)}.confirm-assign-button:disabled{opacity:.5;cursor:not-allowed;transform:none!important}.assigned-users h4{margin:0 0 var(--spacing-md) 0;color:var(--system-text-primary);font-size:var(--font-size-md);font-weight:var(--font-weight-semibold)}.no-users{color:var(--system-text-secondary);font-style:italic;margin:0;font-size:var(--font-size-sm)}.users-grid{display:flex;flex-direction:column;gap:var(--spacing-sm)}.assigned-user{display:flex;justify-content:space-between;align-items:center;padding:var(--spacing-md);background-color:var(--system-gray-6);border-radius:var(--radius-lg);border:1px solid var(--system-gray-4);transition:all var(--transition-fast)}.assigned-user:hover{background-color:var(--system-gray-5);transform:translate(2px)}.user-info-tool-assignment{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:var(--spacing-sm)}.user-email-tool-assignment{padding:var(--spacing-xs) var(--spacing-sm);background-color:var(--system-blue-background);border-radius:var(--radius-full);transition:all var(--transition-fast);color:var(--system-blue);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium)}.user-role{font-size:var(--font-size-xs);color:var(--system-text-secondary);text-transform:uppercase;font-weight:var(--font-weight-semibold);letter-spacing:.02em}.remove-button{background-color:var(--system-red);color:var(--system-white);border:none;width:28px;height:28px;border-radius:var(--radius-full);cursor:pointer;font-size:var(--font-size-sm);font-weight:var(--font-weight-bold);line-height:1;display:flex;align-items:center;justify-content:center;transition:all var(--transition-fast)}.remove-button:hover{background-color:var(--system-red);opacity:.8;transform:scale(1.05)}.remove-button:active{transform:scale(.95)}.no-tools{text-align:center;padding:var(--spacing-4xl) var(--spacing-xl);color:var(--system-text-secondary);font-style:italic;font-size:var(--font-size-md);animation:fadeIn var(--transition-slow) ease-out}@media (max-width: 768px){.user-tool-assignment{padding:0 var(--spacing-md);margin:var(--spacing-2xl) auto}.user-tool-assignment h2{font-size:var(--font-size-2xl)}.tool-header{flex-direction:column;gap:var(--spacing-md);align-items:stretch}.assign-user-form{flex-direction:column;align-items:stretch;gap:var(--spacing-sm)}.user-select{margin-bottom:var(--spacing-xs)}.tool-assignment-card{padding:var(--spacing-lg)}.assigned-user{padding:var(--spacing-sm)}.user-info-tool-assignment{flex-direction:column;align-items:flex-start;gap:var(--spacing-xs)}}
