.main-header{display:flex;justify-content:space-between;align-items:center;padding:0 var(--space-xl);background-color:var(--background-color-dark);border-bottom:1px solid var(--border-color-dark);position:fixed;top:0;left:0;right:0;z-index:1000;height:60px}.header-left{display:flex;align-items:center}.header-brand{display:flex;align-items:center;gap:10px;cursor:pointer}.header-logo{width:42px;height:42px;border-radius:9px;flex-shrink:0;display:block;box-shadow:0 0 0 1px #ffffff29}.header-title{font-size:1.5rem;font-weight:600;color:var(--text-color-light);margin:0}.header-right{display:flex;align-items:center;gap:var(--space-md)}.auth-button{background-color:#0056b3;color:#fff;border:none;padding:10px 20px;border-radius:5px;cursor:pointer;font-size:1rem;text-decoration:none;display:inline-block;transition:background-color .3s ease}.auth-button:hover{background-color:#004494}.recherche-modal-overlay{position:fixed;inset:0;background:#0000008c;display:flex;align-items:center;justify-content:center;z-index:1200;padding:8px}.recherche-modal-overlay--hidden{display:none}.recherche-modal{width:98vw;height:96vh;background:radial-gradient(1000px circle at 18% 0%,rgba(168,80,96,.22),transparent 60%),radial-gradient(700px circle at 88% 35%,rgba(88,42,56,.14),transparent 58%),#121620;border:1px solid rgba(168,80,96,.35);border-radius:10px;color:#e7edf7;box-shadow:0 18px 40px #0006;display:flex;flex-direction:column;overflow:hidden}.recherche-modal-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background-color:#a850602e;border-bottom:1px solid rgba(168,80,96,.28);flex-shrink:0}.recherche-modal-header h3{margin:0;font-size:1.05rem;color:#f3f7ff}.recherche-modal-frame{flex:1;width:100%;border:none;background:#fff;min-height:0}.auth-button.admin-button{background-color:#0056b3;margin-right:15px}.auth-button.admin-button:hover{background-color:#004494}.case-study-modal-overlay{position:fixed;inset:0;background:#0000008c;display:flex;align-items:center;justify-content:center;z-index:1200;padding:20px}.case-study-modal-overlay--chat{inset:70px 10px 10px;padding:20px 0;align-items:stretch;justify-content:center}.case-study-modal.case-study-modal--chat{width:100%;max-width:1680px;height:100%;max-height:none;margin:0 auto;display:flex;flex-direction:column;overflow:hidden;box-sizing:border-box}.case-study-modal--chat .case-study-modal-header,.case-study-modal--chat>.case-study-search-actions{flex-shrink:0}.case-study-modal--chat .case-study-history,.case-study-modal--chat .case-study-form,.case-study-modal--chat .case-study-result{flex:1;min-height:0;overflow-y:auto}.case-study-modal--chat .case-study-history-list{max-height:none}.case-study-modal{width:min(760px,96vw);max-height:88vh;overflow-y:auto;background:#121620;border:1px solid #2e3a4a;border-radius:10px;color:#e7edf7;box-shadow:0 18px 40px #0006;padding:16px}.case-study-modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.case-study-modal-header h3{margin:0;font-size:1.05rem;color:#f3f7ff}.case-study-close-btn{background:transparent;border:none;color:#b8c7dc;font-size:24px;line-height:1;cursor:pointer}.case-study-form{display:grid;align-content:start;gap:10px}.case-study-form label{display:flex;flex-direction:column;gap:6px;font-size:.9rem;color:#dbe6f7}.case-study-form input,.case-study-form textarea,.case-study-form select{background:#0b1018;border:1px solid #2d3a4d;color:#e7edf7;border-radius:6px;padding:8px 10px;font-size:.92rem}.case-study-form input::placeholder,.case-study-form textarea::placeholder{color:#8da1c2}.case-study-form select option{background:#0b1018;color:#e7edf7}.case-study-form textarea{resize:vertical}.case-study-form textarea.case-study-custom-bullet{height:38px;min-height:38px;line-height:20px;resize:none;overflow-y:auto}.case-study-find-button{align-self:flex-start;margin-top:2px;padding:6px 12px;font-size:.82rem}.case-study-saved-actions{justify-content:flex-start}.case-study-saved-actions .auth-button{flex:0 0 auto;padding:6px 12px;font-size:.82rem}.case-study-settings-title{margin:0;color:#f3f7ff;font-size:1.05rem}.case-study-actions{display:flex;justify-content:flex-end;align-items:center;align-self:start;gap:10px;flex-wrap:wrap;margin-top:4px}.case-study-modal .auth-button{flex:0 0 auto;padding:6px 12px;font-size:.82rem}.case-study-search-actions{display:flex;justify-content:flex-start;align-items:center;align-self:start;gap:10px;flex-wrap:wrap}.case-study-modal--chat .case-study-form--search{display:flex;flex-direction:column;overflow:hidden}.case-study-search-step{display:flex;flex-direction:column;flex:1;min-height:0;gap:10px}.case-study-keyword-field{max-width:50%}.case-study-keyword-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.case-study-keyword-heading h4{margin:0}.case-study-search-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}.case-study-search-column{display:flex;flex-direction:column;gap:10px;min-width:0}.case-study-search-step:not(:has(.case-study-keyword-results)) .case-study-search-grid{flex:1;min-height:0;align-items:stretch}.case-study-keyword-results{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;flex:1;min-height:0;border-top:1px solid #273446;padding-top:12px}.case-study-keyword-block{display:flex;flex-direction:column;gap:6px;min-width:0;min-height:0}.case-study-keyword-block h4{margin:0;font-size:.92rem;color:#f3f7ff}.case-study-keyword-case{cursor:default}.case-study-modal--chat .case-study-keyword-block .case-study-search-results{flex:1;min-height:0;max-height:none;overflow-y:auto}.case-study-modal--chat .case-study-search-step:has(.case-study-keyword-results) .case-study-search-column .case-study-project-results{flex:0 1 auto;max-height:180px}@media (max-width: 980px){.case-study-keyword-field{max-width:none}}.case-study-modal--chat .case-study-project-results{flex:1;min-height:0;max-height:none;overflow-y:auto;align-content:start}.case-study-search-results{display:grid;gap:6px;max-height:180px;overflow-y:auto;border:1px solid #273446;border-radius:8px;padding:8px;background:#0d1420}.case-study-suggestion-list{max-height:none;overflow:visible}.case-study-suggestion-progress{display:flex;flex-direction:column;gap:6px;color:#9fb3d4;font-size:.85rem}.case-study-suggestion-progress-track{height:8px;border-radius:999px;background:#1c2838;overflow:hidden}.case-study-suggestion-progress-bar{height:100%;width:0;border-radius:inherit;background:#6ea8ff}.case-study-suggestion-progress-bar.is-waiting{width:35%;animation:case-study-progress-slide 2.2s ease-in-out infinite}@keyframes case-study-progress-slide{0%{transform:translate(-120%)}to{transform:translate(320%)}}.case-study-search-result-item{text-align:left;border:1px solid #2d3a4d;background:#121a28;color:#dbe6f7;border-radius:6px;padding:8px 10px;cursor:pointer;white-space:normal;overflow-wrap:anywhere;height:auto}.case-study-search-result-item:hover:not(:disabled){border-color:#3f5f92;background:#182235}.case-study-search-result-item:disabled{opacity:.6;cursor:not-allowed}.case-study-search-result-item.is-selected{border-color:#6ea8ff;background:#1c3054}.case-study-selected-list{display:flex;flex-direction:column;gap:6px}.case-study-selected-item{display:flex;align-items:flex-start;gap:8px}.case-study-selected-item[draggable=true]{cursor:grab}.case-study-selected-item.is-dragging{opacity:.45}.case-study-selected-item.is-drop-target{box-shadow:inset 0 2px #6ea8ff}.case-study-drag-handle{flex:0 0 auto;margin-top:6px;color:#9fb3d4;letter-spacing:-.12em;-webkit-user-select:none;user-select:none;cursor:grab}.case-study-selected-item .case-study-selected-chip{flex:1 1 auto;cursor:default}.case-study-selected-edit{flex:1 1 auto;display:flex;flex-direction:column;gap:4px;font-size:.82rem;color:#9fb3d4}.case-study-selected-item .case-study-search-actions{flex:0 0 auto}.case-study-search-actions .auth-button.is-selected{border-color:#6ea8ff;background:#1c3054}.case-study-formulated{border:1px solid #3f5f92;background:#182235;border-radius:8px;padding:10px 12px}.case-study-formulated p{margin:0 0 8px}.case-study-selected-chip{border:1px solid #3f5f92;background:#182235;color:#dbe6f7;border-radius:8px;padding:6px 10px;cursor:pointer;text-align:left;white-space:normal;overflow-wrap:anywhere;height:auto}.case-study-search-result-meta{display:block;margin-top:2px;font-size:.82rem;color:#9fb3d4}.case-study-search-result-warning{display:block;margin-top:4px;font-size:.78rem;color:#ffb38a}.case-study-error{margin:0;color:#ff9d9d;font-size:.9rem}.case-study-loading{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid #2d4a73;border-radius:8px;background:#152033;color:#dbe6f7;font-size:.9rem;line-height:1.4}.case-study-spinner{flex:0 0 auto;width:16px;height:16px;margin-top:2px;border:2px solid rgba(255,255,255,.25);border-top-color:#8eb6ff;border-radius:50%;animation:case-study-spin .8s linear infinite}.auth-button.is-busy{display:inline-flex;align-items:center;gap:8px;cursor:wait}.auth-button.is-busy .case-study-spinner{width:14px;height:14px;margin-top:0;border-color:#ffffff59;border-top-color:#fff}@keyframes case-study-spin{to{transform:rotate(360deg)}}.case-study-help-text{font-size:.82rem;color:#9fb3d4;line-height:1.35}.case-study-info-box{margin:0;padding:12px 14px 12px 16px;border-radius:8px;border:1px solid rgba(255,152,0,.55);border-left:4px solid #ff9800;background:#ff980029;color:#fff3e0;font-size:.92rem;line-height:1.5}.case-study-info-box p{margin:0}.case-study-info-box p+p{margin-top:8px}.case-study-info-box strong{color:#ffcc80}.case-study-history{margin-top:14px;border-top:1px solid #273446;padding-top:12px}.case-study-history-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.case-study-history-header h4{margin:0;color:#f3f7ff;font-size:.95rem}.case-study-history-empty{margin:8px 0 0;color:#9fb3d4;font-size:.9rem}.case-study-history-list{display:grid;gap:6px;margin-top:8px;max-height:220px;overflow-y:auto;padding-right:2px}.case-study-history-item{text-align:left;border:1px solid #2d3a4d;background:#121a28;color:#dbe6f7;border-radius:6px;padding:8px 10px;cursor:pointer;display:grid;gap:2px}.case-study-history-item:hover{border-color:#3f5f92;background:#182235}.case-study-result{margin-top:14px;border-top:1px solid #273446;padding-top:12px}.case-study-meta{display:flex;flex-direction:column;gap:3px;margin-bottom:10px;font-size:.9rem;color:#dbe6f7}.case-study-meta strong{color:#f3f7ff}.case-study-actions--detail{justify-content:flex-start;margin-bottom:8px}.case-study-section h4{margin:10px 0 6px;font-size:.95rem;color:#f3f7ff}.case-study-section ul{margin:0 0 8px 16px;padding:0}.case-study-section li{margin:4px 0;line-height:1.35;color:#dbe6f7}.slide-designer-modal{width:min(920px,96vw)}.slide-designer-reference-preview,.slide-designer-output{width:100%;max-height:360px;object-fit:contain;border:1px solid #2d3a4d;border-radius:6px;background:#0b1018}.slide-designer-modal .authenticated-image-wrapper{width:100%}.slide-designer-output{max-height:420px}@media (max-width: 1200px){.case-study-modal-overlay--chat{padding:15px 0}.case-study-modal.case-study-modal--chat{max-width:95%}}@media (max-width: 992px){.case-study-modal-overlay--chat{padding:0}.case-study-modal.case-study-modal--chat{max-width:none}}@media (max-width: 768px){.main-header{padding:0 var(--space-md);height:48px}.header-title{font-size:1.1rem}.header-logo{width:32px;height:32px;border-radius:7px}.header-right{gap:var(--space-sm)}.auth-button{padding:var(--space-xs) var(--space-sm);font-size:.8rem}.case-study-modal-overlay--chat{top:48px;padding:0}.case-study-modal.case-study-modal--chat{max-width:none;height:100%;margin:0;border-radius:0}.case-study-modal{width:100%;max-height:92vh;padding:12px}.recherche-modal{width:100%;height:98vh}}@media (max-width: 480px){.case-study-modal-overlay--chat{top:44px}.main-header{height:44px}.header-title{font-size:1rem}.header-logo{width:28px;height:28px;border-radius:6px}.auth-button{font-size:.75rem;padding:3px 6px}}.auth-container{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;padding:20px;background-color:var(--background-color-medium)}.login-logo{width:150px;margin-bottom:2rem}.auth-form-card{width:100%;max-width:400px;padding:2rem;background:#fff;border-radius:8px;box-shadow:0 4px 12px #0000001a;text-align:center}.auth-form-card h2{margin-bottom:1.5rem;color:#333;font-size:1.75rem}.form-group{margin-bottom:1.5rem;text-align:left}.form-row{display:flex;gap:.75rem}.form-row .form-group{flex:1;min-width:0}.form-group label{display:block;margin-bottom:.5rem;color:#555;font-weight:600}.form-group input{width:100%;padding:12px 15px;border:1px solid #ccc;border-radius:4px;font-size:1rem;box-sizing:border-box;transition:border-color .2s}.form-group input:focus{outline:none;border-color:#007bff}.submit-button{width:100%;padding:12px;border:none;border-radius:4px;background-color:#007bff;color:#fff;font-size:1.1rem;font-weight:700;cursor:pointer;transition:background-color .2s}.submit-button:hover:not(:disabled){background-color:#0056b3}.submit-button:disabled{background-color:#aaa;cursor:not-allowed}.error-message{color:#d93025;background-color:#f8d7da;border:1px solid #f5c6cb;padding:10px;border-radius:4px;margin-bottom:1rem;text-align:center;font-size:.9rem}.info-message{color:#0c5460;background-color:#d1ecf1;border:1px solid #bee5eb;padding:10px;border-radius:4px;margin-bottom:1rem;text-align:center;font-size:.9rem}.success-message{color:#155724;background-color:#d4edda;border:1px solid #c3e6cb;padding:10px;border-radius:4px;margin-bottom:1rem;text-align:center;font-size:.9rem}.forgot-password-link{text-align:right;margin-top:-1rem;margin-bottom:1.5rem}.forgot-password-link a{color:#007bff;text-decoration:none;font-size:.9rem}.forgot-password-link a:hover{text-decoration:underline}.switch-auth-link{margin-top:1.5rem;font-size:.95rem;color:#555}.switch-auth-link a{color:#007bff;font-weight:700;text-decoration:none}.switch-auth-link a:hover{text-decoration:underline}.modal-backdrop{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#000000bf;display:flex;justify-content:center;align-items:center;z-index:1000}.modal-content{position:relative;background:#fff;border-radius:12px;padding:24px;max-width:85vw;max-height:85vh;box-shadow:0 12px 40px #00000059;box-sizing:border-box}.modal-content .authenticated-image-wrapper{display:flex;align-items:center;justify-content:center;max-width:calc(85vw - 48px);max-height:calc(85vh - 48px)}.modal-image{max-width:100%;max-height:calc(85vh - 48px);display:block;border-radius:8px;object-fit:contain}.modal-close-button{position:absolute;top:-20px;right:-20px;background:#fff;color:#333;border:none;border-radius:50%;width:40px;height:40px;font-size:30px;cursor:pointer;z-index:1010;box-shadow:0 2px 10px #0003;display:flex;justify-content:center;align-items:center}.modal-close-button:hover{background:#f0f0f0}.chat-page-container{display:flex;flex-direction:column;height:100%;width:100%;max-width:1600px;margin:0 auto;background-color:#fff;border-left:1px solid #e0e0e0;border-right:1px solid #e0e0e0}.messages-area{flex-grow:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:12px}.message{display:flex;flex-direction:column;max-width:75%;width:fit-content}.message .text-bubble{padding:10px 15px;border-radius:18px;line-height:1.4;word-wrap:break-word}.message.user{align-self:flex-end;align-items:flex-end}.message.user .text-bubble{background-color:#007bff;color:#fff}.message.bot{align-self:flex-start;align-items:flex-start}.message.bot .text-bubble{background-color:#f0f2f5;color:#333;border:1px solid #e0e0e0}.loading-indicator p{font-style:italic;color:#888}.sources{margin-top:8px;padding-left:15px;font-size:1rem;color:#555}.sources strong{font-weight:600}.sources ul{list-style-type:disc;padding-left:20px;margin:5px 0 0}.sources li{margin-bottom:4px}.sources li a{color:#007bff;text-decoration:none;word-break:break-all}.sources li a:hover{text-decoration:underline}.input-area-container{padding:1rem 2rem;border-top:1px solid #e0e0e0;background-color:#f8f9fa}.input-area{display:flex;align-items:center;width:100%;max-width:1600px;margin:0 auto;background-color:#fff;border-radius:25px;padding:5px;border:1px solid #ccc;box-shadow:0 2px 5px #0000000d}.input-area input{flex-grow:1;padding:10px 15px;border:none;background-color:transparent;color:#333;font-size:1rem}.input-area input:focus{outline:none}.input-area button{padding:8px 18px;margin-left:5px;border-radius:20px;border:none;background-color:#007bff;color:#fff;cursor:pointer;font-size:1rem;font-weight:500;transition:background-color .2s}.input-area button:disabled{background-color:#aaa;cursor:not-allowed}.chat-popup{position:fixed;right:var(--space-lg);bottom:var(--space-lg);width:1100px;max-width:95vw;height:80vh;background:var(--background-color-content);border-radius:var(--border-radius-md);box-shadow:0 8px 32px #00000080;display:flex;flex-direction:column;z-index:1000;overflow:hidden}.chat-popup-header{padding:var(--space-md);border-bottom:1px solid var(--border-color);display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:var(--space-sm);flex-shrink:0}.chat-popup-header h3{margin:0;color:var(--text-color-primary);font-size:1.2em;font-weight:600}.chat-title-container{display:flex;align-items:center;gap:var(--space-md)}.header-controls{display:flex;align-items:center;gap:var(--space-md);margin-left:auto;flex-wrap:wrap;justify-content:flex-end}.chat-popup-header .close-button{background:none;border:none;font-size:2em;cursor:pointer;color:var(--text-color-secondary);padding:0 var(--space-sm);line-height:1;transition:color .2s}.chat-popup-header .close-button:hover{color:var(--primary-color)}.chat-box{display:flex;flex-direction:row;width:100%;max-width:1680px;margin:20px auto;height:calc(100% - 40px);overflow:hidden;background-color:var(--background-color-content);border-radius:var(--border-radius-md);box-shadow:0 4px 12px #00000026}.chat-box__main{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}.chat-box--oracle{background:radial-gradient(1000px circle at 20% 0%,rgba(230,135,60,.22),transparent 62%),radial-gradient(700px circle at 90% 35%,rgba(230,135,60,.16),transparent 60%),linear-gradient(180deg,rgba(230,135,60,.06) 0%,rgba(230,135,60,.02) 55%,transparent 80%),var(--background-color-content);box-shadow:0 4px 12px #00000026,inset 0 0 0 1px #e6873c2e}.chat-box--gpt{background:radial-gradient(1000px circle at 20% 0%,rgba(103,179,255,.22),transparent 62%),radial-gradient(700px circle at 90% 35%,rgba(156,39,176,.14),transparent 60%),linear-gradient(180deg,rgba(103,179,255,.06) 0%,rgba(156,39,176,.03) 55%,transparent 80%),var(--background-color-content);box-shadow:0 4px 12px #00000026,inset 0 0 0 1px #67b3ff2e}.chat-box--negotiation{background:radial-gradient(1000px circle at 18% 0%,rgba(46,125,102,.22),transparent 60%),radial-gradient(700px circle at 88% 35%,rgba(0,121,107,.16),transparent 58%),linear-gradient(180deg,rgba(46,125,102,.06) 0%,rgba(46,125,102,.02) 55%,transparent 80%),var(--background-color-content);box-shadow:0 4px 12px #00000026,inset 0 0 0 1px #2e7d662e}.chat-box--oracle .chat-header{background-color:#e6873c1a}.chat-box--gpt .chat-header{background-color:#67b3ff1a}.chat-box--negotiation .chat-header{background-color:#2e7d661a}.chat-messages{flex:1;overflow-y:auto;padding:var(--space-md);display:flex;flex-direction:column;gap:var(--space-md);width:100%;box-sizing:border-box;min-height:0}.ai-history-notice{background:#fff3cd;border:1px solid #ffeeba;color:#856404;padding:10px 12px;border-radius:8px;font-size:.95em;width:100%;box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.summarize-continue-btn{background:#856404;color:#fff;border:none;border-radius:6px;padding:6px 14px;font-size:.9em;font-weight:500;cursor:pointer;white-space:nowrap;transition:background-color .2s}.summarize-continue-btn:hover:not(:disabled){background:#6d5003}.summarize-continue-btn:disabled{opacity:.6;cursor:not-allowed}.message-row{display:flex;width:100%;max-width:100%;box-sizing:border-box}.message-row--assistant{justify-content:flex-start}.message-row--user{justify-content:flex-end;align-items:flex-start;gap:6px}.message{display:flex;flex-direction:column;max-width:80%;width:fit-content;padding:var(--space-sm) var(--space-md);border-radius:15px;line-height:1.4}.message.user-message{align-self:flex-end;margin-left:auto;background:linear-gradient(45deg,var(--secondary-color),#0056b3);color:var(--text-color-light);border-radius:20px 20px 5px}.message-row--user .message.user-message{align-self:auto;margin-left:0;max-width:min(80%,calc(100% - 72px))}.message.assistant-message{align-self:flex-start;background:#f1f1f1;color:var(--text-color-secondary);border-radius:20px 20px 20px 5px;width:85%;max-width:85%;border-left:4px solid transparent;transition:background-color .2s ease,border-color .2s ease,box-shadow .2s ease}.message.assistant-message.assistant-message--rag{background:linear-gradient(180deg,#e6873c1a,#e6873c08);border-left-color:#e6873ce6;box-shadow:inset 0 0 0 1px #e6873c1f}.message.assistant-message.assistant-message--negotiation{background:linear-gradient(180deg,#2e7d661c,#2e7d6608);border-left-color:#2e7d66f2;box-shadow:inset 0 0 0 1px #2e7d661f}.message.assistant-message.assistant-message--non-rag{background:linear-gradient(180deg,#67b3ff1a,#9c27b008);border-left-color:#67b3fff2;box-shadow:inset 0 0 0 1px #67b3ff1f}.message.message--focused{box-shadow:0 0 0 2px #60a5fa73,0 10px 28px #0f172a29}.message-content{position:relative;width:100%}.message-toolbar{position:absolute;top:-10px;right:-20px;display:flex;gap:5px;z-index:10}.message-toolbar--user{position:static;top:auto;right:auto;flex-shrink:0;justify-content:flex-end;align-items:center;margin:0;padding-top:4px;transform:none}.toolbar-button--compact{width:28px;height:28px;min-width:28px;padding:0;border-radius:50%}.message-toolbar--user .toolbar-button--icon{width:28px;height:28px;min-width:28px;font-size:14px}.toolbar-button{background:#fff;border:1px solid #ccc;border-radius:15px;width:auto;height:auto;padding:5px 10px;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 3px #0000001a;color:#555;font-size:12px;line-height:1;white-space:nowrap}.toolbar-button:hover{background:#f0f0f0;color:#000}.toolbar-button:disabled{opacity:.55;cursor:not-allowed}.toolbar-button.is-saved{background:#ecfdf5;border-color:#6ee7b7;color:#047857}.toolbar-button span{margin-left:4px}.toolbar-button--danger{border-color:#e2b0b0;color:#9f2d2d}.toolbar-button--danger:hover{background:#fff0f0;color:#7f1616}.toolbar-button--icon{width:18px;height:18px;min-width:18px;padding:0;border-radius:50%;font-size:12px;font-weight:600;line-height:1}.improving-indicator{display:inline-flex;align-items:center;justify-content:center;margin-right:8px;color:#555;font-size:.85em;font-style:italic}.assistant-agent-badge{display:inline-flex;align-items:center;gap:8px;margin:8px 0 10px;padding:4px 10px;border-radius:999px;font-size:.78rem;font-weight:600;letter-spacing:.01em;width:fit-content}.assistant-agent-badge__dot{width:8px;height:8px;border-radius:50%;background:currentColor;opacity:.9}.assistant-agent-badge--rag{color:#b86a24;background:#e6873c1f;border:1px solid rgba(230,135,60,.22)}.assistant-agent-badge--negotiation{color:#226b57;background:#2e7d661f;border:1px solid rgba(46,125,102,.22)}.assistant-agent-badge--non-rag{color:#356fb5;background:#67b3ff1f;border:1px solid rgba(103,179,255,.22)}.improving-indicator .improving-icon{animation:spin 2s linear infinite;margin-right:5px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.whatsapp-summary-container{background-color:#e8f5e9;border-left:4px solid #4CAF50;border-radius:5px;border:1px solid #b3e0ff}.whatsapp-summary-container h4{margin-top:0;color:#0056b3}.error-message{color:#d8000c;background-color:#ffbaba;padding:5px;border-radius:3px}.message-text{line-height:1.5;color:var(--text-color-primary);word-wrap:break-word}.user-message .message-text{color:#fff}.message-text em{font-style:italic}.message-text p,.message-text ul,.message-text ol,.message-text h1,.message-text h2,.message-text h3,.message-text h4,.message-text h5,.message-text h6,.message-text blockquote,.message-text pre{margin-bottom:.75em}.message-text>:last-child{margin-bottom:0}.message-text h1,.message-text h2,.message-text h3,.message-text h4,.message-text h5,.message-text h6,.message-text li>p{display:contents}.message-text>:first-child{margin-top:0}.message-text>*+*{margin-top:1em}.message-text h1,.message-text h2,.message-text h3,.message-text h4,.message-text h5,.message-text h6{margin-top:1.2em;margin-bottom:.4em;font-weight:600;line-height:1.3}.message-text h1{font-size:1.5em}.message-text h2{font-size:1.3em}.message-text h3{font-size:1.2em}.message-text h4{font-size:1.1em}.message-text h5{font-size:1em}.message-text h6{font-size:.9em}.message-text ul,.message-text ol{padding-left:2em}.message-text li{margin-bottom:.25em}.message-text li:last-child{margin-bottom:0}.message-text code{font-family:var(--font-family-mono);background-color:#0000000d;padding:.2em .4em;border-radius:3px;font-size:90%}.message-text pre{background:#0000000d;padding:1em;border-radius:5px;overflow-x:auto;margin:.5em 0}.message-text pre code{background:none;padding:0;font-size:.9em}.message-text blockquote{margin:.5em 0;padding-left:1em;border-left:3px solid var(--border-color);color:var(--text-color-muted)}.message-text a{color:var(--text-color-link);text-decoration:none}.user-message .message-text a{color:#a8d8ff;text-decoration:underline}.message-text a:hover{text-decoration:underline}.message-table-wrapper{overflow-x:auto;margin:.5em 0;width:100%;max-width:100%}.message-text table,.source-detail-section-text table{border-collapse:collapse;margin:0;width:100%;white-space:normal}.message-text th,.message-text td,.source-detail-section-text th,.source-detail-section-text td{border:1px solid var(--border-color);padding:.5em;text-align:left;vertical-align:top}.message-text th,.source-detail-section-text th{background:#0000000d;font-weight:600}.user-message .message-text th{background:#ffffff26}.user-message .message-text th,.user-message .message-text td{border-color:#ffffff59}.message-text img{max-width:100%;height:auto;border-radius:4px}.message-text hr{border:none;border-top:1px solid var(--border-color);margin:1em 0}.chat-input{padding:var(--space-md);border-top:1px solid var(--border-color);display:flex;gap:var(--space-md);align-items:stretch;background:var(--background-color-content);flex-shrink:0}.chat-input textarea{flex-grow:1;padding:var(--space-md);border:none;border-radius:var(--border-radius-lg);background-color:#f1f1f1;resize:none;min-height:40px;max-height:50vh;overflow-y:auto;font-family:inherit;font-size:var(--font-size-md)}.chat-input textarea:focus{outline:none;box-shadow:0 0 0 2px rgba(var(--primary-color-rgb),.2)}.chat-editor{flex-grow:1;padding:var(--space-md);border:none;border-radius:var(--border-radius-lg);background-color:#f1f1f1;color:#000;-webkit-text-fill-color:#000000;caret-color:#000;min-height:40px;max-height:50vh;overflow-y:auto;font-family:inherit;font-size:var(--font-size-md);white-space:pre-wrap;word-break:break-word}.chat-editor *{color:inherit;-webkit-text-fill-color:inherit}.chat-editor::spelling-error,.chat-editor *::spelling-error,.chat-editor::grammar-error,.chat-editor *::grammar-error{color:#000;-webkit-text-fill-color:#000000;caret-color:#000}.chat-editor:focus{outline:none;box-shadow:0 0 0 2px rgba(var(--primary-color-rgb),.2)}.chat-editor.is-empty:before{content:attr(data-placeholder);color:#8f8f8f;pointer-events:none}.chat-input button{background:var(--secondary-color);color:var(--text-color-light);border:none;border-radius:var(--border-radius-lg);width:44px;height:44px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background-color .2s;padding:0}.chat-input button:not(:disabled):hover{background:var(--secondary-color-dark)}.chat-input button:disabled{background:var(--border-color-dark);cursor:not-allowed}.chat-input button svg{width:20px;height:20px}.chat-input-buttons{display:flex;gap:var(--space-sm);align-items:flex-end}.typing-indicator{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;border-radius:12px;color:#333;font-style:italic;min-height:80px;width:100%;max-width:600px;text-align:center}.typing-indicator span{width:8px;height:8px;background-color:var(--text-color-muted);border-radius:50%;animation:typing 1s infinite ease-in-out}.typing-indicator span:nth-child(1){animation-delay:.2s}.typing-indicator span:nth-child(2){animation-delay:.3s}.typing-indicator span:nth-child(3){animation-delay:.4s}@keyframes typing{0%,to{transform:translateY(0)}50%{transform:translateY(-5px)}}.message-content.loading{min-width:200px;width:fit-content;max-width:100%;height:auto;display:flex;flex-direction:column;align-items:center}.loading-message{font-size:.8em;color:var(--text-color-muted);margin-top:var(--space-sm);font-style:italic;overflow-wrap:break-word;white-space:normal;align-self:center}.message-context{margin-top:var(--space-sm);font-size:.95em;border-top:1px solid rgba(0,0,0,.1);padding-top:var(--space-sm)}.user-message .message-context{border-top:1px solid rgba(255,255,255,.2)}.message-context details{margin-top:var(--space-xs)}.message-context summary{cursor:pointer;color:var(--text-color-link);font-weight:500}.context-data{background:#0000000d;padding:var(--space-sm);border-radius:var(--border-radius-sm);margin-top:var(--space-sm);overflow-x:auto;font-size:.85em;white-space:pre-wrap;word-wrap:break-word;max-width:100%}.chat-container{display:flex;flex-direction:column;height:100%;margin:0 auto;width:100%;max-width:1600px}.chat-header{display:flex;justify-content:space-between;align-items:center;padding:10px;border-bottom:1px solid #e0e0e0;background-color:#f8f9fa}.header-controls-wrapper{display:flex;align-items:center;gap:8px;width:100%;justify-content:space-between;flex-wrap:wrap}.header-right-controls{display:flex;align-items:center;gap:8px}.header-button{background-color:#007bff;color:#fff;border:none;padding:10px 14px;margin:0;border-radius:5px;cursor:pointer;font-size:.9rem;font-weight:500;transition:background-color .2s;height:38px;box-sizing:border-box}.header-button:hover{background-color:#0056b3}.history-container{position:relative;display:inline-block}.history-dropdown{position:absolute;top:100%;right:0;background-color:#fff;border:1px solid #ccc;border-radius:4px;box-shadow:0 2px 10px #0000001a;z-index:11;max-width:400px;max-height:500px;overflow-y:auto}.history-item{display:flex;justify-content:space-between;align-items:flex-start;padding:8px 10px;cursor:pointer;border-bottom:1px solid #eee;border-left:4px solid var(--history-accent, transparent);background:linear-gradient(90deg,var(--history-accent-soft, transparent),transparent 45%);transition:background-color .2s,border-color .2s,box-shadow .2s;text-align:left;font-size:.95em}.history-item-main{display:flex;align-items:flex-start;min-width:0;flex:1}.history-item-text{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}.history-color-dot{width:10px;height:10px;border-radius:999px;background-color:var(--history-accent, #94a3b8);box-shadow:0 0 0 2px #fffffff2;margin-right:8px;margin-top:4px;flex-shrink:0}.history-item:last-child{border-bottom:none}.history-item:hover{background-color:#f0f0f0;box-shadow:inset 0 0 0 1px var(--history-accent-border, rgba(0, 0, 0, .08))}.history-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-clamp:2;overflow:hidden;white-space:normal;overflow-wrap:anywhere;line-height:1.3;font-size:.86rem;font-weight:600;color:#1e293b;margin-right:6px}.history-username{color:#888;font-size:.72em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-sidebar{display:flex;flex-direction:column;width:300px;flex-shrink:0;background:#f7f8fa;border-right:1px solid #e5e7eb;min-height:0}.history-sidebar__header{display:flex;align-items:center;justify-content:space-between;padding:12px 12px 8px;font-weight:600}.history-sidebar__close{display:none;background:none;border:none;cursor:pointer;font-size:1rem;color:#666}.history-sidebar__search{padding:12px 12px 8px}.history-sidebar__search input{width:100%;box-sizing:border-box;border:1px solid #d1d5db;border-radius:8px;padding:8px 10px;font-size:.9rem}.history-inspect-banner{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 12px 8px;padding:8px 10px;background:#fff3cd;border:1px solid #ffeeba;border-radius:8px;color:#856404;font-size:.8rem}.history-inspect-banner button{background:#856404;color:#fff;border:none;border-radius:6px;padding:4px 10px;font:inherit;cursor:pointer}.new-chat-folder-overlay{position:fixed;inset:0;z-index:1300;background:#0f172a66;display:flex;align-items:center;justify-content:center;padding:16px}.new-chat-folder-overlay__card{width:min(520px,100%);max-height:min(82vh,760px);display:flex;flex-direction:column;overflow:hidden;background:#fff;border-radius:16px;box-shadow:0 16px 40px #0003;padding:24px;text-align:center}.new-chat-folder-overlay__card h2,.new-chat-folder-overlay__card p,.new-chat-folder-picker__create{flex-shrink:0}.new-chat-folder-overlay__card h2{margin:0 0 8px;font-size:1.2rem}.new-chat-folder-overlay__card p{margin:0 0 16px;color:#475569}.new-chat-folder-picker__options{display:flex;flex-direction:column;gap:8px;min-height:0;flex:1 1 auto;overflow-y:auto}.new-chat-folder-picker__create{display:flex;gap:8px;margin-top:12px}.new-chat-folder-picker__create-input{flex:1;min-width:0;padding:10px 12px;border:1px dashed #cbd5e1;border-radius:10px;font-size:.95rem}.new-chat-folder-picker__create-input:focus{outline:none;border-style:solid;border-color:#93c5fd}.new-chat-folder-picker__create-btn{flex-shrink:0;padding:10px 12px;border:none;border-radius:10px;background:#007bff;color:#fff;font-weight:600;cursor:pointer}.new-chat-folder-picker__create-btn:disabled{opacity:.55;cursor:not-allowed}.new-chat-folder-picker__option{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:10px;background:#f8fafc;cursor:pointer;font-weight:600;display:flex;flex-direction:column;align-items:center;gap:2px}.new-chat-folder-picker__option:hover{background:#eef4ff;border-color:#93c5fd}.new-chat-folder-picker__option.has-memory{border-color:#86efac;background:#f0fdf4}.new-chat-folder-picker__option.has-memory:hover{background:#dcfce7;border-color:#4ade80}.new-chat-folder-picker__option-hint,.new-chat-folder-picker__memory{font-size:.75rem;font-weight:500;color:#64748b}.new-chat-folder-picker__memory{color:#15803d}.new-chat-folder-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 12px 8px;padding:8px 12px;border:1px solid #dbeafe;border-radius:10px;background:#eff6ff;color:#1e3a5f;font-size:.88rem}.new-chat-folder-banner__change{border:none;background:transparent;color:#1d4ed8;font-weight:600;cursor:pointer;padding:4px 0}.new-chat-folder-banner__change:hover{text-decoration:underline}.history-sidebar__new-chat{margin:0 12px 8px;height:36px;border:none;border-radius:8px;background:#007bff;color:#fff;font-weight:600;cursor:pointer}.history-sidebar__new-chat:hover{background:#0056b3}.history-sidebar__list{flex:1;overflow-y:auto;padding-bottom:16px}.history-sidebar-toggle,.history-sidebar-backdrop{display:none}.history-folder-toolbar{padding:4px 12px 8px}.history-folder-add{width:100%;background:none;border:1px dashed #cbd5e1;border-radius:8px;padding:6px 8px;color:#475569;cursor:pointer;text-align:left}.history-folder__header{display:flex;align-items:center;gap:4px;padding:4px 8px}.history-folder__header--static{padding:8px 12px 4px;color:#64748b;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em}.history-folder__toggle{display:flex;align-items:center;gap:6px;flex:1;min-width:0;background:none;border:none;cursor:pointer;text-align:left;color:#334155;font-weight:600;font-size:.85rem;padding:4px}.history-folder__name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-flex;align-items:center;gap:6px}.history-folder__memory-dot{width:6px;height:6px;border-radius:50%;background:#64748b;flex-shrink:0}.history-folder__memory-dot.is-on{background:#10b981}.history-folder__memory-dot.is-off{background:#ef4444}.history-folder__count{margin-left:auto;color:#94a3b8;font-size:.75rem;font-weight:500}.history-folder__actions{display:flex;gap:2px}.history-folder__actions button{background:none;border:none;color:#94a3b8;cursor:pointer;width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;padding:0}.history-folder__actions button.history-folder__memory-btn{width:22px;height:22px;border-radius:6px}.history-folder__actions button.history-folder__memory-btn.is-on{color:#047857;background:#d1fae5}.history-folder__actions button.history-folder__memory-btn.is-on:hover{background:#a7f3d0}.history-folder__actions button.history-folder__memory-btn.is-off{color:#b91c1c;background:#fecaca}.history-folder__actions button.history-folder__memory-btn.is-off:hover{background:#fca5a5}.share-dialog.folder-memory-dialog{width:min(1240px,100%);max-width:100%;max-height:calc(100vh - 48px);overflow:auto;padding:24px 32px;box-sizing:border-box}.folder-memory-dialog__status{margin:12px 0 4px}.folder-memory-dialog__status .folder-memory-enable-dialog__actions{margin-top:0}.folder-memory-dialog__toggle-hint{margin:8px 0 0;font-size:.8rem;line-height:1.4;color:#64748b}.folder-memory-dialog__label{font-size:.78rem;font-weight:600;color:#64748b;margin:14px 0 8px}.folder-memory-dialog__notes{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:10px;padding:12px 14px;font:inherit;font-size:.95rem;line-height:1.5;color:#0f172a;resize:vertical;min-height:140px}.folder-memory-dialog__notes--summary{min-height:240px}.folder-memory-dialog__readonly{white-space:pre-wrap;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:14px 16px;color:#334155;font-size:.95rem;line-height:1.55;min-height:72px;max-height:280px;overflow:auto}.folder-memory-dialog__markdown{position:relative;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:16px 18px 18px;color:#0f172a;font-size:.95rem;line-height:1.55;min-height:120px;max-height:min(58vh,640px);overflow:auto}.folder-memory-dialog__markdown.folder-memory-dialog__notes--summary{min-height:240px}.folder-memory-dialog__markdown--editable{cursor:text}.folder-memory-dialog__markdown--editable:hover{border-color:#94a3b8}.folder-memory-dialog__markdown-empty{color:#94a3b8}.folder-memory-dialog__markdown table{border-collapse:collapse;width:100%;margin:0 0 .85em}.folder-memory-dialog__markdown th,.folder-memory-dialog__markdown td{border:1px solid #cbd5e1;padding:6px 8px;text-align:left}.folder-memory-dialog__markdown>:first-child{margin-top:0}.folder-memory-dialog__markdown>:last-child{margin-bottom:0}.folder-memory-dialog__markdown h1,.folder-memory-dialog__markdown h2,.folder-memory-dialog__markdown h3,.folder-memory-dialog__markdown h4{margin:1.1em 0 .4em;font-weight:700;line-height:1.3;color:#0f172a}.folder-memory-dialog__markdown h1{font-size:1.25rem}.folder-memory-dialog__markdown h2{font-size:1.12rem}.folder-memory-dialog__markdown h3,.folder-memory-dialog__markdown h4{font-size:1rem}.folder-memory-dialog__markdown p{margin:0 0 .75em}.folder-memory-dialog__markdown ul,.folder-memory-dialog__markdown ol{margin:0 0 .85em;padding-left:1.4em}.folder-memory-dialog__markdown li{margin-bottom:.35em}.folder-memory-dialog__markdown li>p{margin:0}.folder-memory-dialog__markdown strong{font-weight:700}.folder-memory-dialog__markdown em{font-style:italic}.folder-memory-dialog__markdown code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.88em;background:#e2e8f0;border-radius:4px;padding:.05em .35em}.folder-memory-dialog__actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;align-items:center}.folder-memory-dialog__unsaved{margin-left:auto;font-size:.82rem;font-weight:600;color:#b45309}.folder-memory-dialog__actions button{background:#f1f5f9;border:1px solid #cbd5e1;border-radius:8px;padding:6px 10px;color:#334155;cursor:pointer}.share-dialog.folder-memory-enable-dialog{width:min(680px,100%);max-width:100%;max-height:calc(100vh - 32px);overflow:auto;padding:28px 32px 24px;box-sizing:border-box}.folder-memory-enable-dialog .share-dialog__title{margin-top:4px;font-size:1.2rem;line-height:1.35}.folder-memory-enable-dialog__body{margin:16px 0 8px;color:#334155;font-size:.95rem;line-height:1.55}.folder-memory-enable-dialog__body p{margin:0 0 .85em}.folder-memory-enable-dialog__body p:last-child{margin-bottom:0}.folder-memory-enable-dialog__actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px;margin-top:20px}.folder-memory-enable-dialog__choice{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%;max-width:100%;min-width:0;text-align:left;border-radius:12px;padding:14px 16px;cursor:pointer;font:inherit;box-sizing:border-box;white-space:normal}.folder-memory-dialog__status .folder-memory-enable-dialog__choice:not(.is-selected){opacity:.42;filter:grayscale(.25);background:#f8fafc;border-color:#e2e8f0;color:#64748b}.folder-memory-enable-dialog__choice-badge{font-size:.68rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.folder-memory-enable-dialog__choice-title{font-size:.98rem;font-weight:700;line-height:1.3;white-space:normal;overflow-wrap:anywhere}.folder-memory-enable-dialog__choice-hint{font-size:.82rem;line-height:1.4;font-weight:400;white-space:normal;overflow-wrap:anywhere}.folder-memory-enable-dialog__choice--off{background:#fef2f2;border:2px solid #fecaca;color:#991b1b}.folder-memory-enable-dialog__choice--off:hover:not(:disabled):not(.is-selected){background:#fee2e2;border-color:#fca5a5}.folder-memory-enable-dialog__choice--off.is-selected{background:#fee2e2;border-color:#dc2626;color:#7f1d1d;box-shadow:0 0 0 3px #dc262638}.folder-memory-enable-dialog__choice--on{background:#ecfdf5;border:2px solid #6ee7b7;color:#065f46}.folder-memory-enable-dialog__choice--on:hover:not(:disabled):not(.is-selected){background:#d1fae5;border-color:#34d399}.folder-memory-enable-dialog__choice--on.is-selected{background:#d1fae5;border-color:#059669;color:#064e3b;box-shadow:0 0 0 3px #05966940}.folder-memory-enable-dialog__choice:disabled{cursor:default}@media (max-width: 720px){.folder-memory-dialog-backdrop,.folder-memory-enable-backdrop{padding:8px}.folder-memory-dialog-backdrop{align-items:stretch}.share-dialog.folder-memory-dialog,.share-dialog.folder-memory-enable-dialog{width:100%;max-width:100%;max-height:calc(100vh - 16px);padding:16px 16px 14px}.folder-memory-enable-dialog .share-dialog__title{font-size:1.05rem}.folder-memory-enable-dialog__body{margin:12px 0 4px;font-size:.9rem}.folder-memory-enable-dialog__actions{grid-template-columns:1fr;margin-top:16px}.folder-memory-enable-dialog__choice{padding:12px 14px}.folder-memory-dialog__markdown,.folder-memory-dialog__markdown.folder-memory-dialog__notes--summary{min-height:96px;max-height:min(42vh,360px);padding:12px 14px}.folder-memory-dialog__notes,.folder-memory-dialog__notes--summary{min-height:96px}.folder-memory-dialog__unsaved{margin-left:0}}.history-sidebar__chevron{transition:transform .15s ease}.history-sidebar__chevron.is-collapsed{transform:rotate(-90deg)}.history-item.is-active{background-color:#eef4ff}.history-item--empty{cursor:default;color:#888}.history-item-actions{position:relative;display:flex;align-items:center}.history-menu-button{background:none;border:none;color:#94a3b8;cursor:pointer;width:24px;height:24px;border-radius:6px;font-size:1rem;line-height:1}.history-menu-button:hover{background:#e5e7eb;color:#334155}.history-item-menu{position:absolute;right:0;top:24px;z-index:20;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 8px 24px #0000001f;min-width:160px;padding:4px}.history-item-menu button{display:block;width:100%;background:none;border:none;text-align:left;padding:7px 10px;cursor:pointer;border-radius:6px;font-size:.85rem}.history-item-menu button:hover{background:#f1f5f9}.history-item-menu__label{padding:6px 10px 2px;font-size:.7rem;color:#94a3b8;text-transform:uppercase}.history-item-menu__danger{color:#b91c1c}.history-rename-input{flex:1;min-width:0;border:1px solid #93c5fd;border-radius:6px;padding:3px 6px;font-size:.9rem}.history-rename-input--folder{width:100%}.history-date-group{margin-top:4px}.history-folder .history-date-group:first-of-type{margin-top:0}.history-date-group+.history-date-group{margin-top:10px}.history-date-group__label{padding:8px 12px 4px;font-size:.72rem;font-weight:600;color:#64748b;letter-spacing:.01em}.history-search-folder{padding:0 12px 8px 36px;font-size:.75rem;color:#64748b}@media (max-width: 768px){.history-sidebar-toggle{display:inline-flex;align-items:center}.history-sidebar-backdrop{display:block;position:fixed;inset:0;background:#0f172a59;z-index:20}.history-sidebar{position:fixed;top:0;left:0;bottom:0;z-index:21;width:min(320px,88vw);transform:translate(-100%);transition:transform .2s ease;box-shadow:8px 0 24px #0000001f}.history-sidebar.is-open{transform:translate(0)}.history-sidebar__close{display:flex}.new-chat-folder-overlay{align-items:flex-end;padding:16px 16px 96px}.new-chat-folder-overlay__card{width:100%;max-height:calc(100dvh - 140px)}.new-chat-folder-banner{margin:0 8px 8px}}.delete-convo-button{background:none;border:none;color:#aaa;cursor:pointer;font-weight:700;padding:2px 5px;border-radius:3px;line-height:1;font-size:16px;opacity:.5;transition:all .2s}.history-item:hover .delete-convo-button{opacity:1;color:#ff4d4d}.delete-convo-button:hover{color:red;transform:scale(1.1)}.send-buttons-group{display:flex;align-items:center;gap:8px}.search-type-btn{display:flex;align-items:center;justify-content:center;border:none;color:#ccc;padding:10px;border-radius:8px;cursor:pointer;transition:background-color .2s,color .2s;width:44px;height:44px}.search-type-btn.quick-btn{background-color:#4a4a68;color:#fff}.search-type-btn.quick-btn:hover:not(:disabled){background-color:#5a5a78}.search-type-btn.deep-btn{background-color:#38384d;color:#fff;border:none}.search-type-btn.deep-btn:hover:not(:disabled){background-color:#4a4a68}.search-type-btn:disabled{cursor:not-allowed;opacity:.5}.search-type-btn svg{fill:currentColor;width:20px;height:20px}.search-type-indicator{display:flex;align-items:center;margin-bottom:0;margin-right:15px;padding:8px 12px;border-radius:16px;background-color:#f0f0f0;color:#555;font-size:.9em;font-weight:500;box-shadow:0 1px 3px #0000001a;animation:fadeIn .5s ease-in-out}.search-type-indicator svg{margin-right:8px}.message-feedback{margin-top:10px;padding-top:8px;border-top:1px solid rgba(148,163,184,.2);text-align:right}.message-feedback__header{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.message-feedback__label{font-size:1rem;font-weight:600;letter-spacing:.02em;color:#64748b}.message-feedback__actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.message-feedback__thumb{border:1px solid rgba(148,163,184,.35);background:#fffc;color:#334155;border-radius:999px;cursor:pointer;transition:background-color .2s,border-color .2s,transform .2s}.message-feedback__thumb{width:28px;height:28px;font-size:.9rem;line-height:1;padding:0}.message-feedback__thumb:hover{background:#f1f5f9f2;border-color:#64748b73}.message-feedback__thumb.is-active{background:#dbeafe;border-color:#60a5fa}.message-feedback__comment{width:100%;min-height:68px;margin-top:8px;padding:9px 11px;border-radius:10px;border:1px solid rgba(148,163,184,.35);background:#ffffffad;color:#1e293b;resize:vertical;font-family:inherit;line-height:1.45;box-sizing:border-box;font-size:.88rem;display:block;text-align:left}.message-feedback__comment:focus{outline:none;border-color:#60a5fa;box-shadow:0 0 0 3px #60a5fa2e;background:#ffffffe6}.message-feedback__footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-top:8px}.message-feedback__status{font-size:.78rem;color:#0f766e}.message-feedback__error{font-size:.78rem;color:#b91c1c}.loading-container{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:center;padding:10px;width:100%;max-width:80%;text-align:center}.loading-phrase{font-style:italic;padding:10px;color:#333;margin-bottom:0;margin-right:10px}.dots-container>span{height:8px;width:8px;background-color:#ccc;display:inline-block;border-radius:50%;margin:0 4px;animation:blink 1.4s infinite both}.dots-container>span:nth-child(2){animation-delay:.2s}.dots-container>span:nth-child(3){animation-delay:.4s}@keyframes blink{0%{opacity:.2}20%{opacity:1}to{opacity:.2}}@keyframes fadeIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@media (max-width: 1200px){.chat-box{max-width:95%;margin:15px auto}}@media (max-width: 992px){.chat-popup{width:90vw;height:75vh}.chat-box{max-width:100%;margin:0}.message{max-width:85%}.chat-input{padding:var(--space-sm)}}@media (max-width: 768px){.chat-popup{width:100%;height:100%;bottom:0;right:0;border-radius:0;box-shadow:none}.chat-box{margin:0;height:100%;border-radius:0;width:100%}.chat-popup-header{padding:var(--space-sm);flex-direction:row;align-items:center;flex-wrap:nowrap}.header-controls{width:auto;justify-content:flex-end}.chat-messages{gap:var(--space-sm)}.message{max-width:92%;font-size:.9rem}.message-row--user .message.user-message{max-width:calc(100% - 72px)}.message .text-bubble{padding:8px 12px}.chat-input{flex-direction:row;align-items:center;gap:var(--space-sm);padding:var(--space-sm)}.chat-input textarea,.chat-editor{max-height:150px;min-height:24px;flex-grow:1}.chat-input-buttons{justify-content:flex-end;width:auto;flex-shrink:0}.chat-input button{width:auto;padding:var(--space-sm) var(--space-md)}}@media (max-width: 480px){.chat-popup-header h3{font-size:.95rem}.message{font-size:.85rem}.message .text-bubble{padding:6px 10px}.chat-messages,.chat-input{padding:var(--space-xs)}}.send-buttons-group{display:flex;align-items:center;gap:6px}.chat-mode-toggle{display:flex;align-items:center;background-color:#e0e0e0;border-radius:20px;padding:2px;min-height:38px;height:auto;box-sizing:border-box;flex-wrap:wrap}.toggle-btn{background-color:transparent;border:none;padding:8px 12px;cursor:pointer;border-radius:16px;font-weight:600;white-space:nowrap;transition:background-color .3s,color .3s}.toggle-btn.active{background-color:#007bff;color:#fff}.toggle-btn--rag.active{background-color:#007bff}.toggle-btn--gpt.active{background-color:#5865f2}.toggle-btn--negotiation.active{background-color:#2e7d66}.toggle-btn:not(.active):hover{background-color:#c7c5c5}.search-type-btn{background-color:#007bff;color:#fff;border:none;border-radius:50%;width:48px;height:48px;display:flex;justify-content:center;align-items:center;cursor:pointer;transition:background-color .3s}.search-type-btn:disabled{background-color:#ccc;cursor:not-allowed}.search-type-btn:not(:disabled):hover{background-color:#0056b3}.deleted-convo{background-color:#fceaea;color:#a94442}.deleted-convo .history-title{text-decoration:line-through}.deleted-convo:hover{background-color:#f9d7d7}.deleted-label{font-size:.8em;font-weight:700;color:#c9302c;margin-left:8px;white-space:nowrap}.image-previews{display:flex;flex-wrap:wrap;gap:8px;padding:8px;border-bottom:1px solid #e0e0e0;max-height:150px;overflow-y:auto;background-color:#f8f9fa;border-radius:8px 8px 0 0}.image-preview-item{position:relative;display:inline-block}.image-preview-item img{width:80px;height:80px;object-fit:cover;border-radius:4px;border:1px solid #ddd;display:block}.image-preview-remove{position:absolute;top:-8px;right:-8px;background:#f44;color:#fff;border:none;border-radius:50%;width:20px;height:20px;cursor:pointer;font-size:12px;display:flex;align-items:center;justify-content:center;line-height:1;box-shadow:0 2px 4px #0003;transition:background-color .2s}.image-preview-remove:hover{background:#c00}.image-upload-button{background:transparent;border:1px solid #ddd;border-radius:4px;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0}.image-upload-button:hover:not(:disabled){background:#f0f0f0;border-color:#007bff}.image-upload-button:disabled{opacity:.5;cursor:not-allowed}.image-upload-button svg{width:20px;height:20px}.attached-images-container{margin-bottom:10px;display:flex;flex-wrap:wrap;gap:8px}.attached-images-container img{max-width:200px;max-height:200px;border-radius:8px;cursor:pointer;object-fit:cover;border:2px solid rgba(255,255,255,.3);transition:transform .2s,box-shadow .2s}.user-message .attached-images-container img{border-color:#ffffff80}.assistant-message .attached-images-container img{border-color:#ddd}.attached-images-container img:hover{transform:scale(1.05);box-shadow:0 4px 8px #0003}.attached-image-placeholder{width:200px;min-height:200px;border-radius:8px;padding:12px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;gap:8px;border:2px dashed rgba(255,255,255,.35);background:#ffffff24}.assistant-message .attached-image-placeholder{border-color:#cfd8dc;background:#f6f7f8}.attached-image-placeholder--legacy{color:inherit}.attached-image-placeholder__label{font-size:.82em;font-weight:700;text-transform:uppercase;letter-spacing:.03em;opacity:.9}.attached-image-placeholder__name{font-size:.95em;font-weight:600;line-height:1.4;word-break:break-word}.attached-image-placeholder__meta{font-size:.82em;line-height:1.45;opacity:.88}.chat-input{flex-direction:column;align-items:stretch}.chat-input-row{display:flex;align-items:flex-end;gap:8px;width:100%}.file-previews{display:flex;flex-direction:column;gap:8px;padding:8px;border-bottom:1px solid #e0e0e0;background-color:#f8f9fa;border-radius:8px 8px 0 0;max-height:200px;overflow-y:auto}.document-previews{display:flex;flex-wrap:wrap;gap:8px}.document-preview-item{display:flex;align-items:center;gap:6px;padding:6px 10px;background-color:#fff;border:1px solid #ddd;border-radius:4px;font-size:.9em;position:relative}.document-icon{font-size:1.2em}.document-name{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.document-preview-remove{background:#f44;color:#fff;border:none;border-radius:50%;width:18px;height:18px;cursor:pointer;font-size:12px;display:flex;align-items:center;justify-content:center;line-height:1;margin-left:4px;transition:background-color .2s}.document-preview-remove:hover{background:#c00}.document-upload-button{background:transparent;border:1px solid #ddd;border-radius:4px;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0}.document-upload-button:hover:not(:disabled){background:#f0f0f0;border-color:#007bff}.document-upload-button:disabled{opacity:.5;cursor:not-allowed}.document-upload-button svg{width:20px;height:20px}.chat-input .dictate-button{background:transparent;color:#444;border:1px solid #ddd;border-radius:4px;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;flex-shrink:0}.chat-input .dictate-button:hover:not(:disabled){background:#f0f0f0;border-color:#007bff;color:#007bff}.chat-input .dictate-button:disabled{opacity:.5;cursor:not-allowed;background:transparent}.chat-input .dictate-button svg{width:20px;height:20px}.chat-input .dictate-button.is-recording{background:#dc2626;border-color:#dc2626;color:#fff;animation:dictatePulse 1.4s ease-in-out infinite}.chat-input .dictate-button.is-recording:hover:not(:disabled){background:#b91c1c;border-color:#b91c1c;color:#fff}.chat-input .dictate-button.is-transcribing{opacity:.7}@keyframes dictatePulse{0%,to{box-shadow:0 0 #dc262673}50%{box-shadow:0 0 0 6px #dc262600}}.dictate-status{display:flex;align-items:center;gap:8px;padding:8px 12px;margin-bottom:8px;border-radius:8px;font-size:.85rem;background:#eef4ff;color:#1e3a8a}.dictate-status--recording,.dictate-status--error{background:#fef2f2;color:#991b1b}.dictate-status__dismiss{margin-left:auto;width:24px;height:24px;border:none;background:transparent;color:inherit;font-size:1.1rem;line-height:1;cursor:pointer;border-radius:4px}.chat-input .dictate-status__dismiss{width:24px;height:24px;background:transparent;color:inherit;border:none}.chat-input .dictate-status__dismiss:hover:not(:disabled){background:#0000000f}.dictate-status__dismiss:hover{background:#0000000f}.attached-documents-container{margin-bottom:10px;display:flex;flex-direction:column;gap:6px}.attached-document-item{display:flex;align-items:center;gap:8px;padding:6px 10px;background-color:#fff3;border-radius:4px;font-size:.9em}.user-message .attached-document-item{background-color:#ffffff4d}.assistant-message .attached-document-item{background-color:#f0f0f0}.attached-document-item .document-icon{font-size:1.1em}.attached-document-item .document-name{color:inherit}.source-project-btn{display:flex;align-items:center;gap:8px;background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid #d7e2f7;border-radius:12px;padding:10px 12px;cursor:pointer;text-align:left;font-size:.9em;color:#1b2b44;width:100%;transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}.source-project-btn:hover{border-color:#8ea8e8;box-shadow:0 6px 18px #244fab24;transform:translateY(-1px)}.source-project-btn:focus-visible{outline:none;border-color:#4c7be8;box-shadow:0 0 0 3px #4c7be83d}.source-project-btn:hover .source-project-firma{text-decoration:underline}.source-project-firma{font-weight:600;flex-shrink:0}.source-project-meta{color:#888;font-size:.88em;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.source-project-open{font-size:.8em;color:#3558b8;flex-shrink:0;opacity:.95;font-weight:600;display:inline-flex;align-items:center;gap:6px}.source-project-open:after{content:"↗";font-size:.95em}.source-detail-overlay{position:fixed;inset:0;z-index:1300;background:#0f172a80;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;padding:20px}.source-detail-modal{background:#fff;border-radius:16px;box-shadow:0 18px 56px #10182859;border:1px solid #e8edf8;max-width:760px;width:min(760px,calc(100vw - 32px));max-height:min(84vh,920px);display:flex;flex-direction:column;overflow:hidden;animation:sourceDetailModalIn .2s ease-out}.source-detail-close{border:1px solid #d9e3f6;background:#f7faff;color:#2f3f5f;width:32px;height:32px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-size:1rem;transition:background-color .2s ease,border-color .2s ease,transform .2s ease}.source-detail-close:hover{background:#eef4ff;border-color:#aac0ee;transform:scale(1.04)}.source-detail-close:focus-visible{outline:none;box-shadow:0 0 0 3px #5b78e33d}.source-detail-header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px 14px;border-bottom:1px solid #eef1f6;gap:12px;background:linear-gradient(180deg,#fcfdff,#f4f7ff)}.source-detail-firma{margin:0;font-size:1.2em;font-weight:700;color:#1a1a2e}.source-detail-body{overflow-y:auto;padding:18px 22px 22px;display:flex;flex-direction:column;gap:18px}.source-detail-section{border:1px solid #e6ecf9;border-radius:10px;padding:12px 14px;background:#fafcff}.source-detail-section-title{margin:0 0 8px;font-size:.9em;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--accent, #5b6af0)}.source-detail-section-meta{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}.source-detail-meta-chip{display:inline-flex;align-items:center;border-radius:999px;border:1px solid #d3ddf4;background:#f1f5ff;color:#2b3f74;padding:3px 10px;font-size:.78em;font-weight:600;letter-spacing:.01em}.source-detail-meta-chip--muted{border-color:#dfe5f1;background:#f8f9fc;color:#4f5d79;font-weight:500}.source-detail-section-text{font-size:.93em;line-height:1.6;color:#333;white-space:pre-wrap}.source-detail-section-text p{margin:0 0 8px}@keyframes sourceDetailModalIn{0%{opacity:0;transform:translateY(10px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}.history-folder--shared{margin-top:8px;padding-top:4px;border-top:1px solid #e5e7eb}.share-dialog-backdrop{position:fixed;inset:0;z-index:1400;background:#0f172a66;display:flex;align-items:center;justify-content:center;padding:16px}.folder-memory-dialog-backdrop{padding:24px}.share-dialog{width:min(420px,100%);background:#fff;border-radius:12px;box-shadow:0 16px 40px #0003;padding:16px}.share-dialog__header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.share-dialog__eyebrow{font-size:.72rem;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.04em}.share-dialog__title{font-weight:700;color:#0f172a;overflow-wrap:anywhere}.share-dialog__close{background:none;border:none;cursor:pointer;color:#64748b}.share-dialog__hint{margin:10px 0 12px;font-size:.85rem;color:#475569}.share-dialog__row{display:flex;gap:8px}.share-dialog__row input,.share-dialog__row select,.share-dialog__list select{border:1px solid #d1d5db;border-radius:8px;padding:8px 10px;font-size:.9rem}.share-dialog__row input{flex:1;min-width:0}.share-dialog__results{margin-top:8px;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden}.share-dialog__results button,.share-dialog__list button{display:block;width:100%;background:none;border:none;text-align:left;padding:8px 10px;cursor:pointer}.share-dialog__results button:hover,.share-dialog__list button:hover{background:#f8fafc}.share-dialog__error{margin-top:8px;color:#b91c1c;font-size:.85rem}.share-dialog__list-label{margin-top:14px;font-size:.75rem;font-weight:600;color:#64748b}.share-dialog__empty{margin-top:6px;color:#94a3b8;font-size:.85rem}.share-dialog__list{list-style:none;margin:8px 0 0;padding:0}.share-dialog__list li{display:flex;align-items:center;gap:8px;padding:6px 0}.share-dialog__name{flex:1;min-width:0;font-weight:600}.share-dialog__list button{width:auto;color:#b91c1c}.cited-slides-container{padding-top:10px}.sources-separator{height:1px;background-color:#e0e0e0;margin:20px 0}.cited-slides-header{font-size:.9rem;font-weight:600;color:#555;margin-bottom:10px;text-transform:uppercase;letter-spacing:.5px}.cited-slides-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:15px}.cited-slide-item{border:1px solid #ddd;border-radius:8px;overflow:hidden;display:flex;flex-direction:column;background-color:#fff;transition:box-shadow .2s ease-in-out,transform .2s ease-in-out}.cited-slide-item:hover{box-shadow:0 4px 12px #0000001a;transform:translateY(-5px)}.slide-link{text-decoration:none;color:inherit;padding:10px;background-color:#f9f9f9;border-bottom:1px solid #ddd}.slide-link:hover{background-color:#f0f0f0d2}.slide-filename{margin:0;font-size:.8rem;font-weight:500;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.slide-image{width:100%;height:auto;aspect-ratio:16 / 9;object-fit:cover;background-color:#f0f0f0}.slide-image:hover{cursor:zoom-in!important}.slide-image-placeholder{width:100%;aspect-ratio:16 / 9;display:flex;align-items:center;justify-content:center;background-color:#f5f5f5;color:#888;font-size:.9rem}.authenticated-image-wrapper{width:100%}.authenticated-image-placeholder,.authenticated-image-error{display:flex;align-items:center;justify-content:center;background-color:#f5f5f5;color:#888;font-size:.85rem;text-align:center;padding:8px}.slide-link--highlighted{text-decoration:underline;color:#1976d2!important;font-weight:700;cursor:pointer;background-color:#f9f9f9;transition:background .2s,color .2s}.slide-link--highlighted:hover{background-color:#e3eaff;color:#1251a2!important}.slide-link-icon{margin-left:6px;font-size:.95em;vertical-align:middle}.cited-slide-item.slide-cited{border-color:#4caf50;border-width:2px;box-shadow:0 2px 8px #4caf5033}.cited-slide-item.slide-cited .slide-link{background-color:#f1f8e9}.cited-badge{display:inline-flex;align-items:center;justify-content:center;margin-left:6px;width:18px;height:18px;background-color:#4caf50;color:#fff;border-radius:50%;font-size:.7rem;font-weight:700;vertical-align:middle}.slide-score-info{font-size:.65rem;color:#666;margin-top:2px;font-weight:500;background-color:#eee;padding:1px 5px;border-radius:4px;display:inline-block}.slide-cited .slide-score-info{background-color:#dcedc8;color:#33691e}.feedback-dashboard{width:min(1400px,100%);margin:0 auto;padding:8px 8px 24px;color:#e5eef8}.feedback-dashboard__header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px}.feedback-dashboard__eyebrow{margin:0 0 6px;font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:#8fb4ff}.feedback-dashboard__header h1{margin:0;font-size:2rem;color:#f6fbff}.feedback-dashboard__subtitle{margin:8px 0 0;color:#9fb2cb}.feedback-dashboard__back-link{color:#9cc2ff;text-decoration:none;font-weight:600}.feedback-dashboard__stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.feedback-dashboard__stat-card{background:#101827;border:1px solid #223046;border-radius:12px;padding:16px;display:grid;gap:8px}.feedback-dashboard__stat-card strong{font-size:1.8rem;color:#f8fbff}.feedback-dashboard__stat-label{font-size:.9rem;color:#9fb2cb}.feedback-dashboard__filters{display:grid;grid-template-columns:minmax(280px,1fr) 180px 180px;gap:12px;margin-bottom:18px}.feedback-dashboard__filters input,.feedback-dashboard__filters select{background:#101827;border:1px solid #223046;color:#e5eef8;border-radius:10px;padding:10px 12px;font:inherit}.feedback-dashboard__table-wrapper{overflow:auto;background:#0e1521;border:1px solid #223046;border-radius:14px}.feedback-dashboard__table{width:100%;border-collapse:collapse;min-width:1100px}.feedback-dashboard__table th,.feedback-dashboard__table td{padding:12px 14px;text-align:left;border-bottom:1px solid #1d293d;vertical-align:top}.feedback-dashboard__table th{position:sticky;top:0;background:#121c2b;color:#b8cae2;font-size:.82rem;text-transform:uppercase;letter-spacing:.04em}.feedback-dashboard__table tbody tr:hover{background:#8eb2ff0f}.feedback-dashboard__score{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;font-size:.85rem;font-weight:700}.feedback-dashboard__score--up{background:#16a34a26;color:#86efac}.feedback-dashboard__score--down{background:#dc262629;color:#fca5a5}.feedback-dashboard__message-cell,.feedback-dashboard__comment-cell{min-width:280px;white-space:pre-wrap;line-height:1.45}.feedback-dashboard__message-link{color:#cfe0ff;text-decoration:none;display:inline-block}.feedback-dashboard__message-link:hover{color:#fff;text-decoration:underline}.feedback-dashboard__state{padding:18px;background:#101827;border:1px solid #223046;border-radius:12px;color:#b8cae2}.feedback-dashboard__state--error{color:#fecaca;border-color:#dc262666}@media (max-width: 960px){.feedback-dashboard__header{flex-direction:column}.feedback-dashboard__stats{grid-template-columns:repeat(2,minmax(0,1fr))}.feedback-dashboard__filters{grid-template-columns:1fr}}@media (max-width: 640px){.feedback-dashboard__stats{grid-template-columns:1fr}}.usage-metrics-dashboard{width:min(1400px,100%);margin:0 auto;padding:8px 8px 24px;color:#e5eef8}.usage-metrics-dashboard__header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px}.usage-metrics-dashboard__header-actions{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.usage-metrics-dashboard__eyebrow{margin:0 0 6px;font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:#7dd3fc}.usage-metrics-dashboard__header h1{margin:0;font-size:2rem;color:#f6fbff}.usage-metrics-dashboard__subtitle{margin:8px 0 0;color:#9fb2cb}.usage-metrics-dashboard__back-link{color:#9cc2ff;text-decoration:none;font-weight:600}.usage-metrics-dashboard__range{display:grid;gap:6px;font-size:.82rem;color:#9fb2cb}.usage-metrics-dashboard__range select{background:#101827;border:1px solid #223046;color:#e5eef8;border-radius:10px;padding:10px 12px;font:inherit}.usage-metrics-dashboard__cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:20px}.usage-metrics-dashboard__card,.usage-metrics-dashboard__panel,.usage-metrics-dashboard__state{background:#101827;border:1px solid #223046;border-radius:12px}.usage-metrics-dashboard__card{padding:16px;display:grid;gap:8px}.usage-metrics-dashboard__card span,.usage-metrics-dashboard__card small{color:#9fb2cb}.usage-metrics-dashboard__card strong{font-size:1.8rem;color:#f8fbff}.usage-metrics-dashboard__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:16px}.usage-metrics-dashboard__panel{padding:16px}.usage-metrics-dashboard__panel h2{margin:0 0 12px;font-size:1rem;color:#f3f7ff}.usage-metrics-dashboard__weekly-panel{margin-bottom:16px}.usage-metrics-dashboard__weekly-note{margin:-4px 0 14px;color:#9fb2cb;font-size:.85rem}.usage-metrics-dashboard__weekly-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.usage-metrics-dashboard__weekly-grid div{display:grid;gap:6px;padding:12px;background:#0b1220;border:1px solid #1d293d;border-radius:10px}.usage-metrics-dashboard__weekly-grid span{color:#9fb2cb;font-size:.78rem}.usage-metrics-dashboard__weekly-grid strong{color:#f8fbff;font-size:1.2rem}.usage-metrics-dashboard__notes{margin:0;padding-left:18px;color:#b8cae2;line-height:1.5}.usage-metrics-dashboard__notes li+li{margin-top:8px}.usage-metrics-dashboard__mode-mix{margin-bottom:16px}.usage-metrics-dashboard__mode-mix-bar{display:flex;height:18px;overflow:hidden;background:#1d293d;border-radius:999px;box-shadow:0 0 0 1px #94a3b824}.usage-metrics-dashboard__mode-mix-segment{min-width:0}.usage-metrics-dashboard__mode-mix-list{display:grid;gap:10px;margin-top:14px}.usage-metrics-dashboard__mode-mix-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:center}.usage-metrics-dashboard__mode-mix-label{display:inline-flex;align-items:center;gap:8px;color:#d8e5f5;min-width:0}.usage-metrics-dashboard__mode-mix-item strong{color:#f8fbff;font-size:.95rem}.usage-metrics-dashboard__mode-mix-item small{grid-column:1 / -1;color:#9fb2cb}.usage-metrics-dashboard__daily-chart{margin-bottom:18px}.usage-metrics-dashboard__daily-chart-legend{display:flex;flex-wrap:wrap;gap:10px 16px;margin-bottom:14px;color:#9fb2cb;font-size:.82rem}.usage-metrics-dashboard__daily-chart-legend span{display:inline-flex;align-items:center;gap:6px}.usage-metrics-dashboard__legend-dot{width:10px;height:10px;border-radius:999px}.usage-metrics-dashboard__legend-dot--user{background:#38bdf8}.usage-metrics-dashboard__legend-dot--assistant{background:#8b5cf6}.usage-metrics-dashboard__daily-bars{display:grid;grid-auto-columns:minmax(52px,1fr);grid-auto-flow:column;gap:10px;min-height:260px;overflow-x:auto;padding:4px 2px 10px}.usage-metrics-dashboard__daily-bar-group{display:grid;grid-template-rows:auto 180px auto auto;gap:8px;min-width:52px;text-align:center}.usage-metrics-dashboard__daily-total,.usage-metrics-dashboard__daily-date,.usage-metrics-dashboard__daily-conversations,.usage-metrics-dashboard__empty{color:#9fb2cb;font-size:.78rem}.usage-metrics-dashboard__daily-bar-track{display:flex;align-items:flex-end;justify-content:center;height:180px;border-bottom:1px solid #2a3a53}.usage-metrics-dashboard__daily-bar{display:flex;flex-direction:column;justify-content:flex-end;width:min(32px,70%);overflow:hidden;background:#1d293d;border-radius:8px 8px 3px 3px;box-shadow:0 0 0 1px #94a3b824}.usage-metrics-dashboard__daily-segment{display:block;min-height:0}.usage-metrics-dashboard__daily-segment--user{background:linear-gradient(180deg,#7dd3fc,#38bdf8)}.usage-metrics-dashboard__daily-segment--assistant{background:linear-gradient(180deg,#a78bfa,#7c3aed)}.usage-metrics-dashboard__daily-conversations{color:#7dd3fc}.usage-metrics-dashboard__empty{margin-bottom:16px}.usage-metrics-dashboard__table{width:100%;border-collapse:collapse}.usage-metrics-dashboard__table th,.usage-metrics-dashboard__table td{padding:10px 0;text-align:left;border-bottom:1px solid #1d293d;vertical-align:top}.usage-metrics-dashboard__table th{color:#b8cae2;font-size:.82rem;text-transform:uppercase;letter-spacing:.04em}.usage-metrics-dashboard__state{padding:18px;color:#b8cae2}.usage-metrics-dashboard__state--error{color:#fecaca;border-color:#dc262666}.usage-weekly-stats__cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.usage-weekly-stats__delta--up{color:#86efac!important}.usage-weekly-stats__delta--down{color:#fca5a5!important}.usage-weekly-stats__trend-panel{margin-bottom:16px}.usage-weekly-stats__chart{display:grid;grid-auto-columns:minmax(70px,1fr);grid-auto-flow:column;gap:12px;min-height:280px;overflow-x:auto;padding:4px 2px 12px}.usage-weekly-stats__bar-group{display:grid;grid-template-rows:auto 200px auto;gap:8px;min-width:70px;text-align:center}.usage-weekly-stats__bar-total,.usage-weekly-stats__bar-label{color:#9fb2cb;font-size:.78rem}.usage-weekly-stats__bar-track{display:flex;align-items:flex-end;justify-content:center;height:200px;border-bottom:1px solid #2a3a53}.usage-weekly-stats__bar{display:flex;flex-direction:column;justify-content:flex-end;width:min(40px,72%);overflow:hidden;background:#1d293d;border-radius:8px 8px 3px 3px;box-shadow:0 0 0 1px #94a3b824}.usage-weekly-stats__bar--total{background:linear-gradient(180deg,#7dd3fc,#2563eb)}.usage-weekly-stats__mode-legend{display:flex;flex-wrap:wrap;gap:10px 16px;margin-bottom:16px;color:#9fb2cb;font-size:.82rem}.usage-weekly-stats__mode-legend span{display:inline-flex;align-items:center;gap:6px}.usage-weekly-stats__mode-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.usage-weekly-stats__mode-week{display:grid;gap:8px;padding:12px;background:#0b1220;border:1px solid #1d293d;border-radius:10px}.usage-weekly-stats__mode-week strong{color:#f8fbff;font-size:.95rem}.usage-weekly-stats__mode-week small{color:#9fb2cb}.usage-weekly-stats__mode-bar{display:flex;height:16px;overflow:hidden;background:#1d293d;border-radius:999px;box-shadow:0 0 0 1px #94a3b824}.usage-weekly-stats__mode-bar span{min-width:0}@media (max-width: 960px){.usage-metrics-dashboard__header,.usage-metrics-dashboard__grid{grid-template-columns:1fr;flex-direction:column}.usage-metrics-dashboard__cards,.usage-weekly-stats__cards,.usage-weekly-stats__mode-grid,.usage-metrics-dashboard__weekly-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 640px){.usage-metrics-dashboard__cards,.usage-weekly-stats__cards,.usage-weekly-stats__mode-grid,.usage-metrics-dashboard__weekly-grid{grid-template-columns:1fr}}.user-management__table{min-width:980px}.user-management__sort{display:inline-flex;align-items:center;gap:6px;padding:0;border:0;background:transparent;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer}.user-management__sort span{font-size:.75rem;opacity:.45}.user-management__sort--active span{opacity:1;color:#e5eef8}.user-management__status{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;font-size:.85rem;font-weight:700}.user-management__status--active{background:#16a34a26;color:#86efac}.user-management__status--inactive{background:#dc262629;color:#fca5a5}.user-management__actions{display:flex;flex-wrap:wrap;gap:8px}.user-management__button{background:#101827;border:1px solid #223046;color:#e5eef8;border-radius:8px;padding:7px 12px;font:inherit;cursor:pointer}.user-management__button:hover:not(:disabled){background:#182338}.user-management__button:disabled{opacity:.5;cursor:not-allowed}.user-management__button--primary{background:#0056b3;border-color:#0056b3}.user-management__button--primary:hover:not(:disabled){background:#004494}.user-management__button--danger{border-color:#dc262673;color:#fca5a5}.user-management__overlay{position:fixed;inset:0;background:#0000008c;display:flex;align-items:center;justify-content:center;z-index:1200;padding:16px}.user-management__dialog{width:min(460px,100%);background:#101827;border:1px solid #223046;border-radius:14px;padding:20px;color:#e5eef8;display:grid;gap:14px}.user-management__dialog h2{margin:0;font-size:1.2rem;color:#f6fbff}.user-management__field{display:grid;gap:6px}.user-management__field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.user-management__field span{font-size:.85rem;color:#9fb2cb}.user-management__field input,.user-management__field select{background:#0e1521;border:1px solid #223046;color:#e5eef8;border-radius:10px;padding:10px 12px;font:inherit}.user-management__hint,.user-management__dialog-error{margin:0;font-size:.9rem}.user-management__hint{color:#9fb2cb}.user-management__dialog-error{color:#fecaca}.user-management__dialog-actions{display:flex;justify-content:flex-end;gap:8px}.admin-mail__layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.9fr);gap:20px;align-items:start}.admin-mail__layout--editor{grid-template-columns:minmax(320px,.95fr) minmax(0,1.15fr)}.admin-mail__fields{display:grid;gap:10px;max-height:640px;overflow:auto;padding-right:4px}.admin-mail__field{display:grid;gap:6px}.admin-mail__field span{font-size:.8rem;color:#9fb2cb}.admin-mail__field input,.admin-mail__field textarea{background:#0b1220;border:1px solid #223046;color:#e5eef8;border-radius:10px;padding:10px 12px;font:inherit;width:100%;box-sizing:border-box;resize:vertical}.admin-mail__recipients-panel{margin-top:20px}.admin-mail__panel{background:#101827;border:1px solid #223046;border-radius:12px;padding:16px;display:grid;gap:12px}.admin-mail__label{font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;color:#8fb4ff}.admin-mail__panel select,.admin-mail__filters input,.admin-mail__filters select{background:#0b1220;border:1px solid #223046;color:#e5eef8;border-radius:10px;padding:10px 12px;font:inherit}.admin-mail__preview-meta{display:flex;justify-content:space-between;gap:12px;color:#e5eef8}.admin-mail__preview{width:100%;min-height:640px;border:1px solid #223046;border-radius:10px;background:#fff}.admin-mail__filters{grid-template-columns:minmax(0,1fr) 140px;margin-bottom:0}.admin-mail__count{margin:0;color:#9fb2cb}.admin-mail__recipients{max-height:360px;overflow:auto;display:grid;gap:6px}.admin-mail__recipient{display:flex;gap:10px;align-items:flex-start;color:#e5eef8;font-size:.95rem}.admin-mail__recipient small{display:block;color:#9fb2cb}.admin-mail__send{margin-top:8px}.admin-mail__result{display:grid;gap:4px;color:#c5d4e8;font-size:.9rem}@media (max-width: 980px){.admin-mail__layout{grid-template-columns:1fr}}.report-admin{width:min(1400px,100%);margin:0 auto;padding:8px 8px 24px;color:#e5eef8}.report-admin__header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px}.report-admin__eyebrow{margin:0 0 6px;font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:#7dd3fc}.report-admin__header h1{margin:0;font-size:2rem;color:#f6fbff}.report-admin__subtitle{margin:8px 0 0;color:#9fb2cb}.report-admin__range{display:grid;gap:6px;font-size:.82rem;color:#9fb2cb}.report-admin__range select{background:#101827;border:1px solid #223046;color:#e5eef8;border-radius:10px;padding:10px 12px;font:inherit}.report-admin__cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:20px}.report-admin__card,.report-admin__panel,.report-admin__state{background:#101827;border:1px solid #223046;border-radius:12px}.report-admin__card{padding:16px;display:grid;gap:8px}.report-admin__card span,.report-admin__card small{color:#9fb2cb}.report-admin__card strong{font-size:1.8rem;color:#f8fbff}.report-admin__panel{padding:16px;margin-bottom:16px}.report-admin__panel h2{margin:0 0 12px;font-size:1rem;color:#f3f7ff}.report-admin__empty{margin:0;color:#9fb2cb}.report-admin__table-wrap{overflow-x:auto}.report-admin__table{width:100%;border-collapse:collapse}.report-admin__table th,.report-admin__table td{padding:10px 8px;text-align:left;border-bottom:1px solid #1d293d;vertical-align:top}.report-admin__table th{color:#b8cae2;font-size:.82rem;text-transform:uppercase;letter-spacing:.04em}.report-admin__state{padding:18px;color:#b8cae2}.report-admin__state--error{color:#fecaca;border-color:#dc262666}@media (max-width: 1100px){.report-admin__cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 700px){.report-admin__header{flex-direction:column}.report-admin__cards{grid-template-columns:1fr}}.slide-studio{position:relative;flex:1;display:grid;grid-template-columns:var(--studio-left, 300px) 12px minmax(0,1fr) 12px var(--studio-right, 280px);grid-template-rows:minmax(0,1fr) auto;column-gap:0;row-gap:12px;min-height:0;width:100%;height:100%;padding:12px;overflow:hidden;background:#121620;color:#e7edf7}.slide-studio-close{position:absolute;top:8px;right:8px;z-index:3;width:36px;height:36px;padding:0;border:none;border-radius:8px;background:#171d28;color:#c5d3e7;font-size:28px;line-height:1;cursor:pointer}.slide-studio-close:hover{background:#243044;color:#f3f7ff}.slide-studio-source,.slide-studio-iterate,.slide-studio-canvas{background:#171d28;border:1px solid #2e3a4a;border-radius:10px;padding:14px;min-width:0;min-height:0}.slide-studio-source,.slide-studio-iterate{overflow-x:hidden;overflow-y:auto}.slide-studio-source,.slide-studio-iterate{display:flex;flex-direction:column;gap:10px}.slide-studio-iterate h3{padding-right:32px}.slide-studio-gutter{position:relative;width:12px;min-width:12px;cursor:col-resize;touch-action:none;align-self:stretch}.slide-studio-gutter:before{content:"";position:absolute;top:18%;bottom:18%;left:4px;width:4px;border-radius:999px;background:#3b4b61}.slide-studio-gutter:hover:before,.slide-studio-gutter:focus-visible:before,.slide-studio.is-resizing .slide-studio-gutter:before{background:#4d8ef0}.slide-studio-gutter:focus-visible{outline:none}.slide-studio-gutter-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.slide-studio.is-resizing,.slide-studio.is-resizing *{cursor:col-resize!important;-webkit-user-select:none;user-select:none}.slide-studio.is-resizing .slide-studio-source,.slide-studio.is-resizing .slide-studio-canvas,.slide-studio.is-resizing .slide-studio-iterate,.slide-studio.is-resizing .slide-studio-jobs{pointer-events:none}.slide-studio-modes{display:flex;flex-direction:column;gap:6px}.slide-studio-mode{text-align:left;background:#121a28;color:#d5e2f2;border:1px solid #2e3a4a;border-radius:8px;padding:8px 10px;cursor:pointer;white-space:normal}.slide-studio-mode.is-active{border-color:#4d8ef0;background:#1a2740;color:#f3f7ff}.slide-studio-mode:disabled{opacity:.45;cursor:not-allowed}.slide-studio-families{display:flex;flex-direction:column;gap:4px}.slide-studio-families-label{font-size:12px;color:#8ea0b8}.slide-studio-family{display:flex;flex-direction:column;align-items:flex-start;gap:1px;text-align:left;white-space:normal;background:transparent;color:#d5e2f2;border:1px solid transparent;border-radius:8px;padding:6px 8px;cursor:pointer}.slide-studio-family-meta{font-size:11px;line-height:1.3;color:#8ea0b8}.slide-studio-family.is-active{border-color:#4d8ef0;background:#1a2740;color:#f3f7ff}.slide-studio-family.is-suggested:not(.is-active) .slide-studio-family-meta{color:#b9cceb}.slide-studio-family-tip{display:none}.slide-studio-tip{position:fixed;z-index:30;transform:translateY(calc(-100% - 8px));max-width:360px;padding:8px 10px;border:1px solid #3a4a62;border-radius:8px;background:#0e1520;color:#e7edf7;font-size:15px;line-height:1.45;text-align:left;pointer-events:none;box-shadow:0 8px 24px #00000059}.slide-studio-tip span{display:block}.slide-studio-family:disabled{opacity:.45;cursor:not-allowed}.slide-studio-overlay{position:absolute;inset:0;z-index:6;display:flex;align-items:center;justify-content:center;background:#080c12b8}.slide-studio-overlay-card{width:min(720px,calc(100% - 48px));max-height:calc(100% - 48px);overflow:auto;display:flex;flex-direction:column;gap:8px;padding:16px;border:1px solid #2e3a4a;border-radius:12px;background:#171d28}.slide-studio-overlay-card.is-wide{width:calc(100% - 48px)}.slide-studio-overlay-head{display:flex;align-items:center;justify-content:space-between}.slide-studio-overlay-head h3{margin:0}.slide-studio-overlay-lead{margin:0;color:#b7c6da;font-size:13px;line-height:1.4}.slide-studio-overlay-back{align-self:flex-start;background:transparent;border:none;color:#9eb4d0;padding:0;cursor:pointer}.slide-studio-overlay-close{background:transparent;border:none;color:#c5d3e7;font-size:24px;line-height:1;cursor:pointer}.slide-studio-overlay-family{display:flex;flex-direction:column;gap:6px}.slide-studio-style-picks{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.slide-studio-style-pick{background:#121a28;color:#d5e2f2;border:1px solid #2e3a4a;border-radius:999px;padding:4px 10px;cursor:pointer}.slide-studio-style-pick.is-active{border-color:#4d8ef0;background:#1a2740;color:#f3f7ff}.slide-studio-style-pick:disabled{opacity:.45;cursor:not-allowed}.slide-studio-posture{margin:0;padding:8px 10px;border-left:3px solid #4d8ef0;background:#121a28;color:#e7edf7}.slide-studio-plans{display:flex;flex-direction:column;gap:12px;flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;padding-right:4px;scrollbar-color:#3b4b61 transparent}.slide-studio-plan{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid #2e3a4a;border-radius:8px;background:#121a28}.slide-studio-plan p{margin:0;font-size:.95rem;line-height:1.5;color:#e7edf7}.slide-studio-plan .slide-studio-help{font-size:.88rem;line-height:1.45;color:#c5d3e7}.slide-studio-plan.is-recommended{border-color:#4d8ef0}.slide-studio-plan.is-alternative{background:#101722}.slide-studio-plan-strip{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.slide-studio-plan-chip{max-width:100%;padding:6px 10px;border:1px solid #2e3a4a;border-radius:999px;background:#121a28;color:#d5e2f2;text-align:left;cursor:pointer}.slide-studio-empty.is-drag,.slide-studio-source.is-drag{outline:2px dashed #4d8ef0;outline-offset:-8px}.slide-studio-check,.slide-studio-evidence{margin:0;padding:0;list-style:none;display:grid;gap:8px}.slide-studio-check li{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;color:#e7c9a4;font-size:.85rem}.slide-studio-evidence li{font-size:.82rem;color:#c5d3e7;line-height:1.4}.slide-studio-table{width:100%;border-collapse:collapse;font-size:.78rem}.slide-studio-table caption{text-align:left;margin-bottom:4px;color:#c5d3e7}.slide-studio-table th,.slide-studio-table td{border-bottom:1px solid #2e3a4a;padding:4px 6px;text-align:left}.slide-studio-plan input{width:100%;margin-top:4px}.slide-studio-handoff h4{margin:0}.slide-studio-draft-text{width:100%;box-sizing:border-box;margin:0;padding:10px;border:1px solid #2e3a4a;border-radius:8px;background:#121a28;color:#d5e2f2;font-family:inherit;font-size:13px;font-weight:400;font-style:normal;line-height:1.45;white-space:pre-wrap;overflow:auto;resize:none;max-height:280px;min-height:120px}.slide-studio-draft-text.is-overlay{max-height:none;height:min(70vh,720px)}.slide-studio-source-header,.slide-studio-selected-meta,.slide-studio-hero-actions,.slide-studio-source-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}.slide-studio h2,.slide-studio h3,.slide-studio h4{margin:0;color:#f3f7ff}.slide-studio label{display:grid;gap:6px;min-width:0;font-size:.85rem;color:#c5d3e7}.slide-studio textarea,.slide-studio select,.slide-studio input[type=file]{width:100%;max-width:100%;background:#0f141c;color:#e7edf7;border:1px solid #2e3a4a;border-radius:6px;padding:8px}.slide-studio textarea{min-height:72px;resize:vertical}.slide-studio-help,.slide-studio-notice{margin:0;font-size:.82rem;color:#9aadc4;line-height:1.4}.slide-studio-error{margin:0;color:#f0a0a8;font-size:.85rem}.slide-studio-notice{color:#9ad0b4}.slide-studio-secondary{background:#2a3a4f}.slide-studio-secondary:hover{background:#354860}.slide-studio-source-image,.slide-studio-card-image{width:100%;display:block;object-fit:contain;background:#0b1018;border:1px solid #2d3a4d;border-radius:6px}.slide-studio-source-image{max-height:120px}.slide-studio-toggles{display:grid;gap:8px}.slide-studio label.slide-studio-toggle{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:start;margin:0;padding:10px 12px;background:#101722;border:1px solid #2e3a4a;border-radius:10px;cursor:pointer}.slide-studio label.slide-studio-toggle.is-on{border-color:#4d8ef0;background:#152033}.slide-studio label.slide-studio-toggle.is-disabled{opacity:.55;cursor:not-allowed}.slide-studio-toggle input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}.slide-studio-toggle-switch{width:36px;height:20px;margin-top:1px;border-radius:999px;background:#2a3648;position:relative;flex-shrink:0;pointer-events:none;transition:background-color .15s ease}.slide-studio-toggle.is-on .slide-studio-toggle-switch{background:#4d8ef0}.slide-studio-toggle-switch:after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#e7edf7;transition:transform .15s ease}.slide-studio-toggle.is-on .slide-studio-toggle-switch:after{transform:translate(16px)}.slide-studio-toggle-text{display:grid;gap:3px;min-width:0}.slide-studio-toggle-title{font-size:.85rem;font-weight:600;color:#f3f7ff}.slide-studio-toggle-copy{font-size:.75rem;line-height:1.35;color:#9aadc4}.slide-studio-canvas{display:flex;flex-direction:column;gap:10px;overflow:hidden}.slide-studio-empty{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:auto;text-align:center;color:#9aadc4}.slide-studio-loader{position:relative;width:min(100%,720px);aspect-ratio:16 / 9;margin:0 auto 16px;padding:28px 32px;box-sizing:border-box;border:1px solid #2e3a4a;border-radius:8px;background:#101722;overflow:hidden;display:flex;flex-direction:column;gap:18px}.slide-studio-loader-title,.slide-studio-loader-row span{display:block;border-radius:4px;background:#1a2330;animation:slide-studio-build 1.8s ease-in-out infinite}.slide-studio-loader-title{width:46%;height:18px}.slide-studio-loader-row{flex:1;display:grid;grid-template-columns:1.2fr 1fr .8fr;gap:14px;min-height:0}.slide-studio-loader-row span{height:100%;animation-delay:.15s}.slide-studio-loader-row span:nth-child(2){animation-delay:.35s}.slide-studio-loader-row span:nth-child(3){animation-delay:.55s}.slide-studio-loader-sweep{position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,rgba(77,142,240,.18) 50%,transparent 70%);transform:translate(-100%);animation:slide-studio-sweep 1.8s ease-in-out infinite}.slide-studio-loader-copy{width:min(560px,100%);margin-top:16px;text-align:left}.slide-studio-loader-status{margin:0 0 8px;color:#d5e2f2;font-size:15px}.slide-studio-loader-family{margin:0 0 4px;color:#f3f7ff;font-size:18px;font-weight:650}.slide-studio-loader-reason{margin:0 0 12px;color:#c5d4e8;font-size:15px;line-height:1.45}.slide-studio-loader-styles{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px}.slide-studio-loader-styles li{color:#9aadc4;font-size:14px;line-height:1.4}.slide-studio-loader-styles strong{display:block;color:#d5e2f2;font-size:15px}.slide-studio-loader-styles .is-drawing strong{color:#8eb6ff}@keyframes slide-studio-build{0%,to{opacity:.45}50%{opacity:1}}@keyframes slide-studio-sweep{0%{transform:translate(-100%)}to{transform:translate(100%)}}.slide-studio-frame{width:min(100%,720px);max-height:70%;aspect-ratio:16 / 9;margin:0 auto 12px;border:1px dashed #3b4b61;border-radius:8px;display:flex;align-items:center;justify-content:center;color:#6f8299;font-weight:600}.slide-studio-gallery{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;display:flex;flex-direction:column;gap:12px}.slide-studio-gallery .slide-studio-card{flex:0 0 auto;width:100%}.slide-studio-options{display:flex;gap:10px;flex:0 0 auto;min-height:0;overflow-x:auto;overflow-y:hidden}.slide-studio-card{display:grid;gap:6px;flex:0 0 168px;width:168px;text-align:left;background:#101722;border:1px solid #2e3a4a;border-radius:8px;color:inherit;cursor:pointer;padding:8px}.slide-studio-card.is-selected{border-color:#4d8ef0;box-shadow:0 0 0 1px #4d8ef0}.slide-studio-card-label{font-size:.78rem;color:#b8c7dc}.slide-studio-skeleton{aspect-ratio:16 / 9;border-radius:6px;background:linear-gradient(90deg,#1a2330 25%,#243044,#1a2330 75%);background-size:200% 100%;animation:slide-studio-pulse 1.2s ease-in-out infinite}@keyframes slide-studio-pulse{0%{background-position:100% 0}to{background-position:-100% 0}}.slide-studio-selected{flex:1;min-height:0;display:flex;flex-direction:column;gap:8px}.slide-studio-selected-meta,.slide-studio-hero-actions{flex-shrink:0}.slide-studio-selected>.slide-studio-skeleton{flex:1 1 auto;width:100%;height:auto;min-height:180px;aspect-ratio:16 / 9}.slide-studio-selected .authenticated-image-wrapper{flex:1 1 auto;height:0;min-height:0;width:100%;display:flex;align-items:center;justify-content:center;background:#0b1018;border:1px solid #2d3a4d;border-radius:6px;overflow:hidden}.slide-studio-hero{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block}.slide-studio-chips{display:flex;flex-wrap:wrap;gap:6px}.slide-studio-chip{background:#1f2b3c;color:#dbe6f7;border:1px solid #3b4b61;border-radius:999px;padding:6px 10px;cursor:pointer;font-size:.78rem}.slide-studio-chip.is-active{background:#0056b3;border-color:#4d8ef0}.slide-studio-lineage{display:grid;gap:6px}.slide-studio-lineage-item,.slide-studio-job{background:#101722;color:inherit;border:1px solid #2e3a4a;border-radius:6px;text-align:left;cursor:pointer;padding:8px}.slide-studio-lineage-item.is-selected,.slide-studio-job.is-selected{border-color:#4d8ef0}.slide-studio-jobs{grid-column:1 / -1;display:flex;gap:8px;min-height:0;overflow-x:auto;overflow-y:hidden;padding-top:4px}.slide-studio-job{flex:0 0 260px;width:260px;min-width:260px;white-space:normal;display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;align-items:center}.slide-studio-job-title{font-size:12px;line-height:1.25;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}.slide-studio-job-thumb{width:72px;height:40px;object-fit:cover;border-radius:4px;background:#0b1018}.slide-studio-job-thumb.is-empty{display:block}.slide-studio .authenticated-image-wrapper{width:100%}@media (max-width: 800px){.main-content:has(.slide-studio){overflow:auto}.slide-studio{grid-template-columns:1fr;grid-template-rows:auto;height:auto;overflow:visible;row-gap:12px}.slide-studio-gutter{display:none}.slide-studio-jobs{grid-column:auto}}:root{--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--primary-color: #4CAF50;--primary-color-dark: #45a049;--primary-color-light: #e8f5e9;--primary-color-rgb: 76, 175, 80;--secondary-color: #007bff;--secondary-color-dark: #0056b3;--background-color-dark: #1a2b3c;--background-color-medium: #2a3f54;--background-color-light: #f8f9fa;--background-color-content: #ffffff;--background-color-input: #ffffff;--text-color-primary: #1a2b3c;--text-color-secondary: #333333;--text-color-muted: #666666;--text-color-light: #ffffff;--text-color-link: #0066cc;--border-color: #dee2e6;--border-color-light: #e9ecef;--border-color-dark: #ced4da;--error-color: #dc3545;--error-background: #f8d7da;--error-border: #f5c6cb;--success-color: #28a745;--success-color-dark: #218838;--success-background: #d4edda;--success-border: #c3e6cb;--danger-color: #dc3545;--danger-color-dark: #c82333;--danger-background: #f8d7da;--danger-border: #f5c6cb;--danger-color-light: #f5acb2;--space-xs: 4px;--space-sm: 8px;--space-md: 16px;--space-lg: 24px;--space-xl: 32px;--border-radius-sm: 4px;--border-radius-md: 8px;--border-radius-lg: 12px;--font-size-sm: .75rem;--font-size-md: .9rem;--font-size-lg: 1.15rem;--font-size-xl: 1.3rem}*{box-sizing:border-box;margin:0;padding:0;font-family:var(--font-family)}body{margin:0;padding:0;background-color:var(--background-color-medium);height:100vh;height:100dvh;overflow:hidden}input,select{color:var(--text-color-secondary);background:var(--background-color-content);border:1px solid var(--border-color-dark);border-radius:var(--border-radius-sm);padding:var(--space-sm);font-size:var(--font-size-md)}select.select-input{width:100%;padding:var(--space-sm);border:1px solid var(--border-color);border-radius:var(--border-radius-sm);background-color:var(--background-color-content);font-size:var(--font-size-md);cursor:pointer;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 var(--space-sm) center;background-size:16px;padding-right:var(--space-xl)}select.select-input:hover{border-color:var(--primary-color)}select.select-input:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 2px rgba(var(--primary-color-rgb),.2)}select.select-input option{padding:var(--space-sm);font-size:var(--font-size-md)}label{color:var(--text-color-secondary);font-weight:500;font-size:var(--font-size-md);display:block;margin-bottom:var(--space-xs)}.checkbox-group{display:flex;align-items:center;gap:var(--space-sm);color:var(--text-color-secondary)}.checkbox-group label{margin:0;font-weight:400}.checkbox-group input[type=checkbox]{margin:0}button{font-family:var(--font-family);cursor:pointer;padding:var(--space-sm) var(--space-md);border-radius:var(--border-radius-sm);border:1px solid transparent;font-size:var(--font-size-md);transition:background-color .2s ease,border-color .2s ease,color .2s ease;white-space:nowrap}button:disabled{cursor:not-allowed;opacity:.65}button.btn-primary{background-color:var(--primary-color);color:var(--text-color-light);border-color:var(--primary-color)}button.btn-primary:hover:not(:disabled){background-color:var(--primary-color-dark);border-color:var(--primary-color-dark)}button.btn-secondary{background-color:var(--secondary-color);color:var(--text-color-light);border-color:var(--secondary-color)}button.btn-secondary:hover:not(:disabled){background-color:var(--secondary-color-dark);border-color:var(--secondary-color-dark)}button.btn-default{background-color:var(--background-color-content);color:var(--text-color-secondary);border-color:var(--border-color-dark)}button.btn-default:hover:not(:disabled){background-color:var(--border-color-light)}.container-title{color:var(--text-color-primary);font-size:var(--font-size-lg);font-weight:600;border-bottom:1px solid var(--text-color-primary);padding-bottom:6px;margin-bottom:var(--space-md);width:100%}.status-message{display:flex;justify-content:center;align-items:center;min-height:60px;width:100%;text-align:center;padding:var(--space-lg);background:var(--background-color-light);border:1px solid var(--border-color);border-radius:var(--border-radius-md);margin:var(--space-lg) 0}.loading{color:var(--secondary-color-dark);border-color:var(--border-color)}.error{color:var(--error-color);background:var(--error-background);border-color:var(--error-border)}.no-data{color:var(--text-color-muted);background:var(--background-color-light);border-color:var(--border-color)}#root{width:100%;height:100%}.app-container{display:flex;flex-direction:column;height:100%}.main-content{padding-top:60px;flex-grow:1;overflow-y:auto;display:flex;flex-direction:column;margin:10px}.main-content:has(.slide-studio){margin:0;overflow:hidden}@media (max-width: 768px){.main-content{padding-top:48px}}@media (max-width: 480px){.main-content{padding-top:44px}}
