:root{--bg-app:#070a13;--bg-header:#0d111d;--bg-card:#161d31b3;--border-color:#ffffff12;--border-focus:#6366f1;--primary:#4f46e5;--primary-gradient:linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);--secondary:#0ea5e9;--success:#2dd4bf;--danger:#ef4444;--spark:#a855f7;--text-primary:#f3f4f6;--text-secondary:#9ca3af;--text-muted:#6b7280;--font-heading:"Outfit", sans-serif;--font-body:"Inter", sans-serif;--radius-sm:8px;--radius-md:12px;--radius-lg:16px;--shadow-md:0 8px 24px -4px #0000004d, 0 4px 12px -2px #00000026;--transition-fast:.2s cubic-bezier(.4, 0, .2, 1);--transition-normal:.3s cubic-bezier(.4, 0, .2, 1);--bg-gradient-start:#0d1426;--bg-gradient-end:#070a13;--card-bg:#161d31b3;--bg-secondary:#0d122099}body.light-mode{--bg-app:#f4f6fa;--bg-header:#fff;--bg-card:#fff;--border-color:#0000000f;--border-focus:#0ea5e9;--primary:#0284c7;--primary-gradient:linear-gradient(135deg, #60a5fa 0%, #a855f7 100%);--secondary:#0ea5e9;--success:#0d9488;--spark:#8b5cf6;--text-primary:#0f172a;--text-secondary:#475569;--text-muted:#64748b;--bg-gradient-start:#f8fafc;--bg-gradient-end:#e2e8f0;--card-bg:#fff;--bg-secondary:#f1f5f9}body.light-mode.theme-light-clinical{--bg-app:#f4f6fa;--bg-header:#fff;--bg-card:#fff;--border-color:#0000000f;--border-focus:#0ea5e9;--primary:#0284c7;--primary-gradient:linear-gradient(135deg, #60a5fa 0%, #a855f7 100%);--secondary:#0ea5e9;--success:#0d9488;--spark:#8b5cf6;--text-primary:#0f172a;--text-secondary:#475569;--text-muted:#64748b;--bg-gradient-start:#f8fafc;--bg-gradient-end:#e2e8f0}body.light-mode.theme-light-arctic-cream{--bg-app:#fffdf9;--bg-header:#fefcf6;--bg-card:#fffdf9cc;--border-color:#5e9e8c1f;--border-focus:#5e9e8c;--primary:#5e9e8c;--primary-gradient:linear-gradient(135deg, #7bbdac 0%, #4a8c7a 100%);--secondary:#9b8db0;--success:#4a9b7a;--danger:#c0665a;--spark:#f2c97a;--text-primary:#1e1a16;--text-secondary:#6b5a4a;--text-muted:#9c8e7e;--bg-gradient-start:#fffdf9;--bg-gradient-end:#f4efe4;--shadow-md:0 4px 24px #5e9e8c1a, 0 1px 4px #1e1a160f;--glass-bg:#fffdf9b8;--glass-border:#ede8dfe6}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;margin:0;padding:0}body{background:var(--bg-app);background:radial-gradient(circle at 10% 20%, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 90%);color:var(--text-primary);font-family:var(--font-body);min-height:100vh;transition:background-color var(--transition-normal), color var(--transition-normal);justify-content:center;display:flex;position:relative;overflow-x:hidden}body:before{content:"";z-index:-2;filter:blur(80px);pointer-events:none;background:radial-gradient(circle,#85c2260a 0%,#0000 70%);width:60%;height:60%;position:fixed;top:-20%;left:-20%}body.light-mode:before{background:radial-gradient(circle,#85c22617 0%,#0000 70%)}body:after{content:"";z-index:-2;filter:blur(80px);pointer-events:none;background:radial-gradient(circle,#4c1e6f0f 0%,#0000 70%);width:60%;height:60%;position:fixed;bottom:-20%;right:-20%}body.light-mode:after{background:radial-gradient(circle,#4c1e6f1f 0%,#0000 70%)}body.light-mode.theme-light-arctic-cream:before{background:radial-gradient(circle,#5e9e8c14 0%,#0000 70%)}body.light-mode.theme-light-arctic-cream:after{background:radial-gradient(circle,#f2c97a1a 0%,#0000 70%)}body.light-mode.theme-light-arctic-cream .workspace-card{-webkit-backdrop-filter:blur(16px)saturate(160%);background:#fffdf9bf;border:1px solid #ede8dfe6;box-shadow:0 4px 24px #5e9e8c1a,0 1px 4px #1e1a160f,inset 0 1px #fffc}body.light-mode.theme-light-arctic-cream .workspace-card:hover{border-color:#5e9e8c47;transform:translateY(-2px);box-shadow:0 8px 32px #5e9e8c26,0 2px 8px #1e1a160f,inset 0 1px #ffffffe6}body.light-mode.theme-light-arctic-cream .nav-item.active{color:#4a8c7a;background:#5e9e8c1f;border-left:3px solid #5e9e8c}body.light-mode.theme-light-arctic-cream .btn-primary-mobile,body.light-mode.theme-light-arctic-cream .btn-action-round.primary{background:linear-gradient(135deg,#7bbdac 0%,#4a8c7a 100%);box-shadow:0 4px 16px #5e9e8c59}body.light-mode.theme-light-arctic-cream .btn-primary-mobile:hover,body.light-mode.theme-light-arctic-cream .btn-action-round.primary:hover{box-shadow:0 6px 20px #5e9e8c80}body.light-mode.theme-light-arctic-cream .badge.bg-spark{color:#3a2800;background:linear-gradient(135deg,#f2c97a,#e8a84a);box-shadow:0 2px 8px #f2c97a4d}body.light-mode.theme-light-arctic-cream input:focus,body.light-mode.theme-light-arctic-cream textarea:focus,body.light-mode.theme-light-arctic-cream select:focus{box-shadow:0 0 0 3px #5e9e8c26;border-color:#5e9e8c!important}.app-main-wrapper{background-color:var(--bg-app);width:100%;max-width:100%;min-height:100vh;transition:var(--transition-normal);flex-direction:column;display:flex;position:relative}.app-header{border-bottom:1px solid var(--border-color);z-index:100;justify-content:space-between;align-items:center;padding:16px 20px;display:flex;position:sticky;top:0}body.dark-mode .app-header{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:linear-gradient(135deg,#0d111dd9 0%,#0d948814 50%,#4c1e6f26 100%)}body.light-mode .app-header{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:linear-gradient(135deg,#ffffffd9 0%,#0d94880d 50%,#7877c60d 100%)}.brand{align-items:center;gap:12px;display:flex}.brand-badge-container{align-items:center;display:flex}.brand-badge{color:var(--text-primary);background:linear-gradient(135deg,#0d948826 0%,#4f46e526 100%);border:1px solid #0d94884d;border-radius:99px;align-items:center;gap:6px;padding:4px 10px;font-size:11px;font-weight:700;transition:all .3s;display:flex;box-shadow:0 2px 8px #0d94881a}body.dark-mode .brand-badge{background:linear-gradient(135deg,#0d948840 0%,#a855f740 100%);border:1px solid #0d948866}.brand-icon-speech{color:var(--secondary);animation:2s ease-in-out infinite speechPulse}@keyframes speechPulse{0%{opacity:.8;transform:scale(1)}50%{opacity:1;filter:drop-shadow(0 0 4px var(--secondary));transform:scale(1.15)}to{opacity:.8;transform:scale(1)}}.brand-badge:hover{border-color:var(--secondary);transform:translateY(-1px);box-shadow:0 4px 12px #0d948833}.brand-logo-container{border-radius:var(--radius-md);background:#fffffff2;justify-content:center;align-items:center;height:42px;padding:6px 12px;transition:all .4s cubic-bezier(.4,0,.2,1);display:flex;position:relative;box-shadow:0 4px 15px #0d94881a}.brand-logo-container:hover{background:#fff;transform:translateY(-1px)scale(1.02);box-shadow:0 6px 20px #0d948833}.brand-logo-container:before{content:"";opacity:.85;z-index:-1;filter:blur(2px);border-radius:calc(var(--radius-md) + 2px);background:linear-gradient(135deg,#0d9488 0%,#85c226 35%,#4c1e6f 65%,#0d9488 100%) 0 0/200% 200%;transition:all .4s cubic-bezier(.4,0,.2,1);animation:4s linear infinite gradient-shift;position:absolute;inset:-2px}@keyframes gradient-shift{0%{background-position:0%}50%{background-position:100%}to{background-position:0%}}.brand-logo-img{object-fit:contain;height:100%;max-height:30px}.doc-logo{object-fit:contain;max-height:48px;margin:0 auto 12px;display:block}.brand-user{color:var(--text-muted);margin-top:-1px;font-size:9px;font-weight:500;display:block}.header-actions-row{align-items:center;gap:8px;display:flex}.btn-icon{border:1px solid var(--border-color);width:36px;height:36px;color:var(--text-primary);cursor:pointer;transition:var(--transition-fast);background-color:#ffffff08;border-radius:50%;justify-content:center;align-items:center;display:flex}.btn-icon:hover{background-color:#ffffff14}.btn-icon.text-danger{color:var(--danger);border-color:#ef444433}.btn-icon.text-danger:hover{border-color:var(--danger);background-color:#ef44441a;box-shadow:0 0 10px #ef444426}.patient-selector-bar{border-bottom:1px solid var(--border-color);z-index:99;align-items:center;gap:12px;padding:12px 20px;display:flex;position:sticky;top:74px}body.dark-mode .patient-selector-bar{background:linear-gradient(135deg,#0d111df2 0%,#161d31f2 100%)}body.light-mode .patient-selector-bar{background:linear-gradient(135deg,#fffffff2 0%,#f1f3f9f2 100%)}.selector-wrapper{border:1px solid var(--border-color);border-radius:var(--radius-md);height:44px;transition:var(--transition-fast);background-color:#ffffff08;align-items:center;padding:0 12px;display:flex}body.light-mode .selector-wrapper{background-color:#00000005}.selector-wrapper:focus-within{border-color:var(--border-focus);box-shadow:0 0 0 2px #0d948826}.custom-combobox{flex-grow:1;position:relative}.combobox-input-wrapper{align-items:center;padding:0 12px;display:flex}.btn-combobox-toggle{color:var(--text-muted);cursor:pointer;transition:var(--transition-fast);background:0 0;border:none;justify-content:center;align-items:center;padding:8px;font-size:14px;display:flex}.btn-combobox-toggle:hover{color:var(--text-primary)}.combobox-dropdown{border:1px solid var(--border-color);border-radius:var(--radius-md);z-index:1000;max-height:250px;box-shadow:var(--shadow-md);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:linear-gradient(135deg,#0d111dfa 0%,#161d31fa 100%);padding:6px;animation:.2s cubic-bezier(.16,1,.3,1) forwards dropdownFadeIn;position:absolute;top:calc(100% + 6px);left:0;right:0;overflow-y:auto}body.light-mode .combobox-dropdown{background:linear-gradient(135deg,#fffffffa 0%,#f1f3f9fa 100%);box-shadow:0 10px 25px #0000001a}@keyframes dropdownFadeIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.combobox-item{border-radius:var(--radius-sm);cursor:pointer;transition:var(--transition-fast);flex-direction:column;gap:2px;padding:10px 14px;display:flex}.combobox-item:hover,.combobox-item.active{background-color:#ffffff0d}body.light-mode .combobox-item:hover,body.light-mode .combobox-item.active{background-color:#00000008}.combobox-item-name{color:var(--text-primary);font-size:14px;font-weight:600}.combobox-item-pathology{color:var(--text-secondary);font-size:11px}.combobox-empty{text-align:center;color:var(--text-muted);padding:12px;font-size:13px}.patient-search-input{color:var(--text-primary);font-family:var(--font-body);background:0 0;border:none;outline:none;width:100%;height:100%;margin-left:10px;font-size:14px;font-weight:500}.patient-search-input::placeholder{color:var(--text-muted);opacity:.8}.icon-injured{color:var(--text-muted);font-size:16px}.selector-actions{gap:8px;display:flex}.btn-action-round{border-radius:var(--radius-md);border:1px solid var(--border-color);width:44px;height:44px;color:var(--text-primary);cursor:pointer;transition:var(--transition-fast);background-color:#ffffff08;justify-content:center;align-items:center;font-size:16px;display:flex}.btn-action-round:disabled{opacity:.3;cursor:not-allowed}.btn-action-round.primary{background:var(--primary-gradient);color:#fff;border:none;box-shadow:0 4px 12px #6366f14d}.btn-action-round:not(:disabled):hover{transform:scale(1.02)}.workspace-area{flex-grow:1;padding:16px 20px 32px;overflow-y:auto}.workspace-empty{text-align:center;height:400px;color:var(--text-muted);flex-direction:column;justify-content:center;align-items:center;gap:16px;animation:.4s fadeIn;display:flex}.workspace-empty i{background:linear-gradient(135deg, var(--primary), var(--secondary));-webkit-text-fill-color:transparent;filter:drop-shadow(0 0 10px #6366f126);-webkit-background-clip:text;font-size:64px}.workspace-empty h2{font-family:var(--font-heading);color:var(--text-primary);font-size:20px;font-weight:700}.workspace-empty p{max-width:280px;font-size:13px}.workspace-content{flex-direction:column;gap:20px;display:flex}@media (width>=769px){.workspace-content{grid-template-columns:1fr 1fr;align-items:start;gap:24px;display:grid}}.workspace-column{flex-direction:column;gap:20px;display:flex}.workspace-card{background-color:var(--bg-card);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid var(--border-color);border-radius:var(--radius-lg);box-shadow:var(--shadow-md), inset 0 1px 1px #ffffff08;transition:border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-normal);flex-direction:column;gap:14px;padding:18px;animation:.3s scaleIn;display:flex}.workspace-card:hover{box-shadow:var(--shadow-md), 0 0 15px #0d94880d;border-color:#0d948840;transform:translateY(-1px)}.card-header-simple{justify-content:space-between;align-items:center;display:flex}.doc-header-flex{justify-content:space-between;align-items:center;gap:12px;display:flex}.doc-type-select{border:1px solid var(--border-color);border-radius:var(--radius-sm);color:var(--text-primary);font-family:var(--font-body);cursor:pointer;max-width:170px;transition:var(--transition-fast);background-color:#ffffff0a;outline:none;padding:4px 8px;font-size:11px;font-weight:600}.doc-type-select:focus{border-color:var(--border-focus)}.doc-type-select option{background-color:var(--bg-header);color:var(--text-primary)}@media (width<=480px){.doc-header-flex{flex-wrap:wrap;gap:8px}.doc-type-select{order:3;width:100%;max-width:100%;margin-top:4px}}.card-header-simple h3{font-family:var(--font-heading);color:var(--text-primary);font-size:15px;font-weight:600}.badge{text-transform:uppercase;border-radius:12px;padding:2px 8px;font-size:10px;font-weight:700}.badge.bg-spark{background:linear-gradient(135deg, var(--spark), var(--secondary));color:#fff;box-shadow:0 2px 8px #a855f733}.badge.info{color:var(--secondary);background-color:#0ea5e91f;border:1px solid #0ea5e940}.recorder-row{border-radius:var(--radius-md);border:1px solid var(--border-color);background-color:#00000026;align-items:center;gap:16px;padding:12px;display:flex}.btn-record-circle{background-color:var(--danger);color:#fff;cursor:pointer;width:48px;height:48px;transition:var(--transition-normal);border:none;border-radius:50%;justify-content:center;align-items:center;font-size:18px;display:flex;box-shadow:0 0 12px #ef444459}@keyframes recordPulse{0%{transform:scale(1);box-shadow:0 0 #ef4444b3}70%{transform:scale(1.08);box-shadow:0 0 0 8px #ef444400}to{transform:scale(1);box-shadow:0 0 #ef444400}}.btn-record-circle.recording{background-color:var(--success);animation:1.5s infinite recordPulse;box-shadow:0 0 15px #10b98166}.audio-timer{font-family:var(--font-heading);font-size:14px;font-weight:700}.waveform-box{flex-grow:1;justify-content:center;align-items:center;height:40px;position:relative;overflow:hidden;display:none!important}.waveform-box canvas{width:100%;height:100%;display:none}.waveform-info{color:var(--text-muted);text-align:center;font-size:11px}.editor-toolbar{border:1px solid var(--border-color);border-radius:var(--radius-sm);background-color:#ffffff05;align-items:center;gap:4px;padding:4px;display:flex}.btn-editor-tool{width:28px;height:28px;color:var(--text-secondary);cursor:pointer;transition:var(--transition-fast);background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;font-size:12px;display:flex}.btn-editor-tool:hover{color:var(--text-primary);background-color:#ffffff0d}.tool-separator{background-color:var(--border-color);width:1px;height:16px;margin:0 4px}.rich-editor{border:1px solid var(--border-color);border-radius:var(--radius-md);min-height:160px;max-height:280px;color:var(--text-primary);background-color:#00000026;outline:none;padding:12px;font-size:13px;line-height:1.6;overflow-y:auto}.rich-editor[contenteditable=true]:empty:before{content:attr(placeholder);color:var(--text-muted);pointer-events:none;display:block}.save-indicator{color:var(--text-muted);font-size:10px}.rag-keywords-row{border-bottom:1px solid var(--border-color);flex-wrap:wrap;gap:6px;padding-bottom:10px;display:flex}.keyword-placeholder{color:var(--text-muted);font-size:11px;font-style:italic}.keyword-tag{color:var(--spark);background-color:#a855f71a;border:1px solid #a855f733;border-radius:10px;align-items:center;gap:4px;padding:2px 8px;font-size:10px;font-weight:500;display:inline-flex}.rag-list{flex-direction:column;gap:10px;display:flex}.rag-match-item{border:1px solid var(--border-color);border-radius:var(--radius-md);transition:var(--transition-fast);background-color:#ffffff03;flex-direction:column;gap:6px;padding:12px;display:flex}.rag-match-title{font-family:var(--font-heading);color:var(--text-primary);font-size:12px;font-weight:600}.rag-match-excerpt{color:var(--text-secondary);font-size:11px;line-height:1.4}.rag-match-footer{color:var(--text-muted);justify-content:space-between;margin-top:2px;font-size:9px;display:flex}.ai-generation-options{border:1px solid var(--border-color);border-radius:var(--radius-md);transition:var(--transition-fast);background:#ffffff05;flex-direction:column;gap:10px;margin-bottom:14px;padding:14px;display:flex}.ai-generation-options:hover{background:#ffffff08;border-color:#a855f74d}.options-header{font-family:var(--font-heading);color:var(--text-primary);align-items:center;gap:8px;font-size:13px;font-weight:600;display:flex}.options-header i{color:var(--spark)}.options-header-row{justify-content:space-between;align-items:center;gap:12px;display:flex}.report-config-actions{align-items:center;gap:8px;min-width:0;display:flex}.report-type-select{min-width:190px;max-width:220px;height:34px;padding:6px 10px;font-size:10.5px}.report-options-dropdown{position:relative}.report-options-dropdown summary{border:1px solid var(--border-color);border-radius:var(--radius-sm);min-height:34px;color:var(--text-primary);cursor:pointer;-webkit-user-select:none;user-select:none;background:#ffffff0a;align-items:center;gap:7px;padding:0 10px;font-size:10.5px;font-weight:600;list-style:none;display:inline-flex}.report-options-dropdown summary::-webkit-details-marker{display:none}.report-options-dropdown[open] summary{background:#22d3ee14;border-color:#22d3ee59}.dropdown-chevron{color:var(--text-muted);font-size:9px;transition:transform .2s}.report-options-dropdown[open] .dropdown-chevron{transform:rotate(180deg)}.report-options-panel{z-index:15;border:1px solid var(--border-color);border-radius:var(--radius-md);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#18232bfa;width:320px;padding:10px;position:absolute;top:calc(100% + 8px);right:0;box-shadow:0 18px 36px #00000047}body.light-mode .report-options-panel{background:#fffffffa}.options-grid{grid-template-columns:1fr 1fr;gap:10px;display:grid}@media (width<=768px){.options-header-row{flex-direction:column;align-items:stretch}.report-config-actions{flex-direction:column;align-items:stretch;width:100%}.report-type-select{width:100%;max-width:none}.report-options-dropdown summary{justify-content:center;width:100%}.report-options-panel{width:100%;left:0;right:auto}.options-grid{grid-template-columns:1fr}}.option-checkbox-wrapper{cursor:pointer;-webkit-user-select:none;user-select:none;color:var(--text-secondary);transition:var(--transition-fast);border-radius:var(--radius-sm);border:1px solid var(--border-color);background:#00000026;align-items:center;gap:8px;padding:6px 8px;font-size:11px;display:flex}.option-checkbox-wrapper:hover{color:var(--text-primary);background:#ffffff05;border-color:#a855f74d}.option-checkbox-wrapper input{display:none}.custom-checkbox{border:1.5px solid var(--border-color);width:14px;height:14px;transition:var(--transition-fast);border-radius:3px;flex-shrink:0;display:inline-block;position:relative}.option-checkbox-wrapper input:checked+.custom-checkbox{background:var(--primary-gradient);border-color:#0000}.option-checkbox-wrapper input:checked+.custom-checkbox:after{content:"";color:#fff;font-family:"Font Awesome 6 Free";font-size:8px;font-weight:900;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.option-label-text{line-height:1.2}.btn-compile-ai{border-radius:var(--radius-md);background:linear-gradient(135deg, var(--spark) 0%, var(--primary) 100%);color:#fff;width:100%;height:48px;font-family:var(--font-body);cursor:pointer;transition:var(--transition-fast);border:none;justify-content:center;align-items:center;gap:10px;font-size:14px;font-weight:700;display:flex;box-shadow:0 4px 15px #a855f759}.btn-compile-ai:hover{transform:translateY(-1px);box-shadow:0 6px 20px #a855f773}.compiling-stages{border-radius:var(--radius-md);background-color:#a855f70d;border:1px solid #a855f726;flex-direction:column;gap:10px;padding:14px;display:flex}.stage-item{color:var(--text-muted);align-items:center;gap:8px;font-size:11px;display:flex}.stage-item.active{color:var(--text-primary);font-weight:500}.stage-item.active i{color:var(--spark)}.stage-item.completed,.stage-item.completed i{color:var(--success)}.report-output-box{border:1px solid var(--border-color);border-radius:var(--radius-md);background-color:#00000040;flex-direction:column;gap:16px;padding:20px;animation:.4s fadeIn;display:flex}.report-editor-view{border-radius:var(--radius-md);max-height:340px;font-size:13px;line-height:1.6;font-family:var(--font-body);border:1px solid #0000001f;outline:none;padding:28px 32px;overflow-y:auto;box-shadow:0 10px 25px -5px #00000040,0 8px 10px -6px #0003;color:#334155!important;background-color:#fff!important}.report-editor-view h1{font-family:var(--font-heading);text-transform:uppercase;letter-spacing:.5px;text-align:center;border-bottom:2px solid #3b82f6;margin-bottom:20px;padding-bottom:8px;font-size:18px;font-weight:800;color:#1e3b8b!important}.report-editor-view h2{font-family:var(--font-heading);border-left:4px solid #3b82f6;margin-top:24px;margin-bottom:12px;padding-left:10px;font-size:14px;font-weight:700;color:#2563eb!important;border-bottom:none!important}.report-editor-view h3{font-family:var(--font-heading);margin-top:16px;margin-bottom:8px;font-size:12px;font-weight:600;color:#1e293b!important}.report-editor-view p{margin-bottom:12px;color:#475569!important}.report-editor-view ul{margin-bottom:14px;padding-left:20px}.report-editor-view li{margin-bottom:6px;color:#475569!important}.doc-letterhead{text-align:center;border-bottom:1px double #cbd5e1;margin-bottom:24px;padding-bottom:12px}.doc-clinic-name{font-family:var(--font-heading);color:#1e3b8b;text-transform:uppercase;letter-spacing:1px;font-size:16px;font-weight:800}.doc-therapist-info{color:#64748b;margin-top:4px;font-size:11px;line-height:1.4}.doc-meta-grid{border-collapse:collapse;background-color:#f8fafc;border:1px solid #e2e8f0;width:100%;margin-bottom:24px}.doc-meta-grid td{border:1px solid #e2e8f0;padding:10px 14px;font-size:11px}.doc-meta-label{color:#64748b;width:110px;font-weight:700}.doc-meta-value{color:#1e293b;font-weight:500}.doc-notes-callout{border-radius:0 var(--radius-sm) var(--radius-sm) 0;background-color:#f1f5f9;border-left:4px solid #64748b;margin-bottom:20px;padding:14px 18px;font-style:italic;color:#334155!important}.doc-notes-callout p{margin:0;color:#334155!important}.doc-citation-callout{border-radius:0 var(--radius-sm) var(--radius-sm) 0;background-color:#f5f3ff;border-left:4px solid #8b5cf6;margin-bottom:20px;padding:14px 18px;color:#5b21b6!important}.doc-citation-callout p{margin:0;color:#5b21b6!important}.doc-citation-title{color:#7c3aed;align-items:center;gap:6px;margin-bottom:6px;font-size:11px;font-weight:700;display:flex}.doc-safety-warning{border-left:4px solid var(--danger);border-radius:0 var(--radius-sm) var(--radius-sm) 0;background-color:#ef444414;margin-bottom:20px;padding:14px 18px;color:#ef4444!important}.doc-safety-warning p{margin:0;font-size:11px;color:#ef4444!important}.doc-safety-warning-title{color:#ef4444;align-items:center;gap:6px;margin-bottom:6px;font-size:11px;font-weight:700;display:flex}.doc-footer-signature{text-align:center;margin-top:40px;padding-top:16px;font-size:11px}.doc-footer-signature .sig-line{background-color:#94a3b8;width:220px;height:1px;margin:0 auto 8px}.doc-footer-signature .sig-title{color:#1e293b;font-weight:700}.doc-footer-signature .sig-sub{color:#64748b}.report-actions-row{gap:10px;display:flex}.report-actions-row a{text-decoration:none}.btn{font-family:var(--font-body);cursor:pointer;border-radius:var(--radius-sm);transition:var(--transition-fast);border:none;justify-content:center;align-items:center;gap:6px;font-size:12px;font-weight:600;display:inline-flex}.btn-primary-mobile{background:var(--primary-gradient);color:#fff;height:38px;font-family:var(--font-body);border-radius:var(--radius-sm);flex-grow:1;justify-content:center;align-items:center;gap:8px;font-size:12px;font-weight:600;text-decoration:none;display:inline-flex}.btn-secondary-mobile{border:1px solid var(--border-color);height:38px;color:var(--text-primary);cursor:pointer;font-family:var(--font-body);border-radius:var(--radius-sm);background-color:#ffffff08;justify-content:center;align-items:center;gap:8px;padding:0 14px;font-size:12px;font-weight:600;display:inline-flex}.btn-secondary-mobile:hover{background-color:#ffffff14}.modal{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);z-index:10000;background-color:#000000b3;justify-content:center;align-items:center;padding:16px;display:none;position:fixed;inset:0}.modal.active{display:flex}.modal-content.mobile-modal{background-color:var(--bg-header);border:1px solid var(--border-color);border-radius:var(--radius-lg);width:100%;max-width:480px;box-shadow:var(--shadow-md);flex-direction:column;gap:16px;padding:20px;animation:.3s modalSlide;display:flex}.modal-content.scroll-modal{max-height:85vh;overflow-y:auto}.modal-header{border-bottom:1px solid var(--border-color);justify-content:space-between;align-items:center;padding-bottom:12px;display:flex}.modal-header h2{font-family:var(--font-heading);font-size:18px;font-weight:700}.btn-close{color:var(--text-secondary);cursor:pointer;background:0 0;border:none;font-size:20px}.form-group{flex-direction:column;gap:4px;margin-bottom:10px;display:flex}.form-group label{color:var(--text-secondary);font-size:11px;font-weight:600}.form-group input,.form-group select,.form-group textarea{border:1px solid var(--border-color);border-radius:var(--radius-sm);color:var(--text-primary);font-family:var(--font-body);background-color:#0003;outline:none;padding:8px 12px;font-size:13px}.form-group select option{background-color:var(--bg-header);color:var(--text-primary)}.form-group input:-webkit-autofill{transition:background-color 5000s ease-in-out;-webkit-box-shadow:0 0 0 1000px var(--bg-header) inset!important;-webkit-text-fill-color:var(--text-primary)!important}.form-group input:-webkit-autofill:hover{transition:background-color 5000s ease-in-out;-webkit-box-shadow:0 0 0 1000px var(--bg-header) inset!important;-webkit-text-fill-color:var(--text-primary)!important}.form-group input:-webkit-autofill:focus{transition:background-color 5000s ease-in-out;-webkit-box-shadow:0 0 0 1000px var(--bg-header) inset!important;-webkit-text-fill-color:var(--text-primary)!important}.form-group input:-webkit-autofill:active{transition:background-color 5000s ease-in-out;-webkit-box-shadow:0 0 0 1000px var(--bg-header) inset!important;-webkit-text-fill-color:var(--text-primary)!important}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:var(--border-focus)}.form-row{gap:12px;display:flex}.form-row .form-group{flex:1}.modal-footer{border-top:1px solid var(--border-color);justify-content:flex-end;gap:10px;margin-top:8px;padding-top:14px;display:flex}.modal-footer button{height:38px}.mobile-history-body{flex-direction:column;gap:14px;display:flex}.patient-quick-badge{align-items:center;gap:12px;display:flex}.badge-avatar{background:var(--primary-gradient);color:#fff;border-radius:50%;justify-content:center;align-items:center;width:44px;height:44px;font-size:14px;font-weight:700;display:flex}.badge-info h3{font-size:15px;font-weight:600}.badge-info p{color:var(--secondary);font-size:11px}.contact-details{border-radius:var(--radius-sm);border:1px solid var(--border-color);background-color:#00000026;flex-direction:column;gap:4px;padding:10px;font-size:12px;display:flex}.gdrive-folder-row{align-items:center;gap:8px;font-size:12px;display:flex}.gdrive-folder-row i{color:var(--success)}.gdrive-folder-row a{color:var(--primary);font-weight:600;text-decoration:none}.modal-separator{background-color:var(--border-color);border:0;height:1px}.timeline{border-left:1.5px solid var(--border-color);flex-direction:column;gap:16px;margin-top:10px;padding-left:16px;display:flex;position:relative}.timeline-item{border:1px solid var(--border-color);border-radius:var(--radius-sm);background-color:#ffffff03;padding:12px;position:relative}.timeline-item:before{content:"";background-color:var(--bg-app);border:2px solid var(--primary);border-radius:50%;width:8px;height:8px;position:absolute;top:16px;left:-21px}.timeline-header{justify-content:space-between;margin-bottom:6px;font-size:10px;display:flex}.timeline-date{color:var(--text-secondary);font-weight:600}.timeline-type{color:var(--text-muted)}@keyframes fadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes scaleIn{0%{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}@keyframes modalSlide{0%{opacity:0;transform:translateY(-12px)scale(.97)}to{opacity:1;transform:translateY(0)scale(1)}}@media print{*{visibility:hidden!important;box-shadow:none!important}#report-editor,#report-editor *{visibility:visible!important}body{background:#fff!important;margin:0!important;padding:0!important}#report-editor{width:100vw!important;min-height:100vh!important;box-shadow:none!important;color:#000!important;z-index:9999!important;background:#fff!important;border:none!important;max-height:none!important;padding:16mm 20mm!important;font-family:Arial,sans-serif!important;font-size:11pt!important;position:fixed!important;inset:0!important;overflow:visible!important}#report-editor h1{-webkit-print-color-adjust:exact;print-color-adjust:exact;color:#1e3b8b!important;text-align:center!important;border-bottom:2px solid #3b82f6!important;padding-bottom:6pt!important;font-size:17pt!important}#report-editor h2{-webkit-print-color-adjust:exact;print-color-adjust:exact;color:#2563eb!important;border-left:4px solid #3b82f6!important;margin-top:18pt!important;padding-left:8pt!important;font-size:12pt!important}#report-editor h3{color:#1e40af!important;margin-top:12pt!important;font-size:11pt!important}#report-editor p,#report-editor li{color:#1a1a1a!important;font-size:10.5pt!important;line-height:1.6!important}#report-editor ul,#report-editor ol{padding-left:18pt!important}#report-editor strong{color:#000!important}.doc-letterhead{-webkit-print-color-adjust:exact;print-color-adjust:exact;text-align:center!important;margin-bottom:14pt!important}.doc-clinic-name{-webkit-print-color-adjust:exact;print-color-adjust:exact;color:#1e3b8b!important;font-size:14pt!important;font-weight:700!important}.doc-meta-grid{-webkit-print-color-adjust:exact;print-color-adjust:exact;border-collapse:collapse!important;background-color:#f8fafc!important;border:1px solid #94a3b8!important;width:100%!important;margin-bottom:14pt!important}.doc-meta-grid td{color:#000!important;border:1px solid #94a3b8!important;padding:5pt 8pt!important;font-size:10pt!important}.doc-notes-callout{-webkit-print-color-adjust:exact;print-color-adjust:exact;background-color:#f1f5f9!important;border-left:4px solid #64748b!important;margin:10pt 0!important;padding:8pt!important}.doc-citation-callout{-webkit-print-color-adjust:exact;print-color-adjust:exact;background-color:#f5f3ff!important;border-left:4px solid #8b5cf6!important;margin:10pt 0!important;padding:8pt!important}.doc-safety-warning{-webkit-print-color-adjust:exact;print-color-adjust:exact;background-color:#fef3c7!important;border-left:4px solid #f59e0b!important;margin:10pt 0!important;padding:8pt!important}.doc-footer-signature{text-align:center!important;margin-top:30pt!important}.doc-footer-signature .sig-line{background-color:#0000!important;border-top:1px solid #94a3b8!important;width:200pt!important;margin:20pt auto 6pt!important}@page{margin:12mm 15mm;size:A4 portrait}}.notepad-copilot-bar{color:var(--text-secondary);background:linear-gradient(135deg,#6366f11f,#a855f714);border:1px solid #6366f14d;border-radius:10px;align-items:center;gap:8px;min-height:36px;margin-top:8px;padding:8px 12px;font-size:12px;transition:all .3s;display:flex}.notepad-copilot-bar.thinking{background:linear-gradient(135deg,#6366f12e,#a855f71f);border-color:#6366f199;animation:1.5s ease-in-out infinite copilotPulse}@keyframes copilotPulse{0%,to{opacity:1}50%{opacity:.7}}.copilot-icon{color:#818cf8;flex-shrink:0;font-size:14px}.copilot-text{flex:1;line-height:1.4}.copilot-text strong{color:var(--text-primary);margin-bottom:2px;display:block}.copilot-text span{color:var(--text-secondary);font-size:11px}.btn-copilot-apply{color:#fff;cursor:pointer;white-space:nowrap;background:linear-gradient(135deg,#6366f1,#8b5cf6);border:none;border-radius:6px;flex-shrink:0;padding:4px 10px;font-size:11px;font-weight:600;transition:all .2s}.btn-copilot-apply:hover{transform:scale(1.05);box-shadow:0 4px 12px #6366f166}.copilot-suggestions-list{flex-wrap:wrap;gap:4px;margin:4px 0 0;padding:0;list-style:none;display:flex}.copilot-suggestions-list li{color:#a5b4fc;cursor:pointer;background:#6366f126;border:1px solid #6366f14d;border-radius:99px;padding:2px 8px;font-size:10px;transition:all .2s}.copilot-suggestions-list li:hover{color:#fff;background:#6366f14d}.header-welcome-container{border:1px solid var(--border-color);font-family:var(--font-body);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background-color:#161d3173;border-radius:99px;align-items:center;gap:8px;padding:6px 16px;font-size:11px;font-weight:500;transition:all .3s;display:flex;box-shadow:0 4px 12px #00000026}.welcome-icon{color:#85c226;font-size:13px}.welcome-label{color:var(--text-secondary)}.welcome-name{color:var(--text-primary);font-weight:700}@media (width<=768px){.header-welcome-container{display:none}}.login-overlay{z-index:9999;background:radial-gradient(circle,#0d1426 0%,#070a13 100%);justify-content:center;align-items:center;width:100vw;height:100vh;transition:opacity .4s,visibility .4s;display:flex;position:fixed;top:0;left:0}.login-overlay:before{content:"";pointer-events:none;z-index:1;background:radial-gradient(circle at 15% 15%,#89c22614 0%,#0000 50%),radial-gradient(circle at 85% 85%,#4c1e6f1f 0%,#0000 50%);width:100%;height:100%;position:absolute;top:0;left:0}.login-overlay.hidden{opacity:0;visibility:hidden;pointer-events:none}.login-card{background-color:var(--bg-card);-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border:1px solid var(--border-color);border-radius:var(--radius-lg);z-index:2;flex-direction:column;gap:16px;width:90%;max-width:400px;padding:32px;animation:.4s cubic-bezier(.16,1,.3,1) forwards scaleIn;display:flex;box-shadow:0 20px 50px #00000080}.login-brand-logo{text-align:center;border-radius:var(--radius-md);background:linear-gradient(135deg,#85c226 0%,#4c1e6f 100%);max-width:fit-content;margin:0 auto 12px;padding:3px;display:inline-block;box-shadow:0 8px 24px #85c22640,0 8px 32px #4c1e6f33}.login-logo-img{object-fit:contain;border-radius:calc(var(--radius-md) - 2px);background-color:#fff;max-height:48px;padding:6px 16px;display:block}.login-card h2{font-family:var(--font-heading);text-align:center;color:var(--text-primary);font-size:22px;font-weight:700}.login-card p{color:var(--text-secondary);text-align:center;margin-bottom:8px;font-size:13px}#login-form{flex-direction:column;gap:12px;width:100%;display:flex}.btn-login-submit{color:#fff;border-radius:var(--radius-sm);height:44px;font-family:var(--font-body);cursor:pointer;white-space:nowrap;background:linear-gradient(135deg,#0d9488 0%,#85c226 50%,#4c1e6f 100%) 0 0/200% 200%;border:none;justify-content:center;align-items:center;gap:8px;width:100%;margin-top:10px;font-size:13.5px;font-weight:600;transition:transform .2s,box-shadow .2s;animation:4s linear infinite gradient-shift;display:flex}.btn-login-submit:hover{transform:translateY(-1px);box-shadow:0 8px 20px #0d948833}.btn-login-submit:active{transform:translateY(0)}.app-footer{border-top:1px solid var(--border-color);font-family:var(--font-heading);color:var(--text-secondary);margin-top:auto;padding:16px 20px;font-size:13px}body.dark-mode .app-footer{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:linear-gradient(135deg,#4c1e6f26 0%,#0d948814 50%,#0d111dd9 100%)}body.light-mode .app-footer{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:linear-gradient(135deg,#7877c60d 0%,#0d94880d 50%,#ffffffd9 100%)}.footer-content{justify-content:space-between;align-items:center;max-width:100%;display:flex}.footer-tag{letter-spacing:.5px;background:linear-gradient(135deg,#0d9488 0%,#85c226 50%,#4c1e6f 100%);-webkit-text-fill-color:transparent;-webkit-background-clip:text;font-weight:600}.toast-notification{border-radius:var(--radius-md);color:var(--text-primary);font-family:var(--font-heading);z-index:10000;opacity:0;pointer-events:none;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#0d111df2;border:1px solid #ffffff14;align-items:center;gap:10px;padding:12px 20px;font-size:14px;font-weight:500;transition:transform .4s cubic-bezier(.175,.885,.32,1.275),opacity .3s;display:flex;position:fixed;bottom:24px;left:50%;transform:translate(-50%)translateY(100px);box-shadow:0 10px 30px #00000080}.toast-notification.show{opacity:1;transform:translate(-50%)translateY(0)}.toast-notification i{font-size:16px}.toast-notification.success i{color:var(--success)}.toast-notification.error i{color:var(--danger)}.toast-notification.info i{color:var(--secondary)}body.light-mode .toast-notification{color:var(--text-primary);background:#fffffff2;border:1px solid #00000014;box-shadow:0 10px 30px #00000026}.header-voice-waves{align-items:center;gap:3px;height:16px;margin-left:12px;display:flex}.wave-bar{background-color:var(--success);border-radius:2px;width:3px;height:100%;animation:1.2s ease-in-out infinite alternate bounce-wave}.wave-bar:nth-child(2){background-color:var(--secondary);height:70%;animation-delay:.15s}.wave-bar:nth-child(3){background-color:var(--spark);height:40%;animation-delay:.3s}.wave-bar:nth-child(4){background-color:var(--secondary);height:75%;animation-delay:.45s}.wave-bar:nth-child(5){background-color:var(--success);height:50%;animation-delay:.6s}@keyframes bounce-wave{0%{transform:scaleY(.35)}to{transform:scaleY(1.15)}}.welcome-text-group{flex-direction:column;line-height:1.2;display:flex}body.light-mode .form-group input,body.light-mode .form-group select,body.light-mode .form-group textarea,body.light-mode .rich-editor{color:var(--text-primary);background-color:#00000005;border-color:#0000001f}body.light-mode .ai-generation-options{background:#00000005;border-color:#00000014}body.light-mode .ai-generation-options:hover{border-color:var(--primary);background:#00000008}@media (width<=540px){.app-header{padding:10px 12px}.brand{gap:8px}.brand-logo-container{height:36px;padding:4px 8px}.brand-logo-img{max-height:24px}.brand-badge span{display:none!important}.brand-badge{padding:4px 6px!important}.brand-user,.brand-user-container{display:none!important}.header-actions-row{flex-direction:row!important;align-items:center!important;gap:8px!important;display:flex!important}.btn-icon{width:32px;height:32px;font-size:13px}.patient-selector-bar{flex-direction:column;align-items:stretch;gap:8px;padding:8px 12px;position:sticky;top:57px}.custom-combobox{width:100%}.selector-wrapper{width:100%;height:40px}.selector-actions{gap:8px;width:100%;display:flex}.selector-actions .btn-action-round{border-radius:var(--radius-sm);flex-grow:1;height:40px}.workspace-area{padding:10px 8px 24px}.workspace-card{gap:10px;padding:14px}.form-row{flex-direction:column;gap:10px}.rich-editor{min-height:140px;padding:10px}.report-editor-view{box-shadow:none;padding:20px 14px}.report-editor-view h1{margin-bottom:12px;font-size:15px}.report-editor-view h2{margin-top:16px;margin-bottom:8px;font-size:13px}.doc-meta-grid,.doc-meta-grid tbody,.doc-meta-grid tr,.doc-meta-grid td{width:100%!important;display:block!important}.doc-meta-grid tr{border-bottom:1px solid #e2e8f0}.doc-meta-grid tr:last-child{border-bottom:none}.doc-meta-grid td{box-sizing:border-box!important;border:none!important;padding:6px 10px!important}.doc-meta-grid td.doc-meta-label{background-color:#f1f5f9;font-weight:700;width:100%!important;padding-top:8px!important}.doc-meta-grid td.doc-meta-value{margin-bottom:4px;color:#1e293b!important;width:100%!important;padding-bottom:8px!important}.doc-notes-callout,.doc-citation-callout,.doc-safety-warning{margin-bottom:14px;padding:10px 12px}.report-actions-row{flex-wrap:wrap!important;gap:8px!important;width:100%!important;display:flex!important}.report-actions-row .btn-secondary-mobile{flex:calc(50% - 4px)!important;height:40px!important;padding:0 12px!important;font-size:12px!important}.report-actions-row .btn-primary-mobile{flex:100%!important;height:42px!important;font-size:12px!important}.app-footer{padding:12px 16px}.footer-content{text-align:center;flex-direction:column;gap:4px}}.notepad-editor-outer{border:1px solid var(--border-color);border-radius:var(--radius-md);transition:border-color var(--transition-fast), box-shadow var(--transition-fast);background-color:#00000026;flex-direction:column;display:flex;overflow:hidden}.notepad-editor-outer:focus-within{border-color:var(--border-focus);box-shadow:0 0 15px #6366f126,0 0 0 3px #6366f11a}body.light-mode .notepad-editor-outer{background-color:#fff9}body.light-mode .notepad-editor-outer:focus-within{box-shadow:0 0 0 3px #0d948826}.notepad-editor-outer .rich-editor{flex:1;min-height:160px;max-height:280px;padding:16px 20px;font-size:14px;line-height:1.6;overflow-y:auto;background-color:#0000!important;border:none!important;border-radius:0!important}.notepad-editor-outer .waveform-box{border-radius:var(--radius-md);background:#ef444408;border:1px dashed #ef444433;height:35px;margin:4px 16px 8px;position:relative;overflow:hidden}.notepad-editor-bottom{background-color:#0000001a;border-top:1px solid #ffffff08;flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:8px;padding:6px 12px;display:flex;overflow:hidden}body.light-mode .notepad-editor-bottom{background-color:#00000005;border-top:1px solid #0000000a}.editor-formatting-tools{flex-shrink:0;align-items:center;gap:2px;display:flex}.editor-recording-controls{flex-shrink:0;align-items:center;gap:4px;display:flex!important}#btn-record-audio{color:#ef4444!important;cursor:pointer!important;background:#ef444414!important;border:1px solid #ef44444d!important;border-radius:50%!important;outline:none!important;justify-content:center!important;align-items:center!important;width:32px!important;height:32px!important;margin:0!important;padding:0!important;font-size:13px!important;transition:all .2s!important;display:flex!important}#btn-record-audio:hover{transform:scale(1.05);background:#ef44442e!important}#btn-record-audio.recording{animation:1.5s infinite mic-pulse;background:#ef444440!important;border-color:#ef4444!important}@keyframes mic-pulse{0%{transform:scale(1)}50%{transform:scale(1.08)}to{transform:scale(1)}}.audio-timer{color:#ef4444;white-space:nowrap;font-size:11px;font-weight:700;display:none}.btn-compile-gemini{isolation:isolate;color:var(--secondary)!important;border-radius:var(--radius-sm)!important;cursor:pointer!important;white-space:nowrap!important;background:#0ea5e914!important;border:1px solid #0ea5e959!important;outline:none!important;flex-shrink:0!important;align-items:center!important;gap:6px!important;width:auto!important;height:30px!important;margin:0!important;padding:5px 12px!important;font-size:11px!important;font-weight:600!important;transition:background .2s,border-color .2s,color .2s!important;display:flex!important}.btn-compile-gemini:hover{border-color:var(--secondary)!important;color:#fff!important;background:#0ea5e92e!important}body.light-mode .btn-compile-gemini{color:var(--primary)!important;background:#0d94880d!important;border-color:#0d948859!important}body.light-mode .btn-compile-gemini:hover{border-color:var(--primary)!important;color:var(--primary)!important;background:#0d948826!important}@media (width>=769px){html,body{height:100vh!important;overflow:hidden!important}body.responsive-layout,.app-main-wrapper{height:100vh;overflow:hidden}.workspace-area{flex-direction:column;flex:1;padding:12px 20px 20px;display:flex;overflow:hidden}.workspace-content{flex:1;grid-template-columns:1fr 1fr;align-items:stretch;gap:24px;height:100%;min-height:0;display:grid}.workspace-column{flex-direction:column;gap:16px;height:100%;min-height:0;display:flex;overflow:hidden}.pre-analysis-card{flex-shrink:0}.notepad-card{flex-direction:column;flex:1;gap:10px;min-height:0;display:flex;overflow:hidden}.notepad-editor-outer{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.notepad-editor-outer .rich-editor{flex:1;overflow-y:auto;min-height:100px!important;max-height:none!important}.report-generator-card{flex-direction:column;gap:12px;height:100%;min-height:0;display:flex;overflow:hidden}.report-output-box{flex-direction:column;flex:1;min-height:0;display:flex;overflow:hidden}.report-editor-view{flex:1;overflow-y:auto;min-height:100px!important;max-height:none!important}}body.light-mode ::-webkit-scrollbar-thumb{background:#0000001a}body.light-mode ::-webkit-scrollbar-thumb:hover{background:#0003}.app-main-container{background-color:var(--bg-app);width:100vw;height:100vh;color:var(--text-primary);font-family:var(--font-body);display:flex;overflow:hidden}.sidebar{border-right:1px solid var(--border-color);width:280px;height:100%;transition:var(--transition-normal);background-color:#050811;flex-direction:column;flex-shrink:0;justify-content:space-between;display:flex}body.light-mode .sidebar{background-color:#fff}.sidebar-brand{align-items:center;gap:12px;padding:24px;display:flex}.brand-logo-container-sidebar{border-radius:var(--radius-sm);background:#fff;justify-content:center;align-items:center;width:32px;height:32px;padding:4px;display:flex}.sidebar-brand h2{font-family:var(--font-heading);background:linear-gradient(135deg,#38bdf8 0%,#a855f7 50%,#818cf8 100%) 0 0/200%;-webkit-text-fill-color:transparent;color:#0000;letter-spacing:-.025em;filter:drop-shadow(0 2px 8px #a855f733);white-space:nowrap;-webkit-background-clip:text;font-size:16px;font-weight:800;transition:transform .3s cubic-bezier(.4,0,.2,1);animation:5s infinite brandGlowShimmer}@keyframes brandGlowShimmer{0%{background-position:0%}50%{background-position:100%}to{background-position:0%}}.sidebar-brand:hover h2{transform:scale(1.03)}.sidebar-menu{flex-direction:column;flex:1;gap:2px;padding:8px 0;display:flex;overflow-y:auto}.sidebar-section-label{text-transform:uppercase;letter-spacing:1.2px;color:var(--text-muted);margin-top:4px;padding:12px 24px 4px;font-size:9px;font-weight:700}.sidebar-section-label:first-child{margin-top:0;padding-top:6px}@media (width>=769px){.sidebar-section-system{margin-top:auto!important}}.sidebar-menu .menu-item{color:var(--text-secondary);border-right:3px solid #0000;align-items:center;gap:12px;padding:12px 24px;font-size:13px;font-weight:500;text-decoration:none;transition:all .2s;display:flex;position:relative}.sidebar-menu .menu-item i{text-align:center;width:20px;font-size:16px}.sidebar-menu .menu-item:hover{color:var(--text-primary);background-color:#ffffff05}.sidebar-menu .menu-item.active{color:var(--text-primary);border-right-color:var(--spark);background-color:#a855f714}body.light-mode .sidebar-menu .menu-item.active{color:var(--primary);border-right-color:var(--secondary);background-color:#0ea5e90f}.sidebar-landing-link{min-height:58px;color:var(--text-primary);isolation:isolate;transition:transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);background:linear-gradient(135deg,#2dd4bf1a,#0ea5e90f),#ffffff06;border:1px solid #2dd4bf2e;border-radius:14px;align-items:center;gap:11px;margin:10px 14px 18px;padding:12px 13px;text-decoration:none;display:flex;position:relative;overflow:hidden;box-shadow:inset 0 1px #ffffff0d,0 12px 28px #00000024}.sidebar-landing-link:before{content:"";z-index:-1;background:linear-gradient(110deg,#0000 0%,#2dd4bf00 32%,#2dd4bf57 49%,#0000 66%);animation:4.5s ease-in-out infinite sidebarLandingSweep;position:absolute;inset:-1px;transform:translate(-100%)}.sidebar-landing-link:hover{border-color:#2dd4bf6b;transform:translateY(-1px);box-shadow:inset 0 1px #ffffff14,0 16px 34px #0ea5e924}.sidebar-landing-orbit{color:#ecfeff;background:#0d9488c7;border-radius:50%;flex:none;justify-content:center;align-items:center;width:34px;height:34px;animation:2.8s ease-out infinite sidebarLandingPulse;display:inline-flex;box-shadow:0 0 #2dd4bf6b}.sidebar-landing-orbit i{font-size:13px}.sidebar-landing-copy{flex-direction:column;gap:2px;min-width:0;display:flex}.sidebar-landing-copy strong{color:var(--text-primary);font-size:12px;font-weight:800;line-height:1.1}.sidebar-landing-copy small{color:var(--text-secondary);white-space:nowrap;text-overflow:ellipsis;font-size:9.5px;font-weight:600;line-height:1.2;overflow:hidden}body.light-mode .sidebar-landing-link{background:linear-gradient(135deg,#0ea5e914,#0d94880a),#ffffffb8;border-color:#0ea5e92e;box-shadow:0 10px 22px #0f172a0f}@keyframes sidebarLandingSweep{0%,42%{transform:translate(-100%)}72%,to{transform:translate(100%)}}@keyframes sidebarLandingPulse{0%{box-shadow:0 0 #2dd4bf6b}70%{box-shadow:0 0 0 9px #2dd4bf00}to{box-shadow:0 0 #2dd4bf00}}.sidebar-footer{border-top:1px solid var(--border-color);flex-direction:column;gap:16px;padding:24px;display:flex}.btn-new-atendimento{width:100%;font-family:var(--font-body);color:#fff;cursor:pointer;transition:transform var(--transition-fast), box-shadow var(--transition-fast);background:linear-gradient(135deg,#a855f7 0%,#0ea5e9 100%);border:none;border-radius:99px;justify-content:center;align-items:center;gap:8px;padding:12px;font-size:13px;font-weight:600;display:flex;box-shadow:0 4px 15px #a855f740}.profile-card-footer{cursor:pointer;border-radius:var(--radius-md);transition:background-color var(--transition-fast);align-items:center;gap:12px;padding:8px;display:flex}.profile-card-footer:hover{background-color:#ffffff0a}body.light-mode .profile-card-footer:hover{background-color:#00000008}.profile-photo{background:linear-gradient(135deg, var(--spark) 0%, var(--secondary) 100%);color:#fff;width:36px;height:36px;font-family:var(--font-heading);border-radius:50%;justify-content:center;align-items:center;font-size:13px;font-weight:700;display:flex}.profile-details{flex-direction:column;display:flex}.profile-name{color:var(--text-primary);font-size:13px;font-weight:600}.profile-role{color:var(--text-secondary);font-size:11px}.main-content-layout{flex-direction:column;flex:1;height:100%;display:flex;position:relative;overflow:hidden}.app-header-new{border-bottom:1px solid var(--border-color);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);z-index:10;background-color:#070a1380;flex-shrink:0;justify-content:space-between;align-items:center;height:64px;padding:0 20px;display:flex}body.light-mode .app-header-new{background-color:#fff9}.header-logo-badge{align-items:center;gap:10px;display:flex}.header-logo-ring{background:#fff;border-radius:50%;justify-content:center;align-items:center;width:38px;height:38px;animation:3s ease-in-out infinite alternate logoRingGlow;display:flex;position:relative;overflow:hidden;box-shadow:0 0 0 2px #a855f780,0 0 12px #a855f74d}@keyframes logoRingGlow{0%{box-shadow:0 0 0 2px #a855f780,0 0 12px #a855f74d}50%{box-shadow:0 0 0 2px #0ea5e999,0 0 16px #0ea5e966}to{box-shadow:0 0 0 2px #6366f199,0 0 14px #6366f159}}.header-logo-img{object-fit:contain;border-radius:50%;width:32px;height:32px}.header-logo-text{flex-direction:column;gap:1px;display:flex}.header-logo-name{font-family:var(--font-heading);color:var(--text-primary);white-space:nowrap;font-size:13px;font-weight:700}.header-logo-sub{color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;font-size:9px;font-weight:500}.header-divider-v{background:var(--border-color);width:1px;height:28px;margin:0 8px}.header-left{align-items:center;gap:12px;display:flex}.status-chip{color:var(--secondary);text-transform:uppercase;letter-spacing:.5px;background:#0ea5e914;border:1px solid #0ea5e933;border-radius:99px;align-items:center;gap:8px;padding:6px 14px;font-size:11px;font-weight:700;display:flex}.visualizer-bars{align-items:flex-end;gap:2px;height:10px;display:flex}.visualizer-bars span{background-color:var(--secondary);width:2px;animation:1s infinite alternate barPulse;display:block}.visualizer-bars span:first-child{height:80%;animation-delay:.1s}.visualizer-bars span:nth-child(2){height:40%;animation-delay:.3s}.visualizer-bars span:nth-child(3){height:100%;animation-delay:.5s}@keyframes barPulse{0%{transform:scaleY(.3)}to{transform:scaleY(1)}}.header-title{text-transform:uppercase;letter-spacing:1px;color:var(--text-secondary);font-size:11px;font-weight:600}.header-right{align-items:center;gap:12px;display:flex}.btn-icon-new{color:var(--text-secondary);cursor:pointer;background:0 0;border:none;border-radius:50%;outline:none;justify-content:center;align-items:center;width:36px;height:36px;font-size:16px;transition:all .2s;display:flex}.btn-icon-new:hover{color:var(--text-primary);background-color:#ffffff0d}body.light-mode .btn-icon-new:hover{background-color:#00000008}.search-overlay-bar{border-bottom:1px solid var(--border-color);background-color:#00000026;align-items:center;gap:16px;padding:12px 24px;animation:.25s slideDown;display:flex}body.light-mode .search-overlay-bar{background-color:#ffffff73}.workspace-area-new{flex:1;padding:16px 20px 80px;overflow:hidden auto}.workspace-content-new{grid-template-columns:1.2fr .8fr;align-items:start;gap:16px;min-height:0;display:grid}.workspace-column-new{flex-direction:column;gap:14px;min-height:0;display:flex}.patient-header-card{justify-content:space-between;align-items:center;gap:16px;display:flex;flex-direction:row!important;padding:18px 24px!important}.patient-card-left{align-items:center;gap:16px;display:flex}.patient-card-avatar-wrap{flex-shrink:0;width:52px;height:52px;position:relative}.patient-avatar-ring{background:conic-gradient(from 0deg, var(--secondary) 0%, var(--primary) 35%, transparent 50%, var(--secondary) 100%);z-index:0;border-radius:50%;animation:3s linear infinite avatar-ring-spin;position:absolute;inset:-3px}.patient-avatar-ring:after{content:"";background:var(--card-bg);border-radius:50%;position:absolute;inset:3px}@keyframes avatar-ring-spin{to{transform:rotate(360deg)}}.patient-card-avatar{z-index:1;background:linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);border-radius:50%;justify-content:center;align-items:center;width:52px;height:52px;transition:box-shadow .3s;display:flex;position:relative;box-shadow:0 0 18px #0ea5e959,inset 0 1px #ffffff26}.patient-card-avatar:hover{box-shadow:0 0 28px #0ea5e98c,inset 0 1px #fff3}.patient-avatar-initials{font-family:var(--font-heading);color:#fff;letter-spacing:.5px;text-shadow:0 1px 4px #0000004d;-webkit-user-select:none;user-select:none;font-size:17px;font-weight:800}.patient-avatar-dot{background:var(--success);border:2px solid var(--card-bg);z-index:2;border-radius:50%;width:13px;height:13px;animation:2.4s ease-in-out infinite avatar-dot-pulse;position:absolute;bottom:1px;right:1px}@keyframes avatar-dot-pulse{0%,to{box-shadow:0 0 #10b9818c}50%{box-shadow:0 0 0 5px #10b98100}}body.light-mode .patient-card-avatar{box-shadow:0 0 14px #0ea5e940,inset 0 1px #fff3}body.light-mode .patient-avatar-ring:after{background:#fff}.patient-card-info h2{font-family:var(--font-heading);color:var(--text-primary);margin-bottom:2px;font-size:18px;font-weight:700}.patient-card-info p{color:var(--text-secondary);font-size:11px}.patient-card-right{align-items:center;gap:10px;display:flex}.btn-history-card{border:1px solid var(--border-color);font-family:var(--font-body);color:var(--text-primary);cursor:pointer;background:0 0;border-radius:99px;outline:none;padding:8px 16px;font-size:11px;font-weight:600;transition:all .2s}.btn-history-card:hover{border-color:var(--text-secondary);background-color:#ffffff08}body.light-mode .btn-history-card:hover{background-color:#00000005}.btn-meta-card{font-family:var(--font-body);color:#fff;cursor:pointer;background:linear-gradient(135deg,#0e7490 0%,#0891b2 100%);border:none;border-radius:99px;outline:none;align-items:center;gap:6px;padding:8px 16px;font-size:11px;font-weight:600;transition:all .2s;display:flex}.btn-meta-card:hover{opacity:.95;transform:translateY(-.5px)}.pre-analysis-card{border:1px solid #0ea5e959!important;box-shadow:0 4px 15px #0ea5e914!important}body.light-mode .pre-analysis-card{border:1px solid #0ea5e933!important;box-shadow:0 4px 12px #0ea5e90a!important}.performance-body{justify-content:space-between;align-items:center;padding:8px 12px;display:flex}.perf-circle-container{flex-direction:column;gap:4px;display:flex}.perf-value{font-family:var(--font-heading);color:var(--text-primary);font-size:36px;font-weight:800}.perf-change{color:var(--success);align-items:center;gap:4px;font-size:11px;font-weight:700;display:flex}.perf-graph-mock{opacity:.85;background:radial-gradient(circle at 0 0,#a855f70d 0%,#0000 80%),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' width='100' height='30'%3E%3Cpath d='M0,25 Q15,10 30,18 T60,5 T90,20 L100,15' fill='none' stroke='%2310b981' stroke-width='2'/%3E%3C/svg%3E") 50%/contain no-repeat;width:120px;height:50px}.btn-copilot-sparkles{color:#fff;cursor:pointer;width:38px;height:38px;transition:transform var(--transition-fast);background:linear-gradient(135deg,#a855f7 0%,#0ea5e9 100%);border:none;border-radius:50%;outline:none;justify-content:center;align-items:center;font-size:15px;display:flex;box-shadow:0 4px 12px #a855f74d}.btn-copilot-sparkles:hover{transform:scale(1.05)}.copilot-input-wrapper{flex:1;align-items:center;display:flex;position:relative}.copilot-input-wrapper input{border:1px solid var(--border-color);width:100%;font-family:var(--font-body);color:var(--text-primary);transition:border-color var(--transition-fast);background-color:#00000040;border-radius:99px;outline:none;padding:10px 48px 10px 20px;font-size:13px}body.light-mode .copilot-input-wrapper input{background-color:#fff}.copilot-input-wrapper input:focus{border-color:var(--secondary)}.btn-send-copilot{color:var(--secondary);cursor:pointer;background:0 0;border:none;outline:none;font-size:14px;transition:transform .2s}.btn-send-copilot:hover{transform:scale(1.1)}.copilot-status-pill{flex-direction:column;align-items:flex-end;gap:2px;display:flex}.copilot-status-label{text-transform:uppercase;color:var(--text-muted);letter-spacing:.5px;font-size:8px;font-weight:700}.copilot-status-value{color:var(--success);align-items:center;gap:6px;font-size:10px;font-weight:700;display:flex}.status-dot{background-color:var(--success);width:6px;height:6px;box-shadow:0 0 8px var(--success);border-radius:50%;animation:1.5s infinite alternate pulseGlow;display:inline-block}@keyframes pulseGlow{0%{box-shadow:0 0 4px var(--success);transform:scale(.9)}to{box-shadow:0 0 10px var(--success);transform:scale(1.1)}}.report-generator-card .ai-generation-options{background:0 0!important;border:none!important;padding:0!important}.options-grid{flex-direction:column;gap:10px;display:flex}.option-checkbox-wrapper{border:1px solid var(--border-color);border-radius:var(--radius-md);cursor:pointer;background-color:#ffffff05;align-items:center;gap:12px;padding:10px 16px;transition:all .2s;display:flex}.option-checkbox-wrapper:hover{border-color:var(--secondary);background-color:#ffffff0a}body.light-mode .option-checkbox-wrapper:hover{background-color:#00000003}.option-label-text{color:var(--text-primary);font-size:12px;font-weight:500}.btn-compile-ai-gradient{width:100%;font-family:var(--font-body);color:#fff;cursor:pointer;transition:transform var(--transition-fast), box-shadow var(--transition-fast);background:linear-gradient(135deg,#a855f7 0%,#0ea5e9 100%);border:none;border-radius:99px;outline:none;justify-content:center;align-items:center;gap:8px;margin-top:10px;padding:12px;font-size:13px;font-weight:600;display:flex;box-shadow:0 4px 15px #0ea5e933}.btn-compile-ai-gradient:hover{transform:translateY(-.5px);box-shadow:0 6px 18px #0ea5e94d}.btn-google-auth-pill{color:#fff;cursor:pointer;background:#db4437;border:none;border-radius:99px;outline:none;justify-content:center;align-items:center;gap:8px;width:100%;padding:10px 20px;font-size:12px;font-weight:600;display:flex}.app-view{width:100%}.view-heading{justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;display:flex}.view-kicker{letter-spacing:1px;text-transform:uppercase;color:var(--secondary);margin-bottom:4px;font-size:10px;font-weight:800;display:block}.view-heading h1{font-family:var(--font-heading);color:var(--text-primary);margin:0;font-size:22px;line-height:1.2}.dashboard-metrics-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px;display:grid}.metric-tile{border-radius:var(--radius-md);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);flex-direction:column;justify-content:space-between;min-height:110px;padding:16px;transition:all .3s cubic-bezier(.4,0,.2,1);display:flex;position:relative;overflow:hidden;border:1px solid var(--border-color)!important;background:#141b29a6!important}.metric-tile:before{content:"";pointer-events:none;background:radial-gradient(circle at 100% 0,#ffffff08,#0000 60%);width:100%;height:100%;position:absolute;top:0;left:0}body.light-mode .metric-tile{background:#fffc!important;box-shadow:0 8px 32px -16px #0f766e26!important}.metric-tile:hover{transform:translateY(-4px)}.card-patients:hover{border-color:#06b6d473!important;box-shadow:0 12px 28px -8px #06b6d440!important}body.light-mode .card-patients:hover{box-shadow:0 12px 28px -8px #06b6d44d!important}.card-treatment:hover{border-color:#10b98173!important;box-shadow:0 12px 28px -8px #10b98140!important}body.light-mode .card-treatment:hover{box-shadow:0 12px 28px -8px #10b9814d!important}.card-sessions:hover{border-color:#a855f773!important;box-shadow:0 12px 28px -8px #a855f740!important}body.light-mode .card-sessions:hover{box-shadow:0 12px 28px -8px #a855f74d!important}.card-focus:hover{border-color:#f9731673!important;box-shadow:0 12px 28px -8px #f9731640!important}body.light-mode .card-focus:hover{box-shadow:0 12px 28px -8px #f973164d!important}.metric-header-row{justify-content:space-between;align-items:center;width:100%;display:flex}.metric-body-row{flex-direction:column;gap:4px;margin-top:8px;display:flex}.metric-icon-box{border-radius:8px;justify-content:center;align-items:center;width:32px;height:32px;font-size:13px;transition:all .3s;display:flex}.metric-icon-box.cyan{color:#06b6d4;background:#06b6d414;border:1px solid #06b6d426}.metric-tile:hover .metric-icon-box.cyan{background:#06b6d433;transform:scale(1.05)}.metric-icon-box.emerald{color:#10b981;background:#10b98114;border:1px solid #10b98126}.metric-tile:hover .metric-icon-box.emerald{background:#10b98133;transform:scale(1.05)}.metric-icon-box.purple{color:#a855f7;background:#a855f714;border:1px solid #a855f726}.metric-tile:hover .metric-icon-box.purple{background:#a855f733;transform:scale(1.05)}.metric-icon-box.orange{color:#f97316;background:#f9731614;border:1px solid #f9731626}.metric-tile:hover .metric-icon-box.orange{background:#f9731633;transform:scale(1.05)}.metric-label{color:var(--text-secondary);text-transform:uppercase;letter-spacing:.6px;font-size:10px;font-weight:700}.metric-tile strong{font-family:var(--font-heading);color:var(--text-primary);font-weight:700;line-height:1.1;font-size:20px!important}.metric-tile strong.pathology-focus{letter-spacing:-.1px;white-space:nowrap;text-overflow:ellipsis;max-width:100%;color:var(--text-primary);font-weight:600;line-height:1.3;overflow:hidden;font-size:13.5px!important}.metric-tile small{color:var(--text-muted);font-size:10px}.dashboard-table-card{padding:18px!important}.section-toolbar{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px;display:flex}.section-toolbar.compact{margin-bottom:4px}.section-toolbar h3{font-family:var(--font-heading);color:var(--text-primary);margin:0 0 1px;font-size:13px}.section-toolbar p{color:var(--text-secondary);margin:0;font-size:11px}.patient-table-wrap{width:100%;overflow-x:auto}.patient-dashboard-table{border-collapse:collapse;width:100%}.patient-dashboard-table th,.patient-dashboard-table td{border-bottom:1px solid var(--border-color);text-align:left;vertical-align:middle;padding:12px 10px;font-size:12px}.patient-dashboard-table th{color:var(--text-muted);letter-spacing:.7px;text-transform:uppercase;font-size:10px;font-weight:800}.patient-dashboard-table td:first-child{flex-direction:column;gap:3px;display:flex}.patient-dashboard-table td:first-child span{color:var(--text-muted);font-size:11px}.table-patient-name{color:var(--text-primary);text-align:left;cursor:pointer;background:0 0;border:0;padding:0;font-weight:800}.table-patient-name:hover{color:var(--secondary)}.stage-pill,.status-pill{white-space:nowrap;border-radius:99px;align-items:center;min-height:24px;padding:4px 9px;font-size:10px;font-weight:800;display:inline-flex}.stage-pill{color:#38bdf8;background:#0ea5e91f;border:1px solid #0ea5e933}.status-pill{color:#34d399;background:#10b9811f;border:1px solid #10b98133}.table-actions{justify-content:center;align-items:center;gap:6px;display:flex}.table-actions button{border:1px solid var(--border-color);width:30px;height:30px;color:var(--text-secondary);cursor:pointer;background:#ffffff05;border-radius:50%}.table-actions button:hover{color:var(--secondary);border-color:#0ea5e959}.empty-table-cell{color:var(--text-muted);text-align:center!important}.patient-management-card{flex-direction:column;display:flex;overflow:hidden;padding:14px 18px 0!important}.patient-management-selector{flex-direction:column;gap:4px;max-width:520px;margin-bottom:10px;display:flex}.patient-management-selector.inline{min-width:300px;margin-bottom:0}.patient-management-selector label{color:var(--text-muted);text-transform:uppercase;letter-spacing:.7px;font-size:10px;font-weight:800}.clinical-select,.patient-edit-panel input,.patient-edit-panel textarea,.patient-edit-panel select,.ai-chat-input-row input,.ai-chat-input-row textarea{border:1px solid var(--border-color);border-radius:var(--radius-sm);width:100%;color:var(--text-primary);font-family:var(--font-body);background:#ffffff08;outline:none;padding:7px 10px;font-size:12px}body.light-mode .clinical-select,body.light-mode .patient-edit-panel input,body.light-mode .patient-edit-panel textarea,body.light-mode .patient-edit-panel select,body.light-mode .ai-chat-input-row input,body.light-mode .ai-chat-input-row textarea{background:#fff}.clinical-select:focus,.patient-edit-panel input:focus,.patient-edit-panel textarea:focus,.patient-edit-panel select:focus,.ai-chat-input-row input:focus,.ai-chat-input-row textarea:focus{border-color:var(--secondary);box-shadow:0 0 0 3px #0ea5e91a}.patient-profile-form-container{flex-direction:column;flex:1;gap:8px;min-height:0;padding-bottom:4px;padding-right:6px;display:flex;overflow:hidden auto}.patient-form-save-bar{border-top:1px solid var(--border-color);background:0 0;flex-shrink:0;justify-content:flex-end;padding:10px 6px 12px 0;display:flex}.form-section{flex-direction:column;gap:6px;display:flex}.form-section-divider{background:var(--border-color);opacity:.5;border:0;height:1px;margin:2px 0}.form-row .form-group.flex-1{flex:1}.form-row .form-group.flex-2{flex:2}.form-row .form-group.flex-3{flex:3}.form-actions-row{justify-content:flex-end;margin-top:4px;margin-bottom:4px;display:flex}.compact-action{max-width:260px;margin-left:auto}.ai-analysis-grid{grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr);align-items:start;gap:16px;display:grid}.ai-chat-card,.ai-insights-card{padding:18px!important}.ai-chat-messages{border:1px solid var(--border-color);border-radius:var(--radius-md);background:#00000026;flex-direction:column;gap:10px;height:min(52vh,460px);min-height:300px;padding:14px;display:flex;overflow-y:auto}body.light-mode .ai-chat-messages{background:#f8fafccc}.ai-chat-message{border:1px solid var(--border-color);border-radius:var(--radius-md);max-width:86%;color:var(--text-primary);background:#ffffff08;padding:10px 12px;font-size:12px;line-height:1.55}.ai-chat-message.user{background:#0ea5e91f;border-color:#0ea5e940;align-self:flex-end}.ai-chat-message.assistant{align-self:flex-start}.ai-chat-message.is-pending{color:var(--text-secondary)}.ai-chat-message span{color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:5px;font-size:10px;font-weight:800;display:block}.ai-suggestion-row{flex-wrap:wrap;gap:8px;margin:12px 0;display:flex}.ai-suggestion-chip{color:var(--secondary);cursor:pointer;background:#0ea5e914;border:1px solid #0ea5e947;border-radius:99px;padding:7px 10px;font-size:11px;font-weight:800}.ai-chat-input-row{grid-template-columns:1fr auto auto;gap:8px;display:grid}.ai-chat-input-row .btn-send-copilot{width:42px;height:40px;color:var(--secondary);cursor:pointer;background:#0ea5e91a;border:1px solid #0ea5e940;border-radius:50%;justify-content:center!important;align-items:center!important;margin:0!important;display:flex!important;position:relative!important;left:auto!important;right:auto!important}.ai-chat-input-row .btn-mic-copilot{width:42px;height:40px;color:var(--secondary);cursor:pointer;background:#0ea5e91a;border:1px solid #0ea5e940;border-radius:50%;outline:none;justify-content:center;align-items:center;transition:transform .2s,background-color .2s;display:flex}.ai-chat-input-row .btn-mic-copilot:hover{background:#0ea5e933;transform:scale(1.05)}.ai-chat-input-row .btn-mic-copilot.recording{border-color:var(--danger);color:var(--danger);background:#ef444433;animation:1.5s infinite mic-pulse}.insight-stack{flex-direction:column;gap:10px;display:flex}.insight-row{border:1px solid var(--border-color);border-radius:var(--radius-md);background:#ffffff05;justify-content:space-between;align-items:center;gap:12px;padding:12px;display:flex}.insight-row.tall{flex-direction:column;align-items:flex-start}.insight-row span{text-transform:uppercase;letter-spacing:.6px;color:var(--text-muted);font-size:10px;font-weight:800}.insight-row strong{color:var(--text-primary);text-align:right;font-size:12px}.insight-row.tall strong{text-align:left;line-height:1.5}.empty-insight{color:var(--text-muted);font-size:12px}@media (width<=768px){.app-main-container{flex-direction:column;height:auto;overflow:visible}.sidebar{border-right:none;border-bottom:1px solid var(--border-color);width:100%;height:auto;padding:12px}.sidebar-menu{flex-flow:wrap;padding:6px 0}.sidebar-menu .menu-item{border-bottom:3px solid #0000;border-right:none;padding:8px 12px}.sidebar-menu .menu-item.active{border-bottom-color:var(--spark);background:0 0}.sidebar-footer{flex-direction:row;justify-content:space-between;align-items:center;padding:12px}.btn-new-atendimento{width:auto;padding:8px 16px}.main-content-layout{height:auto;overflow:visible}.workspace-area-new{padding:16px 16px 90px}.workspace-content-new,.dashboard-metrics-grid,.ai-analysis-grid{grid-template-columns:1fr}.view-heading{flex-direction:column;align-items:stretch}.patient-management-selector.inline{width:100%;min-width:0}.patient-dashboard-table{min-width:0}.copilot-bottom-bar{position:fixed;bottom:0}#view-pacientes.patient-management-view{height:auto!important}}.brand-logo-container-sidebar{display:none!important}body.light-mode .sidebar-brand h2{filter:drop-shadow(0 1px 4px #7c3aed26);background:linear-gradient(135deg,#0284c7 0%,#7c3aed 50%,#2563eb 100%)!important;-webkit-text-fill-color:transparent!important;color:#0000!important;-webkit-background-clip:text!important;font-size:16px!important;font-weight:800!important}body.light-mode .sidebar-menu .menu-item.active{color:#0369a1!important;background-color:#e0f2fe!important;border-right:3px solid #0284c7!important}body.light-mode .sidebar-menu .menu-item.active i{color:#0284c7!important}body.light-mode .btn-new-atendimento{background:linear-gradient(135deg,#60a5fa 0%,#a855f7 100%)!important;box-shadow:0 4px 15px #60a5fa40!important}#btn-header-logout-new{color:#ef4444!important;background-color:#ef444414!important}#btn-header-logout-new:hover{color:#ef4444!important;background-color:#ef44442e!important}.profile-photo{background:linear-gradient(135deg, var(--spark) 0%, var(--secondary) 100%);border-radius:50%;justify-content:center;align-items:center;width:36px;height:36px;display:flex;position:relative;overflow:hidden}.profile-img{object-fit:cover;width:100%;height:100%}body.light-mode #active-patient-name,body.light-mode .pre-analysis-card h3,body.light-mode .notepad-card h3,body.light-mode .report-generator-card h3,body.light-mode .options-header{color:#0b2347!important}body.light-mode .patient-header-card{border:1px solid #0ea5e940!important;box-shadow:0 4px 12px #0ea5e90a!important}body.light-mode .btn-meta-card{background:#0b2d52!important}body.light-mode .btn-meta-card:hover{background:#0f3d6b!important}body.light-mode .btn-history-card{color:#0b2347!important;border-color:#0b234740!important}body.light-mode .btn-history-card:hover{background-color:#0b234708!important;border-color:#0b2347!important}.custom-checkbox{border:1.5px solid var(--border-color);transition:var(--transition-fast);flex-shrink:0;display:inline-block;position:relative;border-radius:50%!important;width:18px!important;height:18px!important}body.light-mode .custom-checkbox{border-color:#00000026}body.light-mode .option-checkbox-wrapper input:checked+.custom-checkbox{background:#0b2d52!important;border-color:#0b2d52!important}.option-checkbox-wrapper input:checked+.custom-checkbox:after{font-size:9px!important}body.light-mode .option-checkbox-wrapper{background-color:#fff!important;border-color:#0000000f!important}body.light-mode .option-checkbox-wrapper:hover{background-color:#f8fafc!important;border-color:#0b2d5233!important}body.light-mode .btn-compile-ai-gradient{background:linear-gradient(135deg,#60a5fa 0%,#b27dfc 100%)!important;box-shadow:0 4px 15px #60a5fa40!important}body.light-mode .btn-compile-gemini{color:#475569!important;text-transform:uppercase!important;background:#fff!important;border-color:#0000001f!important;border-radius:99px!important;font-size:11px!important;font-weight:600!important}body.light-mode .btn-compile-gemini:hover{color:#0f172a!important;background:#f8fafc!important;border-color:#00000040!important}body.light-mode .btn-compile-gemini i{color:#0ea5e9!important;margin-right:6px!important}body.light-mode .doc-type-select{color:#0369a1!important;background-color:#fff!important;border-color:#00000014!important}body.light-mode .copilot-bottom-bar{background:#fff!important;border-top:1px solid #0000000d!important}body.light-mode .copilot-input-wrapper input{color:#0f172a!important;background-color:#f8fafc!important;border-color:#00000014!important}body.light-mode .copilot-input-wrapper input:focus{background-color:#fff!important;border-color:#0284c7!important}body.light-mode .copilot-status-value{color:#0284c7!important}body.light-mode .status-dot{background-color:#0284c7!important;box-shadow:0 0 8px #0ea5e980!important}.performance-title{font-family:var(--font-heading);color:var(--text-muted);text-transform:uppercase;letter-spacing:1px;margin-bottom:8px;font-size:10px;font-weight:700;display:block}.performance-body{border-radius:var(--radius-lg);background-color:#0ea5e908;border:1px solid #0ea5e914;justify-content:space-between;align-items:center;height:110px;padding:16px 20px;display:flex;position:relative;overflow:hidden}body.light-mode .performance-body{background-color:#f8fafc;background-image:radial-gradient(circle at 100% 100%,#0ea5e90a 0%,#0000 60%),url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230284c7' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");border-color:#0000000d}.perf-value{font-family:var(--font-heading);color:var(--text-primary);font-weight:800;line-height:1;font-size:48px!important}body.light-mode .perf-value{color:#0b2347!important}.perf-score-stack{flex-direction:column;gap:4px;display:flex}.perf-status{color:var(--text-secondary);font-size:11px;font-weight:600;line-height:1.2}.perf-right{z-index:2;flex-direction:column;align-items:flex-end;gap:6px;display:flex}.perf-change{color:#10b981;text-transform:uppercase;background:#10b9811a;border-radius:99px;align-items:center;gap:4px;padding:4px 8px;font-size:11px;font-weight:700;display:flex}.perf-graph-mock{border:1px solid var(--border-color);opacity:1;background:#ffffff0f;border-radius:999px;width:150px;height:14px;position:relative;overflow:hidden}.perf-graph-fill{border-radius:inherit;background:linear-gradient(90deg,#ef4444 0%,#f59e0b 35%,#22c55e 100%);width:0;height:100%;transition:width .25s}.perf-graph-fill[data-level=weak]{background:linear-gradient(90deg,#ef4444 0%,#f97316 100%)}.perf-graph-fill[data-level=medium]{background:linear-gradient(90deg,#f59e0b 0%,#facc15 100%)}.perf-graph-fill[data-level=good]{background:linear-gradient(90deg,#22c55e 0%,#14b8a6 100%)}.perf-graph-fill[data-level=strong]{background:linear-gradient(90deg,#14b8a6 0%,#38bdf8 100%)}.perf-change.negative{color:var(--danger);background:#ef44441a}.performance-breakdown{flex-wrap:wrap;gap:6px;display:flex}.perf-chip{border:1px solid var(--border-color);min-height:24px;color:var(--text-secondary);background:#ffffff08;border-radius:999px;align-items:center;gap:6px;padding:3px 8px;font-size:8.5px;font-weight:700;display:inline-flex}.perf-chip strong{color:var(--text-primary);font-variant-numeric:tabular-nums}.perf-chip.strong{background:#14b8a61f;border-color:#14b8a659}.perf-chip.mid{background:#f59e0b1a;border-color:#f59e0b4d}.perf-chip.low{background:#ef444417;border-color:#ef44444d}.performance-hint{color:var(--text-muted);margin:0;font-size:9px;line-height:1.35}html,body{width:100%;height:100%;max-height:100%;overflow:hidden!important}body{min-height:100dvh}.app-main-container{width:100vw;height:100dvh;max-height:100dvh;overflow:hidden!important}.sidebar{height:100dvh;min-height:0;overflow:hidden}.sidebar-menu{min-height:0;overflow-y:auto}.sidebar-footer{flex-shrink:0}.main-content-layout{height:100dvh;min-height:0;overflow:hidden!important}.app-header-new,.search-overlay-bar,.copilot-bottom-bar{flex-shrink:0}.app-view{height:100%;min-height:0;overflow:hidden}.home-view,.patient-management-view,.ai-analysis-view{flex-direction:column;gap:14px;display:flex}.view-heading,.dashboard-metrics-grid{flex-shrink:0}.dashboard-table-card,.patient-management-card,.ai-chat-card,.ai-insights-card{min-height:0;overflow:hidden}.dashboard-table-card{flex:1}.patient-management-card{flex:1}.patient-profile-form-container,.ai-analysis-grid{flex:1;min-height:0}.ai-chat-card{height:100%;min-height:0}.ai-chat-messages{flex:1;height:auto;min-height:0}.ai-insights-card{max-height:100%}.insight-stack{min-height:0;overflow-y:auto}.sessions-view,.workspace-content-new.sessions-view,.workspace-content-new{height:100%;min-height:0;overflow:hidden!important}.workspace-column-new{height:100%;min-height:0;padding-right:4px;overflow-y:auto}.workspace-content-new>.workspace-column-new:nth-of-type(2){grid-template-rows:auto minmax(100px,.34fr) minmax(260px,1fr);display:grid}.workspace-content-new>.workspace-column-new:nth-of-type(3){grid-template-rows:auto minmax(0,1fr) auto;display:grid}.patient-header-card,.ai-generation-options,.btn-compile-ai-gradient,.performance-card{flex-shrink:0}.pre-analysis-card{min-height:0;overflow:hidden}.pre-analysis-body{min-height:0;padding-right:4px;overflow-y:auto}.notepad-card{min-height:0;overflow:hidden}.notepad-editor-outer{flex:1;min-height:0}.notepad-editor-outer .rich-editor{flex:1;overflow-y:auto;min-height:0!important;max-height:none!important}.report-generator-card{min-height:0;overflow:hidden}.report-output-box{flex:1;min-height:0;overflow:hidden}.report-editor-view{flex:1;overflow-y:auto;min-height:0!important;max-height:none!important}.performance-card{min-height:118px}@media (width<=768px){body{min-height:100dvh}.app-main-container{flex-direction:column;height:100dvh;max-height:100dvh;overflow:hidden!important}.sidebar{flex-shrink:0;width:100%;height:auto;min-height:0;max-height:210px;overflow:hidden}.sidebar-menu{flex-wrap:nowrap;overflow:auto hidden}.sidebar-footer{display:none}.main-content-layout{flex:1;height:auto;min-height:0;overflow:hidden!important}.workspace-area-new{min-height:0;padding:12px 12px 82px;overflow:hidden!important}.workspace-content-new.sessions-view,.workspace-content-new{flex-direction:column;gap:12px;padding-right:2px;display:flex;overflow-y:auto!important}.workspace-column-new{height:auto;padding-right:0;overflow:visible}.workspace-content-new>.workspace-column-new:nth-of-type(2),.workspace-content-new>.workspace-column-new:nth-of-type(3){flex-direction:column;display:flex}.pre-analysis-card{max-height:240px}.notepad-card{min-height:360px}.report-generator-card{min-height:420px}.patient-profile-form-container,.ai-analysis-grid{overflow-y:auto}.copilot-bottom-bar{height:72px;position:static}}.app-main-container{background:radial-gradient(circle at 5% 5%,#6366f114 0%,#0000 35%),radial-gradient(circle at 95% 95%,#a855f70f 0%,#0000 40%),radial-gradient(circle,#10b98108 0%,#0000 50%),#070a13!important}.clinical-select option,.patient-edit-panel select option,select option{color:#f3f4f6!important;background-color:#0d111d!important}body.light-mode .clinical-select option,body.light-mode .patient-edit-panel select option,body.light-mode select option{color:#0f172a!important;background-color:#fff!important}body{font-size:13px!important}.sidebar-menu .menu-item{font-size:12px!important}.sidebar-section-label{font-size:9px!important}.view-heading h1{font-size:18px!important}.workspace-card h3{font-size:13.5px!important}.profile-name{font-size:12px!important}.profile-role{font-size:9px!important}.clinical-select,.patient-edit-panel input,.patient-edit-panel textarea,.patient-edit-panel select,.ai-chat-input-row input{font-size:12px!important}.profile-card-header{cursor:pointer;border-radius:var(--radius-md);transition:background-color var(--transition-fast);align-items:center;gap:10px;padding:4px 8px;display:flex}.profile-card-header:hover{background-color:#ffffff0a}body.light-mode .profile-card-header:hover{background-color:#00000008}.workspace-area-new{flex:1!important;height:0!important;min-height:0!important;padding:12px 20px 75px!important;overflow:hidden!important}.workspace-content-new{align-items:stretch!important;height:100%!important;min-height:0!important}.workspace-column-new{height:100%!important;min-height:0!important;overflow:hidden!important}.workspace-content-new>.workspace-column-new:nth-of-type(2){grid-template-rows:auto minmax(0,1fr) minmax(0,1.6fr)!important;gap:12px!important;display:grid!important}.workspace-content-new>.workspace-column-new:nth-of-type(3){grid-template-rows:minmax(0,1fr)!important;gap:12px!important;display:grid!important}.patient-header-card,.pre-analysis-card,.notepad-card,.report-generator-card,.performance-card{min-height:0!important}.pre-analysis-card{flex-direction:column;display:flex;height:100%!important}.pre-analysis-body{flex:1;min-height:0;overflow-y:auto!important}.report-generator-card{flex-direction:column;display:flex;height:100%!important}.report-output-box{flex-direction:column;flex:1;min-height:0;display:flex}.report-editor-view{flex:1;min-height:0;overflow-y:auto!important}.ai-analysis-grid{align-items:stretch!important}.ai-chat-card{flex-direction:column;min-height:0;display:flex;height:100%!important}.ai-chat-messages{flex:1;min-height:0;height:auto!important;overflow-y:auto!important}.ai-insights-card{flex-direction:column;min-height:0;display:flex;height:100%!important}.insight-stack{flex:1;min-height:0;overflow-y:auto!important}@media (height<=480px){.modal{align-items:flex-start!important;padding:10px!important;overflow-y:auto!important}.modal-content.scroll-modal{height:auto!important;max-height:none!important;overflow-y:visible!important}}.copilot-bottom-bar{border-top:1px solid var(--border-color)!important;-webkit-backdrop-filter:blur(16px)!important;backdrop-filter:blur(16px)!important;z-index:100!important;background:linear-gradient(135deg,#080c18f5 0%,#0d111dfa 100%)!important;justify-content:space-between!important;align-items:center!important;gap:16px!important;height:56px!important;padding:0 24px!important;display:flex!important;position:absolute!important;bottom:0!important;left:0!important;right:0!important}body.light-mode .copilot-bottom-bar{background:linear-gradient(135deg,#eff6fff5 0%,#f8fafcfa 100%)!important}.copilot-bottom-bar .footer-status-text{color:var(--text-secondary)!important;align-items:center!important;font-size:11px!important;font-weight:500!important;display:flex!important}.copilot-bottom-bar.sessions-active .footer-status-text,.copilot-bottom-bar .btn-copilot-sparkles,.copilot-bottom-bar .copilot-input-wrapper{display:none!important}.copilot-bottom-bar.sessions-active .btn-copilot-sparkles{display:flex!important}.copilot-bottom-bar.sessions-active .copilot-input-wrapper{flex:1!important;max-width:650px!important;display:flex!important}.copilot-bottom-bar .copilot-input-wrapper input{height:36px!important;padding:8px 14px!important;font-size:12.5px!important}.copilot-bottom-bar .btn-copilot-sparkles,.copilot-bottom-bar .btn-send-copilot{width:36px!important;height:36px!important}.workspace-card{gap:10px!important;padding:12px 16px!important}.patient-header-card{padding:10px 16px!important}.options-grid{gap:6px!important}.option-checkbox-wrapper{gap:8px!important;padding:6px 12px!important}.performance-body{height:90px!important;padding:10px 14px!important}.sidebar-footer{padding:12px 16px!important}.btn-new-atendimento{padding:10px!important;font-size:12px!important}.sidebar-brand h2,body.light-mode .sidebar-brand h2{font-size:14px!important}.sidebar-brand{padding:16px 20px 10px!important}.app-header-new{height:56px!important}#btn-read-report.playing{animation:2s infinite pulse-border;color:#fff!important;background:linear-gradient(135deg,#10b981 0%,#059669 100%)!important;border-color:#10b981!important}@keyframes pulse-border{0%{box-shadow:0 0 #10b98166}70%{box-shadow:0 0 0 6px #10b98100}to{box-shadow:0 0 #10b98100}}body,p,li,span,label,td,th,input,select,textarea,button,.clinical-select,.menu-item span,.sidebar-menu-new a{font-size:11px!important}h1{font-size:15px!important}h2{font-size:13px!important}h3{font-size:12px!important}h4,h5,h6{font-size:11px!important}.metric-tile strong{font-size:24px!important}.perf-value{font-size:32px!important}.logo-title{font-size:13px!important}.sidebar-profile-role{font-size:8px!important}.notepad-editor-outer .rich-editor,.report-editor-view{font-size:11.5px!important;line-height:1.5!important}.ai-chat-message p,.ai-chat-message li{font-size:11px!important}.patient-card-left,.patient-card-info{flex:1!important;min-width:0!important}.patient-card-info h2{white-space:nowrap!important;text-overflow:ellipsis!important;font-size:13px!important;overflow:hidden!important}.patient-card-info p{white-space:nowrap!important;text-overflow:ellipsis!important;font-size:10px!important;overflow:hidden!important}.patient-card-right{flex-shrink:0!important;gap:8px!important;margin-left:12px!important;display:flex!important}.btn-history-card,.btn-meta-card{white-space:nowrap!important;padding:6px 10px!important;font-size:10px!important}.dashboard-table-card{flex-direction:column!important;min-height:0!important;display:flex!important;overflow:hidden!important}.patient-table-wrap{flex:1!important;min-height:0!important;overflow:auto!important}.ai-analysis-grid{grid-template-rows:minmax(0,1fr)!important}.ai-chat-card{flex-direction:column!important;height:100%!important;min-height:0!important;display:flex!important;overflow:hidden!important}.ai-chat-messages{flex:1!important;height:auto!important;min-height:0!important;overflow-y:auto!important}.progress-pct-badge{letter-spacing:.3px;background:#ffffff12;border-radius:6px;padding:2px 6px;display:inline-block;font-size:12px!important;font-weight:700!important}.patient-dashboard-table th.col-progress,.patient-dashboard-table td.col-progress{text-align:center}.sessions-workspace-grid{align-items:stretch!important}.report-section-card{flex-direction:column!important;flex:1!important;min-height:0!important;display:flex!important}.report-output-box{flex-direction:column!important;flex:1!important;min-height:0!important;max-height:none!important;display:flex!important}.report-editor-view{flex:1!important;height:calc(100vh - 340px)!important;min-height:0!important;max-height:none!important;overflow-y:auto!important}.report-editor-view[style*=max-height]{max-height:none!important}#view-analises{flex-direction:column!important;flex:1!important;min-height:0!important;display:flex!important}#view-analises .view-heading{flex-shrink:0!important}#view-analises .ai-analysis-grid{flex:1!important;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr)!important;align-items:stretch!important;gap:16px!important;min-height:0!important;display:grid!important}#view-analises .ai-chat-card{flex-direction:column!important;height:100%!important;min-height:0!important;display:flex!important;overflow:hidden!important}#view-analises .ai-chat-messages{flex:1!important;height:auto!important;min-height:200px!important;max-height:none!important;overflow-y:auto!important}#view-analises .ai-suggestion-row{flex-shrink:0!important;margin-top:8px!important}#view-analises .ai-chat-input-row{flex-shrink:0!important;margin-top:6px!important}#view-analises .ai-insights-card{flex-direction:column!important;height:100%!important;min-height:0!important;display:flex!important}.workspace-area-new{flex-direction:column!important;display:flex!important}.app-view{flex-direction:column!important;flex:1!important;min-height:0!important;display:flex!important;overflow:hidden!important}.app-view[style*="display: none"]{display:none!important}:root{--app-header-h:56px;--app-footer-h:56px;--app-workspace-pad-y:16px;--bg-app:#080b12;--bg-header:#0f141f;--bg-card:#141b29e0;--border-color:#b2cdde1f;--border-focus:#22d3ee;--primary:#14b8a6;--primary-gradient:linear-gradient(135deg, #14b8a6 0%, #0ea5e9 58%, #6366f1 100%);--secondary:#22d3ee;--success:#34d399;--danger:#fb7185;--spark:#8b5cf6;--text-primary:#f8fafc;--text-secondary:#b8c5d1;--text-muted:#7b8a9a;--bg-gradient-start:#101624;--bg-gradient-end:#080b12}body{background:radial-gradient(circle at 15% 15%, #22d3ee26 0%, transparent 40%), radial-gradient(circle at 85% 85%, #8b5cf621 0%, transparent 40%), radial-gradient(circle at 50% 15%, #14b8a61a 0%, transparent 45%), linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%)!important}body.light-mode{background:radial-gradient(circle at 15% 15%, #0ea5e92e 0%, transparent 40%), radial-gradient(circle at 85% 85%, #0f766e24 0%, transparent 40%), radial-gradient(circle at 50% 15%, #7c3aed24 0%, transparent 45%), linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%)!important}.workspace-card,.metric-tile,.option-checkbox-wrapper,.ai-chat-message,.insight-row{-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-color:var(--border-color)!important;background:#0f1626b8!important}body.light-mode .workspace-card,body.light-mode .metric-tile,body.light-mode .option-checkbox-wrapper,body.light-mode .ai-chat-message,body.light-mode .insight-row{-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-color:var(--border-color)!important;background:#ffffffd1!important;box-shadow:0 12px 30px -20px #0f766e40!important}.btn-new-atendimento,.btn-meta-card,.btn-compile-ai-gradient,.btn-copilot-sparkles{background:var(--primary-gradient)!important;box-shadow:0 10px 24px -16px #22d3eed9!important}.ai-suggestion-chip{color:var(--secondary)!important;background:#22d3ee1a!important;border-color:#22d3ee47!important}body.light-mode .ai-suggestion-chip{background:#0ea5e917!important;border-color:#0ea5e938!important}html,body,.app-main-container,.main-content-layout{height:100dvh!important;max-height:100dvh!important;overflow:hidden!important}.app-main-container{display:flex!important}.main-content-layout{min-height:0!important;position:relative!important}.app-header-new{height:var(--app-header-h)!important;min-height:var(--app-header-h)!important}.copilot-bottom-bar{height:var(--app-footer-h)!important;min-height:var(--app-footer-h)!important}.workspace-area-new{flex:0 0 calc(100dvh - var(--app-header-h) - var(--app-footer-h))!important;height:calc(100dvh - var(--app-header-h) - var(--app-footer-h))!important;max-height:calc(100dvh - var(--app-header-h) - var(--app-footer-h))!important;min-height:0!important;padding:var(--app-workspace-pad-y) 24px!important;overflow:hidden!important}#view-analises{flex-direction:column!important;height:100%!important;min-height:0!important;display:flex!important;overflow:hidden!important}#view-analises[style*="display: none"]{display:none!important}#view-analises .view-heading{flex:none!important;margin-bottom:14px!important}#view-analises .ai-analysis-grid{flex:1!important;grid-template-rows:minmax(0,1fr)!important;grid-template-columns:minmax(0,1.65fr) minmax(320px,.9fr)!important;align-items:stretch!important;gap:16px!important;height:0!important;min-height:0!important;display:grid!important;overflow:hidden!important}#view-analises .ai-chat-card,#view-analises .ai-insights-card{flex-direction:column!important;height:100%!important;min-height:0!important;max-height:100%!important;display:flex!important;overflow:hidden!important}#view-analises .ai-chat-card{padding:18px!important}#view-analises .ai-chat-messages{flex:1!important;height:auto!important;min-height:0!important;max-height:none!important;margin:8px 0 10px!important;overflow-y:auto!important}#view-analises .ai-suggestion-row,#view-analises .ai-chat-input-row{flex:none!important}#view-analises .ai-chat-input-row{margin-top:4px!important}#view-analises .insight-stack{flex:1!important;min-height:0!important;overflow-y:auto!important}.footer-status-text{min-width:0!important}.footer-status-text span{text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important}@media (width<=980px){#view-analises .ai-analysis-grid{grid-template-rows:minmax(0,1.2fr) minmax(180px,.8fr)!important;grid-template-columns:1fr!important;overflow-y:auto!important}}@media (width<=768px){:root{--app-header-h:56px;--app-footer-h:56px;--app-workspace-pad-y:12px}.sidebar{height:auto!important;max-height:172px!important}.workspace-area-new{flex-basis:calc(100dvh - 172px - var(--app-header-h) - var(--app-footer-h))!important;height:calc(100dvh - 172px - var(--app-header-h) - var(--app-footer-h))!important;max-height:calc(100dvh - 172px - var(--app-header-h) - var(--app-footer-h))!important;padding:var(--app-workspace-pad-y)!important}#view-analises .ai-analysis-grid{gap:12px!important}}#workspace-content.sessions-view{flex:none!important;grid-template-rows:minmax(0,1fr)!important;grid-template-columns:minmax(0,1.08fr) minmax(420px,.92fr)!important;align-items:stretch!important;gap:16px!important;width:100%!important;height:100%!important;min-height:0!important;display:grid!important;overflow:hidden!important}#workspace-content.sessions-view[style*="display: none"]{display:none!important}#workspace-content.sessions-view .workspace-column-new{scrollbar-gutter:stable!important;height:100%!important;min-height:0!important;padding-right:4px!important;overflow:hidden!important}#workspace-content.sessions-view>.workspace-column-new:nth-of-type(2){grid-template-rows:auto minmax(0,.55fr) minmax(0,1.45fr)!important;align-content:stretch!important;gap:14px!important;display:grid!important}#workspace-content.sessions-view .report-actions-row{grid-template-columns:repeat(4,1fr)!important;grid-template-areas:"ouvir imprimir pdf word""drive drive drive drive"!important;gap:8px!important;width:100%!important;display:grid!important}#workspace-content.sessions-view #btn-read-report{grid-area:ouvir!important}#workspace-content.sessions-view #btn-print-report{grid-area:imprimir!important}#workspace-content.sessions-view #btn-export-pdf{grid-area:pdf!important}#workspace-content.sessions-view #btn-export-word{grid-area:word!important}#workspace-content.sessions-view #btn-open-gdrive-doc{grid-area:drive!important;justify-content:center!important;width:100%!important;height:38px!important}#workspace-content.sessions-view>.workspace-column-new:nth-of-type(3){grid-template-rows:minmax(0,1fr)!important;align-content:stretch!important;gap:14px!important;display:grid!important}#workspace-content.sessions-view .workspace-card{min-width:0!important}#workspace-content.sessions-view .patient-header-card{min-height:82px!important;max-height:106px!important;overflow:hidden!important}#workspace-content.sessions-view .pre-analysis-card{flex-direction:column!important;min-height:0!important;max-height:none!important;display:flex!important;overflow:hidden!important}#workspace-content.sessions-view .notepad-card,#workspace-content.sessions-view .report-generator-card{flex-direction:column!important;min-height:0!important;padding:10px 12px!important;display:flex!important;overflow:hidden!important}#workspace-content.sessions-view .card-header-simple,#workspace-content.sessions-view .ai-generation-options,#workspace-content.sessions-view .btn-compile-ai-gradient,#workspace-content.sessions-view .report-actions-row,#workspace-content.sessions-view .notepad-editor-bottom{flex:none!important}#workspace-content.sessions-view .pre-analysis-body{flex:1 1 0!important;min-height:0!important;max-height:none!important;overflow-y:auto!important}#workspace-content.sessions-view .notepad-editor-outer{flex-direction:column!important;flex:1 1 0!important;min-height:0!important;max-height:none!important;display:flex!important;overflow:hidden!important}#workspace-content.sessions-view .notepad-editor-outer .rich-editor{flex:1 1 0!important;min-height:0!important;max-height:none!important;overflow-y:auto!important}#workspace-content.sessions-view .report-generator-card{gap:6px!important}#workspace-content.sessions-view .ai-generation-options{background:0 0!important;border:none!important;gap:4px!important;margin-bottom:0!important;padding:0!important}#workspace-content.sessions-view .options-header{margin-bottom:0!important;font-size:11.5px!important}#workspace-content.sessions-view .options-header-row{align-items:center!important}#workspace-content.sessions-view .report-config-actions{gap:6px!important}#workspace-content.sessions-view .report-type-select{min-width:176px!important;max-width:210px!important;height:32px!important;font-size:10px!important}#workspace-content.sessions-view .report-options-dropdown summary{min-height:32px!important;padding:0 9px!important;font-size:10px!important}#workspace-content.sessions-view .report-options-panel{width:300px!important;padding:8px!important}#workspace-content.sessions-view .btn-compile-ai-gradient{margin-top:0!important;padding:8px 16px!important;font-size:12px!important}#workspace-content.sessions-view .report-output-box{flex-direction:column!important;flex:1 1 0!important;gap:6px!important;min-height:0!important;max-height:none!important;display:flex!important;overflow:hidden!important}#workspace-content.sessions-view .report-editor-view{flex:1 1 0!important;min-height:0!important;max-height:none!important;overflow-y:auto!important}#workspace-content.sessions-view .performance-card{flex-direction:column!important;flex:none!important;justify-content:flex-start!important;align-items:stretch!important;gap:8px!important;height:auto!important;min-height:126px!important;padding:10px 16px 12px!important;display:flex!important;overflow:hidden!important}#workspace-content.sessions-view .performance-card .performance-title{color:var(--text-secondary)!important;white-space:nowrap!important;margin:0!important;font-size:10px!important;font-weight:700!important}#workspace-content.sessions-view .performance-card .performance-body{flex-direction:row!important;flex:none!important;justify-content:space-between!important;align-items:center!important;gap:14px!important;height:auto!important;padding:10px 12px!important;display:flex!important}#workspace-content.sessions-view .performance-card .perf-circle-container{flex-direction:row!important;align-items:center!important;gap:8px!important;display:flex!important}#workspace-content.sessions-view .performance-card .perf-score-stack{flex-direction:column!important;gap:2px!important;display:flex!important}#workspace-content.sessions-view .performance-card .perf-value{font-size:22px!important;font-weight:800!important;line-height:1!important}#workspace-content.sessions-view .performance-card .perf-status{font-size:9px!important}#workspace-content.sessions-view .performance-card .perf-change{white-space:nowrap!important;font-size:9px!important;line-height:1!important}#workspace-content.sessions-view .performance-card .perf-right{align-items:center!important;display:flex!important}#workspace-content.sessions-view .performance-card .perf-graph-mock{opacity:1!important;width:148px!important;height:14px!important;margin:0!important}#workspace-content.sessions-view .option-checkbox-wrapper{border-radius:var(--radius-md)!important;text-align:left!important;flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;gap:6px!important;min-width:0!important;padding:6px 8px!important;display:flex!important}#workspace-content.sessions-view .custom-checkbox{width:12px!important;height:12px!important}#workspace-content.sessions-view .option-checkbox-wrapper input:checked+.custom-checkbox:after{font-size:7.5px!important}#workspace-content.sessions-view .option-label-text{white-space:normal!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;font-size:9.5px!important;font-weight:500!important;line-height:1.15!important;display:-webkit-box!important;overflow:hidden!important}@media (width<=980px){#workspace-content.sessions-view{flex-direction:column!important;height:100%!important;display:flex!important;overflow-y:auto!important}#workspace-content.sessions-view .workspace-column-new{height:auto!important;min-height:auto!important;padding-right:0!important;overflow:visible!important}#workspace-content.sessions-view>.workspace-column-new:nth-of-type(2),#workspace-content.sessions-view>.workspace-column-new:nth-of-type(3){flex-direction:column!important;display:flex!important}#workspace-content.sessions-view .performance-card .performance-body{align-items:stretch!important;gap:10px!important}#workspace-content.sessions-view .performance-card .perf-right{flex:auto!important;min-width:0!important}#workspace-content.sessions-view .performance-card .perf-graph-mock{width:100%!important;max-width:136px!important}}:root{--app-footer-h:48px}.copilot-bottom-bar{height:var(--app-footer-h)!important;min-height:var(--app-footer-h)!important;max-height:var(--app-footer-h)!important;align-items:center!important;padding:0 20px!important;overflow:hidden!important}.copilot-bottom-bar.sessions-active{gap:12px!important}.copilot-bottom-bar .btn-copilot-sparkles,.copilot-bottom-bar .btn-send-copilot{width:34px!important;min-width:34px!important;height:34px!important}.copilot-bottom-bar .copilot-input-wrapper input{height:34px!important}.footer-status-text,.copilot-status-pill{align-items:center!important;height:100%!important;min-height:0!important}.footer-status-text span{max-width:min(980px,64vw)!important}.sidebar-footer{border-top:1px solid var(--border-color)!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;height:auto!important;min-height:auto!important;max-height:none!important;padding:16px 12px!important;display:flex!important;overflow:visible!important}.sidebar-footer-menu{flex-direction:column!important;gap:4px!important;width:100%!important;display:flex!important}.sidebar-footer .menu-item{color:var(--text-secondary)!important;border-radius:var(--radius-sm)!important;box-sizing:border-box!important;align-items:center!important;gap:12px!important;width:100%!important;padding:10px 16px!important;font-size:13px!important;font-weight:500!important;text-decoration:none!important;transition:all .2s!important;display:flex!important}.sidebar-footer .menu-item i{justify-content:center!important;align-items:center!important;width:20px!important;font-size:16px!important;display:flex!important}.btn-new-atendimento{border-radius:18px!important;height:36px!important;min-height:36px!important;padding:0 14px!important}@media (width<=768px){:root{--app-footer-h:48px}.copilot-bottom-bar{padding:0 12px!important}}#edit-treatment-goal,#edit-patient-anamnesis{box-sizing:border-box!important;resize:none!important;border:1px solid var(--border-color)!important;width:100%!important;min-width:0!important;max-width:100%!important;height:166px!important;min-height:166px!important;max-height:166px!important;transition:background-color var(--transition-fast), color var(--transition-fast)!important;outline:0!important;overflow-y:auto!important}#edit-treatment-goal:hover,#edit-treatment-goal:focus,#edit-treatment-goal:focus-visible,#edit-patient-anamnesis:hover,#edit-patient-anamnesis:focus,#edit-patient-anamnesis:focus-visible{border:1px solid var(--border-color)!important;outline:0!important;box-shadow:inset 0 0 0 1px #22d3ee1a!important}body.light-mode #edit-treatment-goal:hover,body.light-mode #edit-treatment-goal:focus,body.light-mode #edit-treatment-goal:focus-visible,body.light-mode #edit-patient-anamnesis:hover,body.light-mode #edit-patient-anamnesis:focus,body.light-mode #edit-patient-anamnesis:focus-visible{border:1px solid var(--border-color)!important;box-shadow:inset 0 0 0 1px #0891b21a!important}#workspace-content.sessions-view .report-editor-view{border:1px solid #00000014!important;border-top:4px solid var(--primary)!important;border-radius:var(--radius-md)!important;color:#1e293b!important;background:#fdfbf7!important;padding:36px 40px!important;font-family:Inter,Georgia,serif!important;line-height:1.65!important;transition:all .3s!important;box-shadow:0 15px 35px -12px #00000073,inset 0 0 40px #00000008!important}body.light-mode #workspace-content.sessions-view .report-editor-view{color:#0f172a!important;background:#fff!important;box-shadow:0 15px 35px -12px #0f766e2e,inset 0 0 40px #00000003!important}#workspace-content.sessions-view .report-editor-view h1{color:#1e3b8b!important;border-bottom:2px solid #1e3b8b33!important;margin-bottom:20px!important;padding-bottom:8px!important;font-size:16px!important;font-weight:800!important}body.light-mode #workspace-content.sessions-view .report-editor-view h1{color:var(--primary)!important;border-bottom-color:#0f766e33!important}@keyframes shimmerEffect{0%{background-position:-200% 0}to{background-position:200% 0}}.compiling-stages{background:linear-gradient(90deg,#8b5cf608 25%,#8b5cf61f 37%,#8b5cf608 63%) 0 0/200% 100%!important;border:1px dashed #a855f759!important;padding:16px!important;animation:2.5s linear infinite shimmerEffect!important;box-shadow:inset 0 0 12px #a855f70a!important}body.light-mode .compiling-stages{background:linear-gradient(90deg,#0f766e05 25%,#0f766e14 37%,#0f766e05 63%) 0 0/200% 100%!important;border-color:#0f766e4d!important}.sidebar-menu .menu-item{position:relative!important;overflow:hidden!important}.sidebar-menu .menu-item:before{content:""!important;background:var(--primary-gradient)!important;opacity:0!important;border-radius:0 4px 4px 0!important;width:4px!important;height:18px!important;transition:all .3s cubic-bezier(.4,0,.2,1)!important;position:absolute!important;top:50%!important;left:0!important;transform:translateY(-50%)scaleY(0)!important}.sidebar-menu .menu-item.active:before{opacity:1!important;transform:translateY(-50%)scaleY(1)!important}.sidebar-menu .menu-item.active{color:var(--text-primary)!important;background:linear-gradient(90deg,#14b8a614 0%,#0000 100%)!important;font-weight:600!important}body.light-mode .sidebar-menu .menu-item.active{background:linear-gradient(90deg,#0f766e14 0%,#0000 100%)!important}.sidebar-menu .menu-item:hover i{color:var(--primary)!important;transform:scale(1.15)!important}.acoustic-pitch-panel{border-radius:var(--radius-md)!important;background:#0f172af2!important;border:1px solid #22d3ee33!important;margin:8px 16px 12px!important;padding:10px 14px!important;animation:.3s cubic-bezier(.4,0,.2,1) slideDown!important;box-shadow:0 10px 30px -15px #06b6d466!important}body.light-mode .acoustic-pitch-panel{background:#f8fafcf2!important;border-color:#0f766e40!important;box-shadow:0 10px 30px -15px #0f766e33!important}.acoustic-header{text-transform:uppercase!important;letter-spacing:.5px!important;color:var(--text-secondary)!important;justify-content:space-between!important;align-items:center!important;margin-bottom:8px!important;font-size:10px!important;font-weight:700!important;display:flex!important}#acoustic-hz-display{color:#22d3ee!important;background:#22d3ee26!important;border:1px solid #22d3ee33!important;border-radius:4px!important;padding:2px 6px!important;font-family:monospace!important;font-size:11px!important}body.light-mode #acoustic-hz-display{color:#0284c7!important;background:#0ea5e91a!important;border-color:#0ea5e933!important}.acoustic-canvas-container{border-radius:var(--radius-sm)!important;background:#020617!important;border:1px solid #ffffff0d!important;width:100%!important;height:130px!important;position:relative!important;overflow:hidden!important}body.light-mode .acoustic-canvas-container{background:#0f172a!important}#acoustic-pitch-canvas{width:100%!important;height:100%!important;display:block!important}#acoustic-vocal-indicator{text-transform:uppercase!important;letter-spacing:.5px!important;color:#fff6!important;pointer-events:none!important;background:#00000080!important;border-radius:4px!important;padding:2px 6px!important;font-size:8px!important;font-weight:700!important;position:absolute!important;bottom:6px!important;right:8px!important}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.ai-chat-messages{scrollbar-width:thin!important;scrollbar-color:#ffffff1a transparent!important;background:radial-gradient(circle at 100% 0,#6366f10d,#00000040)!important;border:1px solid #ffffff0f!important;box-shadow:inset 0 2px 8px #0000004d!important}body.light-mode .ai-chat-messages{scrollbar-color:#0000001a transparent!important;background:radial-gradient(circle at 100% 0,#0f766e0a,#f8fafcf2)!important;border:1px solid #0000000f!important;box-shadow:inset 0 2px 6px #0000000d!important}.ai-chat-message{border-radius:4px 16px 16px!important;margin-bottom:4px!important;padding:12px 16px!important;transition:all .2s!important;animation:.35s cubic-bezier(.34,1.56,.64,1) bubblePopIn!important;box-shadow:0 4px 12px #00000026!important}@keyframes bubblePopIn{0%{opacity:0;transform:scale(.9)translateY(10px)}to{opacity:1;transform:scale(1)translateY(0)}}.ai-chat-message.user{background:linear-gradient(135deg,#06b6d426,#3b82f626)!important;border:1px solid #06b6d44d!important;border-radius:16px 4px 16px 16px!important;box-shadow:0 4px 14px #06b6d41f!important}body.light-mode .ai-chat-message.user{background:linear-gradient(135deg,#0ea5e914,#0284c714)!important;border-color:#0ea5e940!important;box-shadow:0 4px 10px #0ea5e90f!important}.ai-chat-message.assistant{-webkit-backdrop-filter:blur(8px)!important;backdrop-filter:blur(8px)!important;background:#1e293bb3!important;border:1px solid #ffffff0d!important}body.light-mode .ai-chat-message.assistant{background:#fff!important;border-color:#0000000f!important;box-shadow:0 4px 12px #0000000a!important}.ai-chat-message.is-pending:after{content:"..."!important;animation:typingDots 1.4s infinite loadingStep!important;letter-spacing:2px!important;margin-left:2px!important;font-weight:900!important;display:inline-block!important}@keyframes typingDots{0%,to{opacity:.2}50%{opacity:1}}.ai-chat-input-row{border-radius:var(--radius-lg)!important;-webkit-backdrop-filter:blur(12px)!important;backdrop-filter:blur(12px)!important;background:#1e293b66!important;border:1px solid #ffffff0d!important;align-items:flex-end!important;gap:8px!important;margin-top:12px!important;padding:6px!important;display:flex!important;box-shadow:0 8px 32px #0003!important}body.light-mode .ai-chat-input-row{background:#fffc!important;border-color:#0000000f!important;box-shadow:0 6px 20px #00000008!important}.ai-chat-input-row textarea{box-shadow:none!important;resize:none!important;height:38px!important;color:inherit!important;background:0 0!important;border:none!important;outline:none!important;flex:1!important;padding:8px 12px!important;font-family:inherit!important;font-size:12px!important}.dashboard-card,.metric-card{transition:all .35s cubic-bezier(.4,0,.2,1)!important;position:relative!important;overflow:hidden!important}.dashboard-card:before,.metric-card:before{content:""!important;opacity:0!important;pointer-events:none!important;background:radial-gradient(circle at 0 0,#14b8a60d,#0000 60%)!important;transition:opacity .3s!important;position:absolute!important;inset:0!important}.dashboard-card:hover:before,.metric-card:hover:before{opacity:1!important}.dashboard-card:hover,.metric-card:hover{border-color:#14b8a64d!important;transform:translateY(-4px)scale(1.01)!important;box-shadow:0 20px 40px -15px #00000080,0 0 15px #14b8a626!important}body.light-mode .dashboard-card:hover,body.light-mode .metric-card:hover{border-color:#0f766e40!important;box-shadow:0 15px 30px -12px #0f766e1f,0 0 10px #0f766e1a!important}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:#94a3b833;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:#94a3b866}.audio-volume-meter{background:#ffffff14!important;border:1px solid #ffffff0d!important;border-radius:3px!important;align-items:center!important;width:60px!important;height:6px!important;display:flex!important;overflow:hidden!important;box-shadow:inset 0 1px 3px #0006!important}body.light-mode .audio-volume-meter{background:#00000014!important;border-color:#0000000a!important;box-shadow:inset 0 1px 2px #0000001a!important}.volume-bar-inner{width:0%;background:linear-gradient(90deg,#10b981 0%,#06b6d4 70%,#8b5cf6 100%)!important;border-radius:3px!important;height:100%!important;transition:width .1s ease-out!important;box-shadow:0 0 8px #06b6d499!important}.timeline{flex-direction:column!important;gap:16px!important;margin-top:16px!important;padding-left:24px!important;display:flex!important;position:relative!important}.timeline:before{content:""!important;background:linear-gradient(to bottom, var(--primary), #a855f766, transparent)!important;border-radius:1px!important;width:2px!important;position:absolute!important;top:6px!important;bottom:6px!important;left:4px!important}.timeline-item{border-radius:var(--radius-md)!important;background:#1e293b66!important;border:1px solid #ffffff0a!important;padding:14px 16px!important;transition:all .3s cubic-bezier(.4,0,.2,1)!important;position:relative!important;box-shadow:0 4px 20px -5px #00000026!important}body.light-mode .timeline-item{background:#fffffff2!important;border-color:#0000000d!important;box-shadow:0 4px 15px -5px #00000008!important}.timeline-item:hover{border-color:#a855f740!important;transform:translate(4px)!important;box-shadow:0 6px 24px -6px #a855f726!important}body.light-mode .timeline-item:hover{border-color:#0f766e40!important;box-shadow:0 6px 20px -6px #0f766e1a!important}.timeline-item:before{content:""!important;border:3px solid var(--primary)!important;width:10px!important;height:10px!important;box-shadow:0 0 10px var(--primary)!important;z-index:2!important;background:#0f172a!important;border-radius:50%!important;transition:all .3s!important;position:absolute!important;top:18px!important;left:-24px!important}body.light-mode .timeline-item:before{background:#fff!important;box-shadow:0 0 6px #0f766e66!important}.timeline-item:hover:before{border-color:var(--spark)!important;box-shadow:0 0 12px var(--spark)!important;transform:scale(1.2)!important}.timeline-header{justify-content:space-between!important;align-items:center!important;margin-bottom:8px!important;display:flex!important}.timeline-date{color:var(--text-primary)!important;font-size:11px!important;font-weight:700!important}.timeline-type{text-transform:uppercase!important;letter-spacing:.5px!important;color:#a855f7!important;background:#a855f71f!important;border-radius:12px!important;padding:2px 8px!important;font-size:9px!important;font-weight:800!important}body.light-mode .timeline-type{color:var(--primary)!important;background:#0f766e14!important}.timeline-content{color:var(--text-secondary)!important;font-size:12px!important;line-height:1.6!important}.header-center{flex:1;justify-content:center;align-items:center;margin:0 20px;display:flex}.header-patient-selector-wrap{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#ffffff0a;border:1px solid #ffffff1a;border-radius:30px;align-items:center;gap:8px;padding:6px 16px;transition:all .3s cubic-bezier(.4,0,.2,1);display:flex;position:relative;box-shadow:0 4px 12px #00000026}body.light-mode .header-patient-selector-wrap{background:#0f766e0a;border-color:#0f766e1f;box-shadow:0 4px 12px #0f766e0f}.header-patient-selector-wrap:hover,.header-patient-selector-wrap:focus-within{border-color:var(--secondary);background:#0ea5e90f;box-shadow:0 0 14px #0ea5e940}body.light-mode .header-patient-selector-wrap:hover,body.light-mode .header-patient-selector-wrap:focus-within{border-color:var(--primary);background:#0f766e14;box-shadow:0 0 14px #0f766e26}.header-patient-label{color:var(--text-secondary);text-transform:uppercase;letter-spacing:.8px;white-space:nowrap;align-items:center;gap:8px;font-size:11px;font-weight:700;display:flex}.header-patient-label i{color:var(--secondary);font-size:13px}body.light-mode .header-patient-label i{color:var(--primary)}.header-patient-select{color:var(--text-primary);font-family:var(--font-heading);cursor:pointer;appearance:none;text-align:center;text-align-last:center;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230ea5e9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") 100%/12px no-repeat;border:none;outline:none;min-width:140px;margin:0;padding:2px 20px;font-size:13px;font-weight:700}body.light-mode .header-patient-select{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") 100%/12px no-repeat}.header-patient-select option{color:var(--text-primary);text-align:center;background-color:#0b0f19;padding:8px;font-weight:500}body.light-mode .header-patient-select option{color:var(--text-primary);background-color:#fff}.ambient-aurora-glow-1,.ambient-aurora-glow-2{filter:blur(140px)!important;pointer-events:none!important;z-index:-3!important;opacity:.35!important;border-radius:50%!important;transition:all .5s!important;animation:16s ease-in-out infinite alternate auroraFloat!important;position:fixed!important}.ambient-aurora-glow-1{background:radial-gradient(circle,#a855f766 0%,#0000 80%)!important;width:350px!important;height:350px!important;top:-10%!important;left:20%!important}.ambient-aurora-glow-2{background:radial-gradient(circle,#06b6d44d 0%,#0000 80%)!important;width:450px!important;height:450px!important;bottom:-5%!important;right:15%!important}body.light-mode .ambient-aurora-glow-1{background:radial-gradient(circle,#0f766e1f 0%,#0000 80%)!important}body.light-mode .ambient-aurora-glow-2{background:radial-gradient(circle,#0ea5e91a 0%,#0000 80%)!important}@keyframes auroraFloat{0%{transform:translate(0)scale(1)rotate(0)}33%{transform:translate(30px,20px)scale(1.06)rotate(10deg)}66%{transform:translate(-15px,10px)scale(.95)rotate(-5deg)}to{transform:translate(0)scale(1)rotate(0)}}.workspace-card:hover,.ai-chat-card:focus-within{border-color:#06b6d466!important;box-shadow:0 12px 30px -10px #0006,0 0 16px #06b6d41a!important}body.light-mode .workspace-card:hover,body.light-mode .ai-chat-card:focus-within{border-color:#0f766e4d!important;box-shadow:0 8px 24px -8px #0f766e14,0 0 12px #0f766e0f!important}.notepad-waveform-container{transition:all .3s!important;box-shadow:0 4px 20px #0000001a!important}#btn-record-audio.recording{animation:1.2s infinite alternate recordingPulse!important;box-shadow:0 0 15px #ef4444cc!important}@keyframes recordingPulse{0%{transform:scale(1);box-shadow:0 0 10px #ef444480}to{transform:scale(1.06);box-shadow:0 0 20px #ef4444d9}}.btn-compile-gemini:hover,.btn-send-copilot:hover{filter:brightness(1.1)drop-shadow(0 0 6px #0ea5e94d)!important}@keyframes viewFadeIn{0%{opacity:0;filter:blur(8px);transform:translateY(12px)scale(.985)}to{opacity:1;filter:blur();transform:translateY(0)scale(1)}}#menu-configuracoes:hover i{animation:1.5s linear infinite gearSpin!important}@keyframes gearSpin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}#btn-header-notifications:hover i{color:var(--secondary)!important;animation:.6s ease-in-out infinite alternate bellShake!important}body.light-mode #btn-header-notifications:hover i{color:var(--primary)!important}@keyframes bellShake{0%{transform:rotate(-15deg)}to{transform:rotate(15deg)}}#btn-toggle-theme:hover i{animation:1.2s ease-in-out infinite alternate moonPulse!important}@keyframes moonPulse{0%{filter:brightness();transform:scale(1)rotate(-10deg)}to{filter:brightness(1.3);transform:scale(1.15)rotate(10deg)}}@keyframes slowBgMove{0%{background-position:0%}50%{background-position:100%}to{background-position:0%}}body{background:linear-gradient(135deg,#070913 0%,#0d1222 25%,#050d24 50%,#0c0919 75%,#04060c 100%) 0 0/400% 400%!important;animation:24s infinite slowBgMove!important}body.light-mode{background:linear-gradient(135deg,#eef2f6 0%,#e0e7ff 25%,#dbeafe 50%,#e2e8f0 75%,#f1f5f9 100%) 0 0/400% 400%!important;animation:24s infinite slowBgMove!important}.sidebar{-webkit-backdrop-filter:blur(20px);background:#080c18b8!important;border-right:1px solid #ffffff0d!important}body.light-mode .sidebar{-webkit-backdrop-filter:blur(20px);background:#f8fafcb8!important;border-right:1px solid #0f766e14!important}.sidebar-menu .menu-item{position:relative;transition:transform .3s cubic-bezier(.25,.8,.25,1),color .3s,background-color .3s!important}.sidebar-menu .menu-item:hover{transform:translate(6px);color:var(--text-primary)!important;background-color:#ffffff08!important}body.light-mode .sidebar-menu .menu-item:hover{background-color:#0f766e0a!important}.sidebar-menu .menu-item.active{box-shadow:inset 2px 0 0 var(--spark);font-weight:600;border-right-color:var(--spark)!important;color:#fff!important;background:linear-gradient(90deg,#6366f11f 0%,#a855f708 100%)!important}body.light-mode .sidebar-menu .menu-item.active{box-shadow:inset 2px 0 0 var(--primary);border-right-color:var(--primary)!important;color:var(--primary)!important;background:linear-gradient(90deg,#0f766e1a 0%,#0ea5e905 100%)!important}.sidebar-menu .menu-item i{transition:transform .35s cubic-bezier(.34,1.56,.64,1),color .3s!important}.sidebar-menu .menu-item:hover i{transform:scale(1.2)rotate(-6deg);color:var(--secondary)!important}body.light-mode .sidebar-menu .menu-item:hover i{color:var(--primary)!important}.sidebar-menu .menu-item.active i{filter:drop-shadow(0 0 8px #22d3ee66);transform:scale(1.1);color:var(--secondary)!important}body.light-mode .sidebar-menu .menu-item.active i{filter:drop-shadow(0 0 8px #0f766e4d);color:var(--primary)!important}.btn-new-atendimento{position:relative;overflow:hidden;transition:all .3s ease-in-out!important}.btn-new-atendimento:before{content:"";background:linear-gradient(90deg,#0000,#ffffff40,#0000);width:50%;height:100%;transition:left .6s;position:absolute;top:0;left:-150%;transform:skew(-20deg)}.btn-new-atendimento:hover:before{transition:left .6s;left:150%}.btn-new-atendimento:hover{transform:translateY(-2px);box-shadow:0 8px 20px -8px #22d3eebf!important}#view-analises .ai-insights-card{flex-direction:column!important;display:flex!important;overflow:hidden!important}#view-analises .treatment-chart-section{padding-right:0;flex:1!important;min-height:0!important;overflow:hidden!important}.patient-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important;padding:0!important;display:grid!important}.psg-cell{border:1px solid var(--border-color)!important;background:#ffffff08!important;border-radius:6px!important;flex-direction:column!important;gap:1px!important;padding:3px 6px!important;display:flex!important}body.light-mode .psg-cell{background:#0f766e0a!important}.psg-cell.psg-span2{grid-column:span 2!important}.psg-label{text-transform:uppercase!important;letter-spacing:.5px!important;color:var(--text-muted)!important;font-size:8px!important;font-weight:800!important;line-height:1!important}.psg-value{color:var(--text-primary)!important;word-break:break-word!important;font-size:9px!important;font-weight:600!important;line-height:1.1!important}.psg-value.psg-big{color:#2dd4bf!important;font-size:11px!important;font-weight:700!important;line-height:1!important}.psg-value.psg-pathology{font-size:8.5px!important;line-height:1.1!important}.psg-goal{background:#6366f10f!important;border-color:#6366f133!important}.psg-goal-text{color:var(--text-secondary)!important;margin:1px 0 0!important;padding:0!important;font-size:8.5px!important;line-height:1.2!important}#view-analises .ai-insights-card .section-toolbar{flex:none!important;margin-bottom:0!important;padding-bottom:10px!important}.report-zoom-toolbar{border:1px solid var(--border-color);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#ffffff0a;border-radius:10px;align-items:center;gap:6px;width:fit-content;margin:0 auto 4px;padding:4px 8px;display:flex}body.light-mode .report-zoom-toolbar{background:#0f766e0f;border-color:#0f766e26}.zoom-btn{width:28px;height:28px;color:var(--text-primary);cursor:pointer;background:#ffffff12;border:none;border-radius:6px;justify-content:center;align-items:center;font-size:12px;transition:background .2s,transform .15s;display:flex}.zoom-btn:hover{color:var(--secondary);background:#22d3ee2e;transform:scale(1.1)}body.light-mode .zoom-btn:hover{color:var(--primary);background:#0f766e26}.zoom-btn.zoom-reset{border-left:1px solid var(--border-color);background:0 0;margin-left:4px;padding-left:8px}.zoom-label{color:var(--text-secondary);text-align:center;letter-spacing:.5px;-webkit-user-select:none;user-select:none;min-width:38px;font-size:12px;font-weight:600}.report-scroll-viewport{border-radius:var(--radius-md);border:1px solid var(--border-color);background:#e8ecef;flex:1;min-height:0;overflow:auto;box-shadow:inset 0 2px 8px #0000001f}body.light-mode .report-scroll-viewport{background:#dde3ea}.report-scale-wrapper{zoom:.45;width:794px;margin-bottom:0;margin-left:auto;margin-right:auto;padding:20px 0;display:block}#workspace-content.sessions-view .report-scale-wrapper .report-editor-view{color:#334155!important;width:794px!important;height:auto!important;min-height:500px!important;max-height:none!important;font-family:var(--font-body)!important;box-sizing:border-box!important;background-color:#fff!important;border:1px solid #0000001a!important;border-radius:3px!important;flex:none!important;padding:40px 48px!important;font-size:13px!important;line-height:1.7!important;overflow:visible!important;box-shadow:0 4px 20px #0000002e,0 1px 4px #0000001a!important}.report-output-box{flex-direction:column!important;gap:0!important;height:100%!important;max-height:none!important;padding:6px!important;display:flex!important}.patient-profile-form-container .form-group{gap:2px;margin-bottom:0}.patient-profile-form-container .form-row{gap:8px}.patient-profile-form-container input,.patient-profile-form-container select{box-sizing:border-box;height:30px!important;padding:6px 10px!important;font-size:12px!important}.patient-profile-form-container textarea{resize:vertical;min-height:52px!important;padding:6px 10px!important;font-size:12px!important}.patient-profile-form-container .clinical-select{height:30px!important;padding:6px 10px!important;font-size:12px!important}.patient-profile-form-container .compact-selector{height:22px!important;padding:2px 6px!important;font-size:10px!important}.patient-profile-form-container label{margin-bottom:1px;font-size:10px!important}.patient-profile-form-container .field-header-row{margin-bottom:2px!important}.patient-cell-wrap{align-items:center;gap:10px;display:flex}.patient-avatar{color:#fff;letter-spacing:.5px;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:34px;height:34px;font-size:11px;font-weight:700;display:flex;box-shadow:0 2px 8px #00000040}.patient-cell-info{flex-direction:column;gap:1px;min-width:0;display:flex}.patient-cell-info span{color:var(--text-muted);white-space:nowrap;text-overflow:ellipsis;max-width:120px;font-size:10px;overflow:hidden}.status-badge-rich{white-space:nowrap;letter-spacing:.2px;border:1px solid #0000;border-radius:20px;align-items:center;gap:5px;padding:3px 9px 3px 7px;font-size:10px;font-weight:600;display:inline-flex}.status-dot{border-radius:50%;flex-shrink:0;width:6px;height:6px;animation:2.5s ease-in-out infinite statusPulse}@keyframes statusPulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(.85)}}.pathology-tag{color:var(--text-secondary);text-overflow:ellipsis;white-space:nowrap;background:#6366f114;border:1px solid #6366f12e;border-radius:6px;max-width:130px;padding:2px 7px;font-size:10px;display:inline-block;overflow:hidden}body.light-mode .pathology-tag{background:#4f46e50f;border-color:#4f46e524}.patient-dashboard-table td.col-pathology{white-space:normal!important;overflow:visible!important}.pathology-signal{border:1px solid color-mix(in srgb, var(--pathology-accent) 22%, transparent);border-left:2px solid var(--pathology-accent);background:linear-gradient(110deg, color-mix(in srgb, var(--pathology-accent) 11%, transparent), transparent 78%);border-radius:8px;align-items:center;gap:7px;width:100%;min-width:0;padding:5px 6px;display:flex}.pathology-icon{background:color-mix(in srgb, var(--pathology-accent) 15%, transparent);width:26px;height:26px;color:var(--pathology-accent);border-radius:8px;justify-content:center;align-items:center;font-size:11px;display:inline-flex}.pathology-copy,.pathology-meta{min-width:0;display:flex}.pathology-copy{flex:1;align-items:center;gap:6px}.pathology-name{min-width:0;color:var(--text-primary);text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:9.5px;font-weight:700;line-height:1.18;overflow:hidden}.pathology-meta{flex-wrap:wrap;align-items:center;gap:3px 5px}.pathology-category{background:color-mix(in srgb, var(--pathology-accent) 15%, transparent);color:var(--pathology-accent);letter-spacing:.35px;text-transform:uppercase;border-radius:4px;flex:none;padding:1px 4px;font-size:7px;font-weight:800;line-height:1.4}.pathology-detail{color:var(--text-muted);overflow-wrap:anywhere;white-space:normal;font-size:8px;line-height:1.15}.phone-text{color:var(--text-secondary);font-variant-numeric:tabular-nums;font-size:11px}.progress-cell{flex-direction:column;align-items:flex-start;gap:3px;display:flex}.progress-pct{font-size:11px;font-weight:700;line-height:1}.mini-progress-bar{background:#ffffff14;border-radius:4px;width:48px;height:3px;overflow:hidden}body.light-mode .mini-progress-bar{background:#00000014}.mini-progress-fill{border-radius:4px;height:100%;transition:width .6s}.session-count{color:var(--text-primary);font-variant-numeric:tabular-nums;font-size:13px;font-weight:700}.last-session-text{color:var(--text-secondary);white-space:nowrap;font-size:10.5px}.patient-table-row{transition:background .2s,transform .2s,box-shadow .2s;animation:.35s both rowFadeIn}@keyframes rowFadeIn{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.patient-dashboard-table tbody tr.patient-table-row:hover{transform:translate(2px);box-shadow:inset 2px 0 #14b8a680;background:linear-gradient(90deg,#14b8a612 0%,#6366f108 100%)!important}body.light-mode .patient-dashboard-table tbody tr.patient-table-row:hover{box-shadow:inset 2px 0 #0d948866;background:linear-gradient(90deg,#0d94880d 0%,#4f46e505 100%)!important}.tbl-action-btn{border:1px solid var(--border-color);width:28px;height:28px;color:var(--text-secondary);cursor:pointer;background:#ffffff0a;border-radius:8px;justify-content:center;align-items:center;font-size:11px;transition:all .2s;display:inline-flex}.tbl-action-btn:hover{transform:scale(1.12)}.tbl-action-session:hover{color:#14b8a6;background:#14b8a626;border-color:#14b8a666;box-shadow:0 0 8px #14b8a64d}.tbl-action-ai:hover{color:#6366f1;background:#6366f126;border-color:#6366f166;box-shadow:0 0 8px #6366f14d}.metric-tile{position:relative;overflow:hidden;transition:transform .25s,box-shadow .25s!important}.metric-tile:hover{transform:translateY(-3px)!important;box-shadow:0 14px 36px -14px #0006,0 0 0 1px #14b8a61f!important}body.light-mode .metric-tile:hover{box-shadow:0 10px 28px -10px #0d948833,0 0 0 1px #0d94881a!important}.metric-tile:after{content:"";opacity:0;border-radius:50%;height:1.5px;transition:opacity .35s;position:absolute;bottom:0;left:8%;right:8%}.card-patients:after{background:#22d3ee;box-shadow:0 0 10px 3px #22d3ee59}.card-treatment:after{background:#10b981;box-shadow:0 0 10px 3px #10b98159}.card-sessions:after{background:#8b5cf6;box-shadow:0 0 10px 3px #8b5cf659}.card-focus:after{background:#f59e0b;box-shadow:0 0 10px 3px #f59e0b59}.metric-tile:hover:after{opacity:1}.insight-stack::-webkit-scrollbar{width:4px}.treatment-chart-section::-webkit-scrollbar{width:4px}.patient-table-wrap::-webkit-scrollbar{width:4px}.patient-profile-form-container::-webkit-scrollbar{width:4px}.ai-chat-messages::-webkit-scrollbar{width:4px}.insight-stack::-webkit-scrollbar-track{background:0 0}.treatment-chart-section::-webkit-scrollbar-track{background:0 0}.patient-table-wrap::-webkit-scrollbar-track{background:0 0}.patient-profile-form-container::-webkit-scrollbar-track{background:0 0}.ai-chat-messages::-webkit-scrollbar-track{background:0 0}.insight-stack::-webkit-scrollbar-thumb{background:#14b8a659;border-radius:6px}.treatment-chart-section::-webkit-scrollbar-thumb{background:#14b8a659;border-radius:6px}.patient-table-wrap::-webkit-scrollbar-thumb{background:#14b8a659;border-radius:6px}.patient-profile-form-container::-webkit-scrollbar-thumb{background:#14b8a659;border-radius:6px}.ai-chat-messages::-webkit-scrollbar-thumb{background:#14b8a659;border-radius:6px}.insight-stack::-webkit-scrollbar-thumb:hover{background:#14b8a6a6}.treatment-chart-section::-webkit-scrollbar-thumb:hover{background:#14b8a6a6}.patient-table-wrap::-webkit-scrollbar-thumb:hover{background:#14b8a6a6}.patient-profile-form-container::-webkit-scrollbar-thumb:hover{background:#14b8a6a6}.ai-chat-messages::-webkit-scrollbar-thumb:hover{background:#14b8a6a6}@keyframes viewSlideIn{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}.patient-dashboard-table thead th{text-transform:uppercase;letter-spacing:.6px;white-space:nowrap;color:var(--text-muted)!important;padding:10px 12px!important;font-size:10px!important;font-weight:800!important}.patient-dashboard-table tbody td{vertical-align:middle!important;border-bottom:1px solid #ffffff08!important;padding:10px 12px!important}body.light-mode .patient-dashboard-table tbody td{border-bottom:1px solid #0000000a!important}.section-toolbar h3{background:linear-gradient(90deg, var(--text-primary) 50%, var(--primary) 120%);-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text;font-size:14px!important;font-weight:700!important}body.light-mode .section-toolbar h3{background:linear-gradient(90deg,#0f172a 50%,#0d9488 120%);-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text}.section-toolbar p{color:var(--text-muted)!important;font-size:11px!important}.view-kicker{text-transform:uppercase;letter-spacing:1px;color:var(--primary);align-items:center;gap:6px;margin-bottom:2px;font-size:10px;font-weight:700;display:inline-flex}.view-kicker:before{content:"";background:var(--primary);border-radius:2px;width:14px;height:2px;display:none!important}#view-pacientes.patient-management-view{display:flex;flex-direction:column!important;gap:8px!important;height:100%!important;min-height:0!important;overflow:hidden!important}#view-pacientes .view-heading{flex:none!important;margin-bottom:0!important}#view-pacientes .patient-management-card{flex:1 1 0!important;grid-template-rows:auto minmax(0,1fr) 50px!important;gap:8px!important;min-height:0!important;max-height:100%!important;padding:12px 18px 0!important;display:grid!important;overflow:hidden!important}#view-pacientes .patient-management-selector{max-width:100%!important;margin-bottom:0!important}#view-pacientes .patient-profile-form-container{flex-direction:column!important;gap:16px!important;width:100%!important;max-width:100%!important;height:100%!important;min-height:0!important;padding-bottom:8px!important;padding-right:6px!important;display:flex!important;overflow:hidden auto!important}#view-pacientes .form-section:first-of-type{flex-direction:column!important;flex:none!important;gap:12px!important;display:flex!important}#view-pacientes .form-section:last-of-type{flex-direction:column!important;flex:1 1 0!important;gap:12px!important;min-height:0!important;display:flex!important}#view-pacientes .form-row{flex-shrink:0!important;gap:14px!important;display:flex!important}#view-pacientes .form-section:last-of-type .form-row:last-of-type{flex:1 1 0!important;min-height:0!important}#view-pacientes .form-section:last-of-type .form-row:last-of-type .form-group{flex-direction:column!important;flex:1!important;min-height:0!important;display:flex!important}#view-pacientes .form-section-divider{margin:4px 0!important}#view-pacientes .section-toolbar.compact{margin-bottom:4px!important}#view-pacientes .patient-profile-form-container input,#view-pacientes .patient-profile-form-container select,#view-pacientes .patient-profile-form-container .clinical-select{width:100%!important;height:28px!important}#view-pacientes .patient-profile-form-container .compact-selector{width:auto!important;height:20px!important}#edit-treatment-goal,#edit-patient-anamnesis{resize:none!important;box-sizing:border-box!important;flex:1 1 0!important;width:100%!important;height:100%!important;min-height:60px!important;max-height:none!important;overflow-y:auto!important}.cpf-valid{border-color:var(--success)!important;box-shadow:0 0 0 3px #10b98126!important}.cpf-invalid{border-color:var(--danger)!important;box-shadow:0 0 0 3px #ef444426!important}#view-pacientes .patient-form-save-bar{z-index:4!important;border-top:1px solid var(--border-color)!important;background:linear-gradient(#141b29c2,#141b29f5)!important;justify-content:space-between!important;align-items:center!important;height:50px!important;min-height:50px!important;max-height:50px!important;margin:0 -18px!important;padding:0 28px 0 18px!important;display:flex!important;position:relative!important;box-shadow:0 -10px 18px #00000024!important}body.light-mode #view-pacientes .patient-form-save-bar{background:linear-gradient(#ffffffc7,#fffffffa)!important;box-shadow:0 -10px 18px #0f766e14!important}#btn-save-patient-profile{border-radius:var(--radius-sm)!important;background:var(--danger)!important;color:#fff!important;width:auto!important;max-width:160px!important;height:32px!important;min-height:32px!important;transition:all var(--transition-fast)!important;cursor:pointer!important;border:none!important;justify-content:center!important;align-items:center!important;gap:6px!important;margin-top:0!important;padding:0 16px!important;font-size:12px!important;font-weight:600!important;display:inline-flex!important;box-shadow:0 2px 8px #ef444440!important}#btn-save-patient-profile:hover{background:#dc2626!important;transform:translateY(-.5px)!important;box-shadow:0 4px 12px #ef444466!important}#btn-save-patient-profile:active{transform:translateY(.5px)!important}.view-kicker{--kicker-glow-color-1:var(--secondary);--kicker-glow-color-2:var(--success);--kicker-glow-shadow-1:#0ea5e973;--kicker-glow-shadow-2:#2dd4bfd9;--kicker-glow-shadow-3:#6366f166}body.light-mode .view-kicker{--kicker-glow-color-1:var(--primary);--kicker-glow-color-2:var(--secondary);--kicker-glow-shadow-1:#0284c759;--kicker-glow-shadow-2:#0ea5e9b3;--kicker-glow-shadow-3:#0f766e59}.view-kicker:has(.kicker-icon):before{display:none!important}.kicker-icon{transition:all var(--transition-normal);justify-content:center;align-items:center;margin-right:6px;font-size:13px;display:inline-flex}.kicker-icon-dashboard{color:var(--kicker-glow-color-1);filter:drop-shadow(0 0 3px var(--kicker-glow-shadow-1));animation:3.5s ease-in-out infinite kickerDashboardGlowPulse}@keyframes kickerDashboardGlowPulse{0%,to{filter:drop-shadow(0 0 2px var(--kicker-glow-shadow-1));opacity:.9;color:var(--kicker-glow-color-1);transform:scale(1)rotate(0)}50%{filter:drop-shadow(0 0 8px var(--kicker-glow-shadow-2)) drop-shadow(0 0 14px var(--kicker-glow-shadow-3));opacity:1;color:var(--kicker-glow-color-2);transform:scale(1.2)rotate(15deg)}}.kicker-icon-patients{color:var(--kicker-glow-color-1);filter:drop-shadow(0 0 3px var(--kicker-glow-shadow-1));animation:3.5s ease-in-out infinite kickerPatientsGlowPulse}@keyframes kickerPatientsGlowPulse{0%,to{filter:drop-shadow(0 0 2px var(--kicker-glow-shadow-1));opacity:.9;color:var(--kicker-glow-color-1);transform:scale(1)}30%{filter:drop-shadow(0 0 8px var(--kicker-glow-shadow-2));color:var(--kicker-glow-color-2);transform:scale(1.18)}45%{transform:scale(1.05)}60%{filter:drop-shadow(0 0 8px var(--kicker-glow-shadow-2));color:var(--kicker-glow-color-2);transform:scale(1.18)}}.kicker-icon-ai{color:var(--kicker-glow-color-1);filter:drop-shadow(0 0 3px var(--kicker-glow-shadow-1));animation:4s ease-in-out infinite kickerAiGlowPulse}@keyframes kickerAiGlowPulse{0%,to{filter:drop-shadow(0 0 2px var(--kicker-glow-shadow-1));opacity:.9;color:var(--kicker-glow-color-1);transform:scale(1)rotate(0)}25%{filter:drop-shadow(0 0 8px var(--kicker-glow-shadow-2));color:var(--kicker-glow-color-2);transform:scale(1.2)rotate(-8deg)}75%{filter:drop-shadow(0 0 8px var(--kicker-glow-shadow-2)) drop-shadow(0 0 12px var(--kicker-glow-shadow-3));color:var(--kicker-glow-color-2);transform:scale(1.2)rotate(8deg)}}#view-analises .ai-insights-card{gap:6px!important;padding:12px 14px!important;overflow-y:auto!important}#view-analises .treatment-chart-section{flex:auto!important;min-height:180px!important;overflow:visible!important}.ai-insights-card::-webkit-scrollbar{width:4px}.ai-insights-card::-webkit-scrollbar-track{background:0 0}.ai-insights-card::-webkit-scrollbar-thumb{background:#14b8a659;border-radius:6px}.ai-insights-card::-webkit-scrollbar-thumb:hover{background:#14b8a6a6}.btn-toggle-sidebar{display:none}@media (width>=769px){.sidebar{transition:width .3s cubic-bezier(.4, 0, .2, 1), background-color var(--transition-normal)!important;position:relative!important;overflow:visible!important}.sidebar-brand{transition:padding .3s cubic-bezier(.4,0,.2,1),justify-content .3s cubic-bezier(.4,0,.2,1)!important}.sidebar-brand h2{opacity:1;white-space:nowrap;max-width:200px;overflow:hidden;transition:transform .3s cubic-bezier(.4,0,.2,1),opacity .2s,max-width .3s cubic-bezier(.4,0,.2,1)!important}.sidebar-menu .menu-item span{opacity:1;white-space:nowrap;vertical-align:middle;max-width:180px;display:inline-block;overflow:hidden;transition:opacity .2s,max-width .3s cubic-bezier(.4,0,.2,1),margin .3s cubic-bezier(.4,0,.2,1)!important}.sidebar-section-label{opacity:1;white-space:nowrap;max-height:30px;overflow:hidden;transition:opacity .15s,max-height .25s cubic-bezier(.4,0,.2,1),padding .25s cubic-bezier(.4,0,.2,1),margin .25s cubic-bezier(.4,0,.2,1)!important}.btn-new-atendimento span{opacity:1;white-space:nowrap;max-width:150px;display:inline-block;overflow:hidden;transition:opacity .2s,max-width .3s cubic-bezier(.4,0,.2,1),margin .3s cubic-bezier(.4,0,.2,1)!important}.sidebar-footer{transition:padding .3s cubic-bezier(.4,0,.2,1),align-items .3s cubic-bezier(.4,0,.2,1)!important}.btn-new-atendimento{transition:width .3s cubic-bezier(.4,0,.2,1),height .3s cubic-bezier(.4,0,.2,1),padding .3s cubic-bezier(.4,0,.2,1),border-radius .3s cubic-bezier(.4,0,.2,1),background .2s,box-shadow .2s,transform .2s!important}.btn-toggle-sidebar{border:1px solid var(--border-color);width:24px;height:24px;color:var(--text-secondary);cursor:pointer;z-index:100;background-color:#050811;border-radius:50%;justify-content:center;align-items:center;transition:all .2s;display:flex;position:absolute;top:50%;right:-12px;transform:translateY(-50%);box-shadow:0 0 10px #a855f726}body.light-mode .btn-toggle-sidebar{background-color:#fff;box-shadow:0 2px 8px #0000001a}.btn-toggle-sidebar:hover{color:var(--text-primary);border-color:var(--spark);transform:translateY(-50%)scale(1.1);box-shadow:0 0 15px #a855f759}body.light-mode .btn-toggle-sidebar:hover{border-color:var(--primary);box-shadow:0 2px 12px #0ea5e940}.btn-toggle-sidebar i{font-size:10px;transition:transform .3s}body.sidebar-collapsed .sidebar{width:72px}body.sidebar-collapsed .sidebar-brand{justify-content:center;padding:24px 12px 12px!important}body.sidebar-collapsed .sidebar-brand h2{opacity:0;pointer-events:none;max-width:0}body.sidebar-collapsed .sidebar-menu .menu-item{justify-content:center;gap:0;padding:12px}body.sidebar-collapsed .sidebar-menu .menu-item span{opacity:0;pointer-events:none;max-width:0;margin:0}body.sidebar-collapsed .sidebar-menu .menu-item i{width:24px;font-size:18px}body.sidebar-collapsed .sidebar-section-label{opacity:0;pointer-events:none;max-height:0;margin-top:0!important;margin-bottom:0!important;padding-top:0!important;padding-bottom:0!important}body.sidebar-collapsed .sidebar-section-model,body.sidebar-collapsed .sidebar-model-selector-wrap,body.sidebar-collapsed .sidebar-landing-link{display:none!important}body.sidebar-collapsed .sidebar-footer{align-items:center!important;padding:16px 12px!important}body.sidebar-collapsed .sidebar-footer-menu{align-items:center!important}body.sidebar-collapsed .sidebar-footer .menu-item{border-radius:50%!important;justify-content:center!important;gap:0!important;width:40px!important;height:40px!important;padding:10px!important}body.sidebar-collapsed .sidebar-footer .menu-item span{opacity:0!important;pointer-events:none!important;max-width:0!important;margin:0!important;display:none!important}body.sidebar-collapsed .sidebar-footer .menu-item i{width:24px!important;margin:0!important;font-size:18px!important}body.sidebar-collapsed .btn-new-atendimento{border-radius:50%;justify-content:center;width:40px;height:40px;padding:0!important}body.sidebar-collapsed .btn-new-atendimento span{opacity:0;pointer-events:none;max-width:0;margin:0!important}body.sidebar-collapsed .btn-new-atendimento i{margin:0;font-size:16px}body.sidebar-collapsed .btn-toggle-sidebar i{transform:rotate(180deg)}}#view-analises .ai-analysis-grid{width:calc(100% + 8px)!important;margin:-4px!important;padding:4px!important;overflow:visible!important}#view-analises .ai-chat-card,#view-analises .ai-insights-card{align-self:stretch!important;height:auto!important;max-height:none!important;overflow:hidden!important}#view-analises .ai-insights-card{flex-direction:column!important;gap:4px!important;padding:10px 12px!important;display:flex!important;overflow:hidden!important}#view-analises .insight-stack{flex:none!important;min-height:0!important;overflow:hidden!important}#view-analises .treatment-chart-section{flex-direction:column!important;flex:1!important;min-height:0!important;display:flex!important;overflow:hidden!important}#view-analises #treatment-chart-canvas-container{flex:1!important;height:auto!important;min-height:0!important;display:flex!important;overflow:hidden!important}#view-analises #treatment-chart-canvas-container>svg{flex:auto!important;width:100%!important;height:100%!important;display:block!important}@keyframes btn-finish-shimmer{0%{background-position:0%}50%{background-position:100%}to{background-position:0%}}#btn-finish-session:disabled{cursor:not-allowed!important;pointer-events:none!important;background:linear-gradient(270deg,#14b8a6,#0ea5e9,#6366f1,#8b5cf6,#0ea5e9,#14b8a6) 0 0/300% 300%!important;animation:2.8s infinite btn-finish-shimmer!important;box-shadow:0 0 22px #6366f199,0 6px 20px -10px #14b8a6b3!important}#btn-finish-session:disabled i,#btn-finish-session:disabled span{vertical-align:middle}#view-agenda{flex-direction:column!important;height:100%!important;min-height:0!important;display:flex!important;overflow:hidden!important}#view-agenda[style*="display: none"]{display:none!important}#view-agenda .view-heading{flex:none!important;margin-bottom:14px!important}#view-historico-consultas{flex-direction:column!important;height:100%!important;min-height:0!important;display:flex!important;overflow:hidden!important}#view-historico-consultas[style*="display: none"]{display:none!important}#view-historico-consultas .view-heading{flex:none!important;margin-bottom:14px!important}.briefing-layout{flex:1!important;grid-template-columns:minmax(0,1fr)!important;min-height:0!important;display:grid!important}.briefing-standalone-card{height:100%!important;min-height:0!important}.agenda-grid{flex:1!important;grid-template-rows:minmax(0,1fr)!important;grid-template-columns:minmax(0,1.65fr) minmax(320px,.9fr)!important;align-items:stretch!important;gap:16px!important;height:0!important;min-height:0!important;display:grid!important;overflow:hidden!important}.agenda-calendar-card,.agenda-copilot-card{flex-direction:column!important;height:100%!important;min-height:0!important;padding:16px!important;display:flex!important;overflow:hidden!important}.agenda-copilot-content{flex:1!important;min-height:0!important;margin-top:10px!important;padding-right:4px!important;overflow-y:auto!important}.calendar-header-row{flex-shrink:0!important;justify-content:space-between!important;align-items:center!important;margin-bottom:12px!important;display:flex!important}.calendar-nav-left{align-items:center!important;gap:10px!important;display:flex!important}.calendar-month-year{font-family:var(--font-heading)!important;color:var(--text-primary)!important;text-transform:uppercase!important;letter-spacing:.5px!important;text-align:center!important;min-width:110px!important;margin:0!important;font-size:13px!important;font-weight:700!important}.btn-calendar-nav{border:1px solid var(--border-color)!important;width:26px!important;height:26px!important;color:var(--text-primary)!important;cursor:pointer!important;background:#ffffff08!important;border-radius:50%!important;outline:none!important;justify-content:center!important;align-items:center!important;transition:all .2s!important;display:flex!important}.btn-calendar-nav:hover{border-color:var(--secondary)!important;color:var(--secondary)!important;background:#ffffff14!important}body.light-mode .btn-calendar-nav{background:#00000005!important}body.light-mode .btn-calendar-nav:hover{background:#0000000d!important}.calendar-role-switch{align-items:center!important;gap:8px!important;display:flex!important}.role-switch-label{color:var(--text-muted)!important;text-transform:uppercase!important;font-size:10px!important;font-weight:600!important}.role-switch-buttons{border:1px solid var(--border-color)!important;background:#00000040!important;border-radius:8px!important;padding:2px!important;display:flex!important}body.light-mode .role-switch-buttons{background:#0000000d!important}.btn-role-toggle{color:var(--text-secondary)!important;cursor:pointer!important;background:0 0!important;border:none!important;border-radius:6px!important;outline:none!important;align-items:center!important;gap:4px!important;padding:4px 10px!important;font-size:9.5px!important;font-weight:600!important;transition:all .2s!important;display:flex!important}.btn-role-toggle.active{background:var(--primary-gradient)!important;color:#fff!important;box-shadow:0 4px 10px -4px #22d3ee66!important}.calendar-weekdays-grid{text-align:center!important;color:var(--text-muted)!important;text-transform:uppercase!important;border-bottom:1px solid var(--border-color)!important;flex-shrink:0!important;grid-template-columns:repeat(7,1fr)!important;margin-bottom:6px!important;padding-bottom:4px!important;font-size:9px!important;font-weight:700!important;display:grid!important}.calendar-days-grid{flex:1!important;grid-template-rows:repeat(6,1fr)!important;grid-template-columns:repeat(7,1fr)!important;gap:4px!important;min-height:0!important;display:grid!important}.calendar-day-cell{border:1px solid var(--border-color)!important;border-radius:var(--radius-sm)!important;cursor:pointer!important;background:#ffffff03!important;flex-direction:column!important;min-height:0!important;padding:4px!important;transition:all .2s ease-in-out!important;display:flex!important;position:relative!important}.calendar-day-cell:hover{border-color:var(--secondary)!important;background:#ffffff0a!important;transform:translateY(-1px)!important;box-shadow:0 4px 12px -6px #22d3ee4d!important}body.light-mode .calendar-day-cell:hover{background:#ffffffb3!important;box-shadow:0 4px 12px -6px #0f766e33!important}.calendar-day-cell.other-month{opacity:.25!important;background:0 0!important}.calendar-day-cell.other-month:hover{opacity:.5!important}.calendar-day-cell.today{border-color:var(--secondary)!important;background:#22d3ee0a!important;box-shadow:inset 0 0 6px #22d3ee26!important}.calendar-day-cell.today .day-number-label{background:var(--secondary)!important;color:#080b12!important;border-radius:50%!important;justify-content:center!important;align-items:center!important;width:18px!important;height:18px!important;font-weight:700!important;display:flex!important}body.light-mode .calendar-day-cell.today .day-number-label{color:#fff!important;background:var(--secondary)!important}.day-number-label{color:var(--text-secondary)!important;align-self:flex-start!important;margin-bottom:2px!important;font-size:9.5px!important;font-weight:600!important}.day-events-container{flex-direction:column!important;flex:1!important;gap:2px!important;min-height:0!important;padding-right:1px!important;display:flex!important;overflow-y:auto!important}.day-events-container::-webkit-scrollbar{width:2px!important}.day-events-container::-webkit-scrollbar-track{background:0 0!important}.day-events-container::-webkit-scrollbar-thumb{background:#ffffff1a!important;border-radius:2px!important}.calendar-day-cell:hover .day-events-container::-webkit-scrollbar-thumb{background:#ffffff40!important}.day-event-chip{white-space:nowrap!important;text-overflow:ellipsis!important;box-sizing:border-box!important;border-radius:4px!important;width:100%!important;padding:1.5px 4px!important;font-size:8.5px!important;font-weight:600!important;transition:transform .1s!important;display:block!important;overflow:hidden!important}.day-event-chip:hover{transform:scale(1.02)!important}.day-event-chip.lang-tff{color:#2dd4bf!important;background:#14b8a626!important;border:1px solid #14b8a659!important}.day-event-chip.neurology-afasia{color:#a78bfa!important;background:#8b5cf626!important;border:1px solid #8b5cf659!important}.day-event-chip.disfluent-gagueira{color:#34d399!important;background:#34d39926!important;border:1px solid #34d39959!important}.day-event-chip.deglutition-disfagia{color:#f59e0b!important;background:#f59e0b26!important;border:1px solid #f59e0b59!important}.day-event-chip.autism-tea{color:#38bdf8!important;background:#0ea5e926!important;border:1px solid #0ea5e959!important}.day-event-chip.voice-disfonia{color:#c084fc!important;background:#a855f726!important;border:1px solid #a855f759!important}.day-event-chip.default-pat{color:var(--text-primary)!important;background:#ffffff0d!important;border:1px solid #ffffff26!important}body.light-mode .day-event-chip.lang-tff{color:#0f766e!important;background:#0f766e1a!important;border-color:#0f766e40!important}body.light-mode .day-event-chip.neurology-afasia{color:#7c3aed!important;background:#7c3aed1a!important;border-color:#7c3aed40!important}body.light-mode .day-event-chip.disfluent-gagueira{color:#16a34a!important;background:#16a34a1a!important;border-color:#16a34a40!important}body.light-mode .day-event-chip.deglutition-disfagia{color:#b45309!important;background:#d977061a!important;border-color:#d9770640!important}body.light-mode .day-event-chip.autism-tea{color:#0284c7!important;background:#0284c71a!important;border-color:#0284c740!important}body.light-mode .day-event-chip.voice-disfonia{color:#9333ea!important;background:#9333ea1a!important;border-color:#9333ea40!important}.sub-section-title{text-transform:uppercase!important;letter-spacing:.5px!important;color:var(--text-primary)!important;align-items:center!important;gap:6px!important;margin:0 0 10px!important;font-size:9.5px!important;font-weight:700!important;display:flex!important}.copilot-suggestions-stack,.adherence-alerts-stack{flex-direction:column!important;gap:8px!important;display:flex!important}.copilot-suggestion-card{border:1px solid var(--border-color)!important;border-left:3px solid var(--spark)!important;background:#8b5cf60a!important;border-radius:6px!important;padding:8px 10px!important;transition:all .2s!important}.copilot-suggestion-card:hover{background:#8b5cf614!important;border-color:#8b5cf633!important}.suggestion-desc{color:var(--text-primary)!important;margin:0 0 4px!important;font-size:11px!important;font-weight:500!important}.suggestion-desc strong{font-weight:700!important}.suggestion-details{justify-content:space-between!important;align-items:center!important;margin-top:6px!important;display:flex!important}.suggestion-time{color:var(--text-muted)!important;font-size:9px!important;font-weight:600!important}.btn-suggestion-action{color:var(--spark)!important;cursor:pointer!important;background:#8b5cf61f!important;border:1px solid #8b5cf640!important;border-radius:4px!important;outline:none!important;padding:2.5px 8px!important;font-size:9.5px!important;font-weight:700!important;transition:all .2s!important}.btn-suggestion-action:hover{background:var(--spark)!important;color:#fff!important;box-shadow:0 2px 6px #8b5cf666!important}.adherence-alert-card{border:1px solid var(--border-color)!important;border-left:3px solid var(--danger)!important;background:#ef44440a!important;border-radius:6px!important;justify-content:space-between!important;align-items:center!important;padding:8px 10px!important;transition:all .2s!important;display:flex!important}.adherence-alert-card:hover{background:#ef444412!important}.alert-info-left{flex-direction:column!important;gap:1.5px!important;display:flex!important}.alert-patient-name{color:var(--text-primary)!important;font-size:11px!important;font-weight:700!important}.alert-message-text{color:var(--text-muted)!important;font-size:9.5px!important;font-weight:500!important}.btn-alert-schedule{color:var(--danger)!important;cursor:pointer!important;background:#ef44441a!important;border:1px solid #ef444440!important;border-radius:4px!important;outline:none!important;padding:2.5px 8px!important;font-size:9px!important;font-weight:700!important;transition:all .2s!important}.btn-alert-schedule:hover{background:var(--danger)!important;color:#fff!important}.patient-mode-header{border:1px solid var(--border-color)!important;border-radius:var(--radius-md)!important;background:#ffffff05!important;margin-bottom:14px!important;padding:10px!important;display:block!important}body.light-mode .patient-mode-header{background:#00000005!important}.agenda-right-column{flex-direction:column!important;gap:16px!important;height:100%!important;min-height:0!important;display:flex!important;overflow:hidden!important}.agenda-day-slots-card{flex-direction:column!important;flex:1.05!important;min-height:0!important;padding:16px!important;display:flex!important;overflow:hidden!important}.agenda-briefing-card{flex-direction:column!important;flex:.95!important;min-height:0!important;padding:16px!important;display:flex!important;overflow:hidden!important}.agenda-right-column .agenda-copilot-card{flex-direction:column!important;flex:1!important;min-height:0!important;display:flex!important}.agenda-slots-content{flex-direction:column!important;flex:1!important;gap:4px!important;margin-top:10px!important;padding-right:4px!important;display:flex!important;overflow-y:auto!important}.agenda-briefing-controls{flex-direction:column!important;gap:4px!important;margin:4px 0 10px!important;display:flex!important}.agenda-briefing-controls label{color:var(--text-secondary)!important;text-transform:uppercase!important;letter-spacing:.3px!important;font-size:10px!important;font-weight:700!important}.agenda-briefing-content{flex-direction:column!important;flex:1!important;gap:10px!important;min-height:0!important;padding-right:4px!important;display:flex!important;overflow-y:auto!important}.agenda-briefing-patient-card{border:1px solid var(--border-color)!important;background:linear-gradient(135deg,#ffffff0f,#ffffff05)!important;border-radius:12px!important;justify-content:space-between!important;gap:12px!important;padding:12px!important;display:flex!important;box-shadow:inset 0 0 0 1px #ffffff0d!important}.agenda-briefing-kicker{text-transform:uppercase!important;letter-spacing:.45px!important;color:var(--text-secondary)!important;margin-bottom:6px!important;font-size:9px!important;font-weight:700!important;display:inline-flex!important}.agenda-briefing-patient-card h4{margin:0 0 4px!important;font-size:15px!important}.agenda-briefing-patient-card p{color:var(--text-secondary)!important;margin:0!important;font-size:10.5px!important;line-height:1.45!important}.agenda-briefing-progress-ring{min-width:54px!important;height:54px!important;color:var(--text-primary)!important;background:radial-gradient(circle at center, #080b12e0 45%, transparent 46%), conic-gradient(var(--secondary), var(--spark), var(--secondary))!important;border-radius:50%!important;flex:none!important;justify-content:center!important;align-items:center!important;font-size:13px!important;font-weight:800!important;display:flex!important;box-shadow:inset 0 0 0 1px #ffffff0d!important}.agenda-briefing-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;display:grid!important}.agenda-briefing-chip-card{border:1px solid var(--border-color)!important;background:#ffffff08!important;border-radius:10px!important;flex-direction:column!important;gap:3px!important;padding:8px 10px!important;display:flex!important}.agenda-briefing-chip-card strong{color:var(--text-primary)!important;font-size:11.5px!important}.agenda-briefing-chip-label{color:var(--text-muted)!important;text-transform:uppercase!important;letter-spacing:.4px!important;font-size:8.5px!important;font-weight:700!important}.agenda-briefing-block{border:1px solid var(--border-color)!important;background:#ffffff06!important;border-radius:12px!important;padding:10px 12px!important}.agenda-briefing-block h4{align-items:center!important;gap:6px!important;margin:0 0 8px!important;font-size:11px!important;display:flex!important}.agenda-briefing-bullets{flex-direction:column!important;gap:6px!important;margin:0!important;padding-left:16px!important;display:flex!important}.agenda-briefing-bullets li{color:var(--text-secondary)!important;font-size:10.5px!important;line-height:1.45!important}.agenda-history-list{flex-direction:column!important;gap:8px!important;display:flex!important}.agenda-history-item{border:1px solid var(--border-color)!important;background:#ffffff08!important;border-radius:10px!important;padding:9px 10px!important}.agenda-history-item-top{justify-content:space-between!important;align-items:center!important;gap:10px!important;margin-bottom:6px!important;display:flex!important}.agenda-history-item-top time{color:var(--text-muted)!important;font-size:9px!important;font-weight:600!important}.agenda-history-badge{color:var(--secondary)!important;text-transform:uppercase!important;letter-spacing:.35px!important;font-size:8.5px!important;font-weight:700!important}.agenda-history-item p{color:var(--text-secondary)!important;margin:0!important;font-size:10.5px!important;line-height:1.45!important}.agenda-history-meta{flex-direction:column!important;gap:4px!important;margin-top:8px!important;display:flex!important}.agenda-history-meta span{color:var(--text-muted)!important;align-items:center!important;gap:5px!important;font-size:9.5px!important;display:flex!important}.agenda-briefing-empty{border:1px dashed var(--border-color)!important;color:var(--text-muted)!important;text-align:center!important;border-radius:10px!important;padding:14px!important;font-size:10.5px!important}.day-slot-row{border-bottom:1px dashed var(--border-color)!important;align-items:center!important;gap:12px!important;padding:6px 0!important;display:flex!important}.day-slot-row:last-child{border-bottom:none!important}.day-slot-time{color:var(--text-secondary)!important;min-width:45px!important;font-size:11px!important;font-weight:700!important}.day-slot-row select{border:1px solid var(--border-color)!important;border-radius:var(--radius-sm)!important;height:28px!important;color:var(--text-primary)!important;background:#ffffff08!important;outline:none!important;flex:auto!important;padding:4px 8px!important;font-size:11px!important;transition:all .2s!important}.day-slot-row select:focus{border-color:var(--secondary)!important;box-shadow:0 0 0 2px #0ea5e91a!important}body.light-mode .day-slot-row select{background:#fff!important}.day-slot-row.booked select{border-color:var(--secondary)!important;color:var(--text-primary)!important;background:#22d3ee0d!important}body.light-mode .day-slot-row.booked select{background:#0f766e0d!important}.calendar-day-cell.selected{border-color:var(--secondary)!important;background:#22d3ee14!important;box-shadow:0 0 10px #22d3ee33!important}body.light-mode .calendar-day-cell.selected{background:#0f766e14!important;box-shadow:0 0 10px #0f766e26!important}#view-home.home-view{display:flex;flex-direction:column!important;height:100%!important;min-height:0!important;overflow:hidden!important}.sidebar-model-select:hover{border-color:var(--primary)!important;box-shadow:0 0 8px #0ea5e933!important}.sidebar-model-select option{color:#fff;background-color:#070a13}body.light-mode .sidebar-model-select option{color:#333;background-color:#fff}:root{--bg-app:#080a0f;--bg-header:#0d111bd9;--bg-card:#111827bf;--border-color:#ffffff0d;--border-focus:#6366f1;--primary:#4f46e5;--primary-gradient:linear-gradient(135deg, #6366f1 0%, #0d9488 100%);--secondary:#0ea5e9;--success:#10b981;--danger:#f43f5e;--spark:#a855f7;--text-primary:#f8fafc;--text-secondary:#94a3b8;--text-muted:#64748b;--bg-gradient-start:#080a0f;--bg-gradient-end:#0e121b}body.light-mode{--bg-app:#f1f5f9;--bg-header:#ffffffd9;--bg-card:#ffffffe6;--border-color:#0f172a0f;--border-focus:#3b82f6;--primary:#2563eb;--primary-gradient:linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);--secondary:#0ea5e9;--success:#059669;--danger:#e11d48;--spark:#7c3aed;--text-primary:#0f172a;--text-secondary:#475569;--text-muted:#64748b;--bg-gradient-start:#f8fafc;--bg-gradient-end:#e2e8f0}body.light-mode.theme-light-cream{--bg-app:#f4f1ea;--bg-header:#fdfcfbd9;--bg-card:#fdfcfbe6;--border-color:#3d372d14;--border-focus:#a79277;--primary:#8f7b66;--primary-gradient:linear-gradient(135deg, #a79277 0%, #8f7b66 100%);--secondary:#b0a695;--success:#5f8066;--spark:#b99470;--text-primary:#3d372e;--text-secondary:#6e6456;--text-muted:#9c8e7c;--bg-gradient-start:#fbfaf8;--bg-gradient-end:#eae5d8}body.light-mode.theme-light-nordic{--bg-app:#e9ecef;--bg-header:#f8f9fad9;--bg-card:#ffffffe6;--border-color:#21252914;--border-focus:#495057;--primary:#495057;--primary-gradient:linear-gradient(135deg, #6c757d 0%, #495057 100%);--secondary:#868e96;--success:#4a5d4e;--spark:#6366f1;--text-primary:#212529;--text-secondary:#495057;--text-muted:#868e96;--bg-gradient-start:#f8f9fa;--bg-gradient-end:#dee2e6}body.light-mode.theme-light-matcha{--bg-app:#eff3ee;--bg-header:#f7f9ffd9;--bg-card:#ffffffe6;--border-color:#24362812;--border-focus:#556b2f;--primary:#4e6344;--primary-gradient:linear-gradient(135deg, #8ba888 0%, #4e6344 100%);--secondary:#7f9984;--success:#3c7d6b;--spark:#805b89;--text-primary:#1c2b1f;--text-secondary:#415446;--text-muted:#6a7f71;--bg-gradient-start:#f8faf7;--bg-gradient-end:#dce3db}body.theme-dark-clinical{--bg-app:#0c1420;--bg-header:#142033d9;--bg-card:#162640c7;--border-color:#38bdf81f;--border-focus:#38bdf8;--primary:#0ea5e9;--primary-gradient:linear-gradient(135deg, #38bdf8 0%, #14b8a6 100%);--secondary:#06b6d4;--success:#10b981;--danger:#f43f5e;--spark:#6366f1;--text-primary:#f0f9ff;--text-secondary:#7dd3fc;--text-muted:#64748b;--bg-gradient-start:#0c1420;--bg-gradient-end:#121e30}.workspace-card,.metric-tile,.option-checkbox-wrapper,.ai-chat-message,.insight-row{border:1px solid var(--border-color)!important;background:#111827b8!important;box-shadow:0 4px 20px -8px #0000004d!important}body.light-mode .workspace-card,body.light-mode .metric-tile,body.light-mode .option-checkbox-wrapper,body.light-mode .ai-chat-message,body.light-mode .insight-row{border:1px solid var(--border-color)!important;background:#ffffffd9!important;box-shadow:0 8px 24px -12px #0f766e26!important}#workspace-content.sessions-view .options-grid{grid-template-columns:repeat(2,1fr)!important;gap:10px!important}#workspace-content.sessions-view .option-checkbox-wrapper{text-align:left!important;flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;gap:10px!important;padding:8px 12px!important;display:flex!important}#workspace-content.sessions-view .option-label-text{white-space:normal!important;-webkit-line-clamp:unset!important;font-size:11px!important;font-weight:600!important;line-height:1.3!important;display:block!important;overflow:visible!important}input[type=text],input[type=number],input[type=email],input[type=password],select,textarea{transition:border-color .25s cubic-bezier(.4,0,.2,1),box-shadow .25s cubic-bezier(.4,0,.2,1),background-color .25s cubic-bezier(.4,0,.2,1)!important}input[type=text]:focus,input[type=number]:focus,input[type=email]:focus,input[type=password]:focus,select:focus,textarea:focus{border-color:var(--border-focus)!important;box-shadow:0 0 0 3px #6366f12e,inset 0 1px 2px #00000026!important}body.light-mode input[type=text]:focus,body.light-mode input[type=number]:focus,body.light-mode input[type=email]:focus,body.light-mode input[type=password]:focus,body.light-mode select:focus,body.light-mode textarea:focus{box-shadow:0 0 0 3px #3b82f626,inset 0 1px 1px #0000000d!important}.view-transition-active{animation:.5s cubic-bezier(.16,1,.3,1) forwards viewFadeIn!important}.workspace-card{transition:transform .4s cubic-bezier(.16,1,.3,1),border-color .4s cubic-bezier(.16,1,.3,1),box-shadow .4s cubic-bezier(.16,1,.3,1)!important}.workspace-card:hover{transform:translateY(-2px);border-color:#6366f140!important;box-shadow:0 16px 36px -12px #00000073,0 0 20px #6366f114!important}body.light-mode .workspace-card:hover{border-color:#3b82f633!important;box-shadow:0 16px 36px -16px #0f766e1f,0 0 16px #3b82f60d!important}.menu-item{position:relative;transition:transform .3s cubic-bezier(.4,0,.2,1),background-color .3s,color .3s!important}.menu-item:hover{transform:translate(4px);color:var(--text-primary)!important;background:#6366f114!important}body.light-mode .menu-item:hover{background:#3b82f60f!important}.menu-item:hover i{transform:scale(1.1);color:var(--secondary)!important}.menu-item.active{border-left:3px solid var(--border-focus)!important;background:linear-gradient(90deg,#6366f126 0%,#0000 100%)!important}.btn-compile-ai-gradient,.btn-new-atendimento,.btn-action-round.primary,.btn-login-submit{z-index:1;position:relative;overflow:hidden;transition:transform .4s cubic-bezier(.16,1,.3,1),box-shadow .4s cubic-bezier(.16,1,.3,1),filter .4s!important}.btn-compile-ai-gradient:hover,.btn-new-atendimento:hover,.btn-action-round.primary:hover,.btn-login-submit:hover{filter:brightness(1.15);transform:translateY(-2px);box-shadow:0 12px 24px -10px #6366f1a6,0 0 12px #0d94884d!important}.btn-compile-ai-gradient:active,.btn-new-atendimento:active,.btn-action-round.primary:active,.btn-login-submit:active{transform:translateY(0)}.patient-table-row{transition:background-color .2s cubic-bezier(.4,0,.2,1)!important}.patient-table-row:hover{background-color:#6366f10a!important}body.light-mode .patient-table-row:hover{background-color:#3b82f608!important}body{letter-spacing:-.15px!important;-webkit-font-smoothing:antialiased!important;-moz-osx-font-smoothing:grayscale!important}.view-heading h1,.login-card h2,.modal-header h2,.workspace-empty h2{background:linear-gradient(135deg, var(--text-primary) 30%, var(--secondary) 100%)!important;-webkit-text-fill-color:transparent!important;letter-spacing:-.6px!important;-webkit-background-clip:text!important;font-weight:800!important}.workspace-card h3,.metric-tile span{font-family:var(--font-heading)!important;letter-spacing:-.2px!important;font-weight:700!important}.ambient-aurora-glow-1,.ambient-aurora-glow-2{animation:22s ease-in-out infinite alternate auroraFloat!important}@keyframes inputGlowPulse{0%{box-shadow:0 0 0 1px #6366f126}50%{box-shadow:0 0 0 4px #6366f14d}to{box-shadow:0 0 0 1px #6366f126}}body.light-mode input[type=text]:focus,body.light-mode input[type=number]:focus,body.light-mode input[type=email]:focus,body.light-mode input[type=password]:focus,body.light-mode select:focus,body.light-mode textarea:focus{animation:2s ease-in-out infinite inputGlowPulseLight!important}@keyframes inputGlowPulseLight{0%{box-shadow:0 0 0 1px #3b82f61f}50%{box-shadow:0 0 0 4px #3b82f640}to{box-shadow:0 0 0 1px #3b82f61f}}input[type=text]:focus,input[type=number]:focus,input[type=email]:focus,input[type=password]:focus,select:focus,textarea:focus{animation:2s ease-in-out infinite inputGlowPulse!important}.menu-item.active:after{content:"";background:var(--secondary);width:4px;height:50%;box-shadow:0 0 8px var(--secondary);border-radius:0 4px 4px 0;animation:2.5s ease-in-out infinite barGlow;position:absolute;top:25%;left:0}@keyframes barGlow{0%,to{opacity:.6;box-shadow:0 0 4px var(--secondary)}50%{opacity:1;box-shadow:0 0 12px var(--secondary)}}.patient-table-row:hover td{color:var(--text-primary)!important}.patient-table-row:hover .table-patient-name{transform:translate(3px);color:var(--secondary)!important}.table-patient-name{transition:transform .25s cubic-bezier(.16,1,.3,1),color .25s!important}.patient-dashboard-table{table-layout:fixed!important;width:100%!important;min-width:0!important}.patient-dashboard-table th,.patient-dashboard-table td{text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important}.patient-dashboard-table thead th,.patient-dashboard-table tbody td{padding:9px 6px!important}.patient-dashboard-table th.col-phone,.patient-dashboard-table th.col-sessions,.patient-dashboard-table th.col-proposed,.patient-dashboard-table th.col-last-session,.patient-dashboard-table th.col-action{text-align:center!important}.patient-dashboard-table td.col-phone .phone-text,.patient-dashboard-table td.col-last-session .last-session-text{font-size:11px!important}.col-patient{width:165px!important}.col-pathology{width:118px!important}.col-phone{text-align:center!important;width:100px!important}.col-start-date{width:76px!important}.col-end-date{width:84px!important}.col-stage{width:122px!important}.col-status{width:108px!important}.col-sessions,.col-proposed{text-align:center!important;width:50px!important}.col-progress{width:78px!important}.col-last-session,.col-action{text-align:center!important;width:70px!important}.patient-dashboard-table td.col-stage,.patient-dashboard-table td.col-status{white-space:normal!important;overflow:visible!important}.patient-dashboard-table td.col-stage .stage-pill,.patient-dashboard-table td.col-status .status-pill,.patient-dashboard-table td.col-status .status-badge-rich{white-space:normal!important;text-align:center!important;word-break:break-word!important;max-width:100%!important;min-height:22px!important;padding:3px 7px!important;font-size:9.5px!important;line-height:1.15!important}.dashboard-table-card{max-width:100%!important}.patient-table-wrap{max-width:100%!important;overflow:hidden auto!important}.patient-dashboard-table{table-layout:fixed!important;width:100%!important;max-width:100%!important}.patient-dashboard-table th,.patient-dashboard-table td{min-width:0!important}.patient-dashboard-table .status-badge-rich{justify-content:center;gap:5px}.patient-dashboard-table .status-badge-rich i{flex:none;font-size:10px}.patient-dashboard-table td.col-patient{display:table-cell!important}.patient-dashboard-table .patient-cell-info span{align-items:center;gap:4px;display:flex}.patient-dashboard-table .patient-cell-info span i{flex:none;font-size:8px}.period-cell{color:var(--text-secondary);font-variant-numeric:tabular-nums;white-space:nowrap;flex-wrap:nowrap;align-items:center;gap:2px 5px;font-size:10px;display:flex}.period-cell i{color:var(--text-muted);font-size:8px}.session-ratio{color:var(--text-muted);font-variant-numeric:tabular-nums;justify-content:center;align-items:baseline;gap:3px;font-size:11px;display:inline-flex}.session-ratio strong{color:var(--text-primary);font-size:14px}.patient-dashboard-table .progress-cell{align-items:flex-start}.progress-last-session{max-width:100%;color:var(--text-muted);text-overflow:ellipsis;white-space:nowrap;font-size:8px;line-height:1.1;overflow:hidden}.patient-dashboard-table .col-patient{width:22%!important}.patient-dashboard-table .col-pathology{width:25%!important}.patient-dashboard-table .col-period{width:13%!important}.patient-dashboard-table .col-stage{width:14%!important}.patient-dashboard-table .col-status{width:10%!important}.patient-dashboard-table .col-sessions{text-align:center!important;width:6%!important}.patient-dashboard-table .col-progress{width:10%!important}.patient-dashboard-table td.col-stage,.patient-dashboard-table td.col-status,.patient-dashboard-table td.col-stage .stage-pill,.patient-dashboard-table td.col-status .status-badge-rich,.patient-dashboard-table td.col-status .status-label{text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important}@media (width<=1280px){.patient-dashboard-table .col-patient{width:25%!important}.patient-dashboard-table .col-pathology{width:27%!important}.patient-dashboard-table .col-period{width:13%!important}.patient-dashboard-table .col-stage{width:14%!important}.patient-dashboard-table .col-status{width:7%!important}.patient-dashboard-table .col-sessions{width:6%!important}.patient-dashboard-table .col-progress{width:8%!important}.patient-dashboard-table .pathology-category{display:none}.patient-dashboard-table .status-badge-rich{border-radius:50%;width:26px;height:26px;min-height:26px!important;padding:0!important}.patient-dashboard-table .status-label{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}}@media (width<=900px){.patient-dashboard-table .col-pathology,.patient-dashboard-table .col-period{display:none}.patient-dashboard-table .col-patient{width:40%!important}.patient-dashboard-table .col-stage{width:25%!important}.patient-dashboard-table .col-status{width:10%!important}.patient-dashboard-table .col-sessions{width:11%!important}.patient-dashboard-table .col-progress{width:14%!important}}@media (width<=680px){.patient-dashboard-table .col-stage{display:none}.patient-dashboard-table .col-patient{width:48%!important}.patient-dashboard-table .col-status,.patient-dashboard-table .col-sessions{width:16%!important}.patient-dashboard-table .col-progress{width:20%!important}.patient-dashboard-table .patient-avatar{display:none}.patient-dashboard-table .table-actions{gap:3px}.patient-dashboard-table .tbl-action-btn{width:25px;height:25px}}body.theme-dark-aurora{--bg-app:#22313a;--bg-header:#26353edb;--bg-card:#2b3c44c7;--border-color:#b1ccd22e;--border-focus:#5eead4;--primary:#38bdf8;--primary-gradient:linear-gradient(135deg, #5eead4 0%, #38bdf8 46%, #b08bd7 100%);--secondary:#5eead4;--success:#86efac;--danger:#fda4af;--spark:#b08bd7;--text-primary:#f2f7f7;--text-secondary:#c5d4d7;--text-muted:#91a5ab;--bg-gradient-start:#243741;--bg-gradient-end:#1f2d35;animation:18s ease-in-out infinite alternate auroraMediumShift;background:linear-gradient(120deg, #5eead41c, transparent 32%), linear-gradient(240deg, #b08bd71f, transparent 34%), linear-gradient(180deg, var(--bg-gradient-start), var(--bg-gradient-end))!important;letter-spacing:0!important;background-size:180% 180%,180% 180%,100% 100%!important}body.theme-dark-aurora .app-main-container{background:linear-gradient(135deg,#243741e0,#1f2d35f5),repeating-linear-gradient(90deg,#ffffff07 0 1px,#0000 1px 88px)!important}body.theme-dark-aurora .sidebar,body.theme-dark-aurora .app-header,body.theme-dark-aurora .app-header-new,body.theme-dark-aurora .copilot-bottom-bar{-webkit-backdrop-filter:blur(18px)saturate(1.18)!important;backdrop-filter:blur(18px)saturate(1.18)!important;background:#26353ed1!important;border-color:#b1ccd22e!important;box-shadow:0 14px 36px -24px #091218bf!important}body.theme-dark-aurora .app-header-new{background:linear-gradient(135deg,#283a44f0,#22313ae6),linear-gradient(90deg,#5eead414,#0000 28%,#b08bd714)!important}body.theme-dark-aurora .workspace-card,body.theme-dark-aurora .metric-tile,body.theme-dark-aurora .option-checkbox-wrapper,body.theme-dark-aurora .ai-chat-message,body.theme-dark-aurora .insight-row,body.theme-dark-aurora .patient-dashboard-table,body.theme-dark-aurora .modal-content,body.theme-dark-aurora .login-card{position:relative;-webkit-backdrop-filter:blur(16px)saturate(1.12)!important;backdrop-filter:blur(16px)saturate(1.12)!important;background:linear-gradient(145deg,#30424bd6,#23323ac2)!important;border:1px solid #b1ccd22e!important;box-shadow:0 18px 42px -26px #081117c7,inset 0 1px #ffffff14!important}body.theme-dark-aurora .workspace-card:before,body.theme-dark-aurora .metric-tile:before,body.theme-dark-aurora .login-card:before{content:"";pointer-events:none;border-radius:inherit;opacity:0;background:linear-gradient(120deg,#0000 0%,#5eead414 32%,#b08bd714 62%,#0000 100%);transition:opacity .45s,transform .75s cubic-bezier(.16,1,.3,1);position:absolute;inset:0;transform:translate(-18%)}body.theme-dark-aurora .workspace-card:hover:before,body.theme-dark-aurora .metric-tile:hover:before,body.theme-dark-aurora .login-card:hover:before{opacity:1;transform:translate(0)}body.theme-dark-aurora .workspace-card:hover,body.theme-dark-aurora .metric-tile:hover{transform:translateY(-2px);border-color:#5eead45c!important;box-shadow:0 22px 48px -28px #081117db,0 0 24px #5eead41c,inset 0 1px #ffffff1a!important}body.theme-dark-aurora .view-heading h1,body.theme-dark-aurora .login-card h2,body.theme-dark-aurora .modal-header h2,body.theme-dark-aurora .workspace-empty h2{background:linear-gradient(135deg,#f2f7f7 12%,#7dd3fc 52%,#d8b4fe 100%)!important;-webkit-text-fill-color:transparent!important;letter-spacing:0!important;-webkit-background-clip:text!important}body.theme-dark-aurora .menu-item.active{background:linear-gradient(90deg,#5eead429,#38bdf814,#0000)!important;border-left-color:#5eead4!important;box-shadow:inset 0 0 18px #5eead414!important}body.theme-dark-aurora .menu-item:hover{background:#5eead414!important}body.theme-dark-aurora input,body.theme-dark-aurora textarea,body.theme-dark-aurora select,body.theme-dark-aurora .clinical-select,body.theme-dark-aurora .ai-chat-messages,body.theme-dark-aurora #treatment-chart-canvas-container{color:var(--text-primary)!important;background:#18252c8f!important;border-color:#b1ccd22e!important;box-shadow:inset 0 1px #ffffff0d!important}body.theme-dark-aurora input:focus,body.theme-dark-aurora textarea:focus,body.theme-dark-aurora select:focus{border-color:#5eead4b3!important;animation:2.6s ease-in-out infinite auroraFocusPulse!important}body.theme-dark-aurora .btn-compile-ai-gradient,body.theme-dark-aurora .btn-new-atendimento,body.theme-dark-aurora .btn-action-round.primary,body.theme-dark-aurora .btn-login-submit,body.theme-dark-aurora .btn-send-copilot{background:var(--primary-gradient)!important;box-shadow:0 14px 30px -18px #5eead4b8!important}body.theme-dark-aurora .btn-compile-ai-gradient:hover,body.theme-dark-aurora .btn-new-atendimento:hover,body.theme-dark-aurora .btn-action-round.primary:hover,body.theme-dark-aurora .btn-login-submit:hover,body.theme-dark-aurora .btn-send-copilot:hover{filter:saturate(1.12)brightness(1.07);box-shadow:0 18px 34px -18px #5eead4cc,0 0 18px #b08bd72e!important}body.theme-dark-aurora .badge,body.theme-dark-aurora .stage-pill,body.theme-dark-aurora .status-badge-rich,body.theme-dark-aurora .pathology-tag,body.theme-dark-aurora .ai-suggestion-chip{color:#d6fbf5!important;background:#5eead417!important;border-color:#5eead433!important}body.theme-dark-aurora .progress-pct,body.theme-dark-aurora .kicker-icon,body.theme-dark-aurora .view-kicker{color:#5eead4!important}body.theme-dark-aurora .mini-progress-fill,body.theme-dark-aurora .perf-graph-mock{background:var(--primary-gradient)!important}@keyframes auroraMediumShift{0%{background-position:0 42%,100% 58%,50%}50%{background-position:62%,34% 44%,50%}to{background-position:100% 58%,0 42%,50%}}@keyframes auroraFocusPulse{0%,to{box-shadow:0 0 0 1px #5eead429,inset 0 1px #ffffff0d!important}50%{box-shadow:0 0 0 4px #5eead433,0 0 18px #b08bd721,inset 0 1px #ffffff14!important}}@media (prefers-reduced-motion:reduce){body.theme-dark-aurora,body.theme-dark-aurora input:focus,body.theme-dark-aurora textarea:focus,body.theme-dark-aurora select:focus{animation:none!important}}.history-heading-actions,.history-overview-actions,.history-session-actions{align-items:center;gap:8px;display:flex}.history-heading-btn,.history-action-btn,.history-overview-actions button,.history-session-actions button{border:1px solid var(--border-color);min-height:34px;color:var(--text-secondary);font:inherit;cursor:pointer;background:#ffffff0a;border-radius:6px;justify-content:center;align-items:center;gap:6px;padding:7px 11px;font-size:10.5px;font-weight:700;display:inline-flex}.history-heading-btn:hover,.history-action-btn:hover,.history-overview-actions button:hover,.history-session-actions button:hover{border-color:var(--secondary);color:var(--text-primary);background:#2dd4bf14}.history-heading-btn.primary,.history-action-btn.primary,.history-overview-actions button.primary{color:var(--secondary);background:#2dd4bf24;border-color:#2dd4bf57}.history-metrics-grid{flex:none;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px;display:grid}.history-metric{border:1px solid var(--border-color);background:#ffffff06;border-radius:8px;align-items:center;gap:10px;min-width:0;min-height:58px;padding:10px 12px;display:flex}.history-metric-icon{width:30px;height:30px;color:var(--secondary);background:#2dd4bf1a;border-radius:6px;flex:none;justify-content:center;align-items:center;display:inline-flex}.history-metric div{flex-direction:column;gap:1px;min-width:0;display:flex}.history-metric strong{color:var(--text-primary);font-variant-numeric:tabular-nums;font-size:17px;line-height:1}.history-metric span:last-child{color:var(--text-muted);font-size:9.5px;line-height:1.25}.history-workspace{flex:1;grid-template-columns:minmax(230px,.28fr) minmax(0,1fr);gap:12px;min-height:0;display:grid;overflow:hidden}.history-patient-panel,.history-detail-panel{min-height:0;overflow:hidden;padding:12px!important}.history-patient-panel{flex-direction:column;display:flex}.history-panel-heading,.history-timeline-heading,.history-session-top,.history-patient-overview{justify-content:space-between;align-items:center;gap:12px;display:flex}.history-panel-heading{margin-bottom:9px}.history-panel-heading h3,.history-timeline-heading h3{color:var(--text-primary);margin:0 0 2px;font-size:12px}.history-panel-heading p,.history-timeline-heading p{color:var(--text-muted);margin:0;font-size:9.5px}.history-count-badge{min-width:24px;height:24px;color:var(--secondary);font-variant-numeric:tabular-nums;background:#2dd4bf1a;border-radius:6px;justify-content:center;align-items:center;font-size:10px;font-weight:800;display:inline-flex}.history-search-field{border:1px solid var(--border-color);min-width:0;height:34px;color:var(--text-muted);background:#00000014;border-radius:6px;align-items:center;gap:7px;padding:0 9px;display:flex}.history-search-field:focus-within{border-color:var(--secondary)}.history-search-field input{width:100%;min-width:0;color:var(--text-primary);outline:none;font-size:10px;box-shadow:none!important;background:0 0!important;border:0!important;padding:0!important;animation:none!important}.history-patient-list{flex-direction:column;flex:1;gap:5px;min-height:0;margin-top:9px;padding-right:3px;display:flex;overflow-y:auto}.history-patient-item{width:100%;min-width:0;min-height:54px;color:var(--text-primary);cursor:pointer;text-align:left;background:0 0;border:1px solid #0000;border-radius:7px;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:8px;padding:7px;display:grid}.history-patient-item:hover{border-color:var(--border-color);background:#ffffff09}.history-patient-item.active{border-color:color-mix(in srgb, var(--history-accent) 45%, transparent);background:#2dd4bf14}.history-patient-avatar,.history-overview-avatar{border:1px solid color-mix(in srgb, var(--history-accent) 44%, transparent);background:color-mix(in srgb, var(--history-accent) 12%, transparent);color:var(--history-accent);justify-content:center;align-items:center;font-weight:800;display:inline-flex}.history-patient-avatar{border-radius:6px;width:32px;height:32px;font-size:9px}.history-patient-copy,.history-patient-meta{flex-direction:column;gap:2px;min-width:0;display:flex}.history-patient-copy strong,.history-patient-copy small,.history-patient-meta small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.history-patient-copy strong{font-size:10.5px}.history-patient-copy small,.history-patient-meta small{color:var(--text-muted);font-size:8.5px}.history-patient-meta{text-align:right}.history-patient-meta strong{color:var(--secondary);font-variant-numeric:tabular-nums;font-size:12px}.history-detail-panel{flex-direction:column;display:flex}.history-filter-toolbar{border-bottom:1px solid var(--border-color);flex:none;grid-template-columns:minmax(180px,1fr) 160px 150px;align-items:end;gap:8px;padding-bottom:10px;display:grid}.history-filter-field{flex-direction:column;gap:4px;min-width:0;display:flex}.history-filter-field>span{color:var(--text-muted);text-transform:uppercase;font-size:8.5px;font-weight:700}.history-filter-field select{width:100%;height:34px!important;font-size:9.5px!important}.history-consultations-content{flex:1;min-height:0;padding:12px 4px 4px 0;overflow-y:auto}.history-patient-overview{border-bottom:1px solid var(--border-color);align-items:flex-start;padding:0 0 12px}.history-overview-main{align-items:center;gap:10px;min-width:0;display:flex}.history-overview-avatar{border-radius:8px;flex:none;width:46px;height:46px;font-size:12px}.history-overview-main div{min-width:0}.history-overview-kicker{color:var(--history-accent);text-transform:uppercase;font-size:8.5px;font-weight:800}.history-overview-main h2{color:var(--text-primary);margin:3px 0;font-size:16px}.history-overview-main p{max-width:520px;color:var(--text-secondary);margin:0;font-size:9.5px;line-height:1.35}.history-overview-actions{flex-wrap:wrap;justify-content:flex-end}.history-overview-actions button{min-height:30px;padding:5px 8px;font-size:9px}.history-patient-facts{border:1px solid var(--border-color);background:var(--border-color);border-radius:7px;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin:12px 0;display:grid;overflow:hidden}.history-patient-facts div{background:var(--bg-card);flex-direction:column;gap:3px;min-width:0;padding:8px 10px;display:flex}.history-patient-facts span{color:var(--text-muted);text-transform:uppercase;font-size:8px;font-weight:700}.history-patient-facts strong{color:var(--text-primary);text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums;font-size:10.5px;overflow:hidden}.history-clinical-context{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:10px;margin-bottom:14px;display:grid}.history-goal-block,.history-alerts-block,.history-anamnesis{border:1px solid var(--border-color);background:#ffffff06;border-radius:7px;padding:10px 11px}.history-goal-block>span,.history-alerts-block>span,.history-anamnesis>span{color:var(--text-primary);align-items:center;gap:6px;font-size:9px;font-weight:800;display:flex}.history-goal-block>span i,.history-alerts-block>span i,.history-anamnesis>span i{color:var(--secondary)}.history-goal-block p,.history-anamnesis p{color:var(--text-secondary);margin:7px 0 0;font-size:9.5px;line-height:1.5}.history-alerts-block ul{color:var(--text-secondary);margin:7px 0 0;padding-left:15px;font-size:9px;line-height:1.45}.history-alerts-block li+li{margin-top:3px}.history-timeline-heading{margin-bottom:8px}.history-action-btn{min-height:30px;padding:5px 9px;font-size:9px}.history-session-list{flex-direction:column;gap:8px;display:flex;position:relative}.history-session-list:before{content:"";background:var(--border-color);width:1px;position:absolute;top:13px;bottom:13px;left:13px}.history-session-item{grid-template-columns:27px minmax(0,1fr);gap:9px;display:grid;position:relative}.history-session-marker{z-index:1;padding-top:8px;position:relative}.history-session-marker span{background:var(--bg-card);width:27px;height:27px;color:var(--secondary);font-variant-numeric:tabular-nums;border:1px solid #2dd4bf61;border-radius:7px;justify-content:center;align-items:center;font-size:9px;font-weight:800;display:flex}.history-session-body{border:1px solid var(--border-color);background:#ffffff06;border-radius:7px;min-width:0;padding:9px 10px}.history-session-top>div:first-child{align-items:baseline;gap:7px;display:flex}.history-session-label{color:var(--text-primary);font-size:10px;font-weight:800}.history-session-top time{color:var(--text-muted);font-variant-numeric:tabular-nums;font-size:8.5px;font-weight:600}.history-session-signals{align-items:center;gap:5px;display:flex}.history-session-signals span{border:1px solid var(--border-color);min-width:22px;height:22px;color:var(--text-muted);font-variant-numeric:tabular-nums;border-radius:5px;justify-content:center;align-items:center;gap:3px;padding:0 5px;font-size:8px;display:inline-flex}.history-session-signals span.ready{color:var(--secondary);border-color:#2dd4bf4d}.history-session-signals span.quality{color:#7dd3fc;border-color:#38bdf847}.history-session-summary{color:var(--text-secondary);margin:7px 0 0;font-size:9.5px;line-height:1.5}.history-session-details{margin-top:7px}.history-session-details summary{width:fit-content;color:var(--secondary);cursor:pointer;font-size:8.5px;font-weight:700}.history-session-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px;display:grid}.history-session-detail-grid>div{border-left:2px solid var(--border-color);padding-left:8px}.history-session-detail-grid strong{color:var(--text-primary);font-size:8.5px}.history-session-detail-grid p,.history-session-detail-grid ul{color:var(--text-secondary);margin:4px 0 0;font-size:8.5px;line-height:1.45}.history-session-detail-grid ul{padding-left:14px}.history-session-actions{justify-content:flex-end;margin-top:8px}.history-session-actions button{min-height:26px;padding:4px 7px;font-size:8.5px}.history-anamnesis{margin-top:12px}.history-empty-state{min-height:220px;color:var(--text-muted);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:7px;display:flex}.history-empty-state.compact{min-height:110px}.history-empty-state>i{color:var(--secondary);font-size:18px}.history-empty-state h3,.history-empty-state p{margin:0}.history-empty-state h3{color:var(--text-primary);font-size:11px}.history-empty-state p{max-width:340px;font-size:9.5px;line-height:1.45}body.light-mode .history-metric,body.light-mode .history-search-field,body.light-mode .history-goal-block,body.light-mode .history-alerts-block,body.light-mode .history-anamnesis,body.light-mode .history-session-body{background:#0f172a06}@media (width<=1180px){.history-metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.history-workspace{grid-template-columns:220px minmax(0,1fr)}.history-filter-toolbar{grid-template-columns:minmax(150px,1fr) 135px 125px}.history-overview-actions span{display:none}.history-overview-actions button{width:30px;padding:5px}}@media (width<=900px){#view-historico-consultas{overflow-y:auto!important}.history-workspace{flex:none;grid-template-rows:auto minmax(560px,1fr);grid-template-columns:minmax(0,1fr);min-height:720px;overflow:visible}.history-patient-panel{min-height:150px}.history-patient-list{flex-direction:row;overflow:auto hidden}.history-patient-item{flex:0 0 220px}.history-clinical-context{grid-template-columns:minmax(0,1fr)}}@media (width<=680px){#view-historico-consultas .view-heading{align-items:flex-start!important}.history-heading-actions{width:100%}.history-heading-btn{flex:1}.history-metrics-grid,.history-filter-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.history-session-search{grid-column:1/-1}.history-patient-overview{flex-direction:column}.history-overview-actions{justify-content:flex-start;width:100%}.history-overview-actions button{flex:1;width:auto}.history-overview-actions span{display:inline}.history-patient-facts,.history-session-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.history-timeline-heading{align-items:flex-end}}.session-start-overlay{-webkit-backdrop-filter:blur(8px);z-index:100;opacity:1;background:#0a0f1e99;border-radius:12px;justify-content:center;align-items:center;transition:opacity .5s;display:flex;position:absolute;inset:0}.session-start-overlay.hidden{opacity:0;pointer-events:none}.session-start-card{background:var(--surface-light);border:1px solid var(--border-color);text-align:center;border-radius:16px;max-width:400px;padding:40px;animation:.6s slideUpFade;box-shadow:0 20px 40px #0006}.session-start-icon{background:linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);color:#fff;border-radius:50%;justify-content:center;align-items:center;width:70px;height:70px;margin:0 auto 20px;font-size:28px;display:flex;box-shadow:0 10px 20px #3b82f64d}.session-start-card h2{color:var(--text-primary);margin-bottom:10px;font-size:20px}.session-start-card p{color:var(--text-secondary);margin-bottom:30px;font-size:14px;line-height:1.5}.btn-start-consultation{background:linear-gradient(135deg, var(--accent) 0%, #b865ff 100%);color:#fff;cursor:pointer;border:none;border-radius:8px;align-items:center;gap:10px;padding:15px 30px;font-size:16px;font-weight:600;transition:all .3s;display:inline-flex;box-shadow:0 8px 15px #8b5cf64d}.btn-start-consultation:hover{transform:translateY(-2px)scale(1.02);box-shadow:0 12px 20px #8b5cf666}.session-actions-row{gap:10px;margin-top:20px;display:flex}.btn-save-draft{background:var(--surface);color:var(--text-secondary);border:1px solid var(--border-color);cursor:pointer;border-radius:8px;align-items:center;gap:8px;padding:12px 20px;font-weight:500;transition:all .2s;display:flex}.btn-save-draft:hover{background:var(--surface-light);color:var(--text-primary);border-color:var(--primary)}.session-timer-badge{color:var(--primary-light);background:#3b82f61a;border:1px solid #3b82f633;border-radius:20px;align-items:center;gap:6px;margin-left:10px;padding:4px 10px;font-family:monospace;font-size:14px;font-weight:600;display:flex}.session-timer-badge i{font-size:12px}.session-timer-badge.active{color:var(--accent);background:#8b5cf61a;border-color:#8b5cf64d}#workspace-content.sessions-view .session-actions-row{grid-template-columns:minmax(0,1fr) minmax(112px,max-content)!important;align-items:stretch!important;gap:8px!important;width:100%!important;min-width:0!important;display:grid!important}#workspace-content.sessions-view #btn-finish-session,#workspace-content.sessions-view #btn-save-session-draft{justify-content:center!important;width:100%!important;min-width:0!important}.sidebar-menu .menu-item .label-mobile{display:none}@media (width<=768px){:root{--app-header-h:56px;--app-footer-h:48px;--mobile-nav-h:calc(66px + env(safe-area-inset-bottom,0px));--mobile-bottom-stack-h:calc(var(--app-footer-h) + var(--mobile-nav-h))}html,body{overscroll-behavior-y:none;width:100%!important;height:100dvh!important;max-height:100dvh!important;overflow:hidden!important}body{min-width:320px;min-height:100dvh!important;padding:0!important}.app-main-container{flex-direction:row!important;width:100vw!important;height:100dvh!important;max-height:100dvh!important;display:flex!important;overflow:hidden!important}.main-content-layout{width:100%!important;min-width:0!important;height:100dvh!important;max-height:100dvh!important;overflow:hidden!important}.btn-toggle-sidebar,.sidebar-brand,.sidebar-section-label,.sidebar-model-selector-wrap,.sidebar-landing-link,.sidebar-footer{display:none!important}.sidebar{box-shadow:0 -10px 24px #00000029;width:100%!important;height:var(--mobile-nav-h)!important;max-height:var(--mobile-nav-h)!important;min-height:0!important;padding:6px max(8px, env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(8px, env(safe-area-inset-left,0px))!important;border-right:0!important;border-top:1px solid var(--border-color)!important;background:var(--bg-header)!important;z-index:80!important;position:fixed!important;inset:auto 0 0!important;overflow:hidden!important}.sidebar-menu{grid-template-columns:repeat(6,minmax(0,1fr))!important;align-items:stretch!important;gap:2px!important;width:100%!important;height:58px!important;min-height:0!important;padding:0!important;display:grid!important;overflow:visible!important}.sidebar-menu .menu-item{text-align:center!important;width:100%!important;min-width:0!important;height:56px!important;color:var(--text-secondary)!important;background:0 0!important;border:0!important;border-radius:12px!important;flex-direction:column!important;justify-content:center!important;align-items:center!important;gap:4px!important;padding:6px 2px!important;display:flex!important}.sidebar-menu .menu-item.active{color:var(--primary)!important;background:#0ea5e91f!important;border:0!important}.sidebar-menu .menu-item i{width:auto!important;height:18px!important;margin:0!important;font-size:16px!important;line-height:18px!important}.sidebar-menu .menu-item .label-desktop{display:none!important}.sidebar-menu .menu-item .label-mobile{opacity:1!important;white-space:nowrap!important;text-overflow:ellipsis!important;pointer-events:none!important;width:100%!important;max-width:58px!important;margin:0!important;font-size:9.5px!important;font-weight:700!important;line-height:1.1!important;display:block!important;overflow:hidden!important}.app-header-new{height:var(--app-header-h)!important;min-height:var(--app-header-h)!important;max-height:var(--app-header-h)!important;padding:0 max(10px, env(safe-area-inset-right,0px)) 0 max(10px, env(safe-area-inset-left,0px))!important;z-index:50!important;grid-template-columns:38px minmax(0,1fr) auto!important;gap:8px!important;display:grid!important;position:relative!important;overflow:hidden!important}.header-left,.header-center,.header-right{min-width:0!important}.header-left{gap:0!important;width:38px!important}.status-chip{border-radius:50%!important;justify-content:center!important;width:34px!important;min-width:34px!important;height:34px!important;padding:0!important}.status-chip span,.visualizer-bars{display:none!important}.header-center{width:100%!important}.header-patient-selector-wrap{align-items:center!important;width:100%!important;min-width:0!important;max-width:100%!important;display:flex!important}.header-patient-label,.profile-card-header,.header-divider-v,#btn-header-notifications{display:none!important}.header-patient-select{text-overflow:ellipsis!important;width:100%!important;min-width:0!important;max-width:100%!important;height:34px!important;padding:0 28px 0 10px!important;font-size:12px!important}.header-right{justify-content:flex-end!important;align-items:center!important;gap:2px!important;display:flex!important}.btn-icon-new{width:32px!important;min-width:32px!important;height:32px!important;font-size:14px!important}.search-overlay-bar{top:var(--app-header-h)!important;z-index:60!important;max-height:calc(100dvh - var(--app-header-h) - var(--mobile-bottom-stack-h))!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;padding:10px 12px!important;position:absolute!important;left:0!important;right:0!important;overflow-y:auto!important}.search-overlay-bar .custom-combobox,.search-overlay-bar .selector-wrapper,.search-overlay-bar .search-actions{width:100%!important;min-width:0!important}.workspace-area-new{-webkit-overflow-scrolling:touch;scroll-padding-bottom:18px;height:calc(100dvh - var(--app-header-h) - var(--mobile-bottom-stack-h))!important;max-height:calc(100dvh - var(--app-header-h) - var(--mobile-bottom-stack-h))!important;flex:auto!important;min-height:0!important;padding:12px 12px 14px!important;overflow:hidden auto!important}.app-view,.home-view,.patient-management-view,.ai-analysis-view,.history-view,.sessions-view{height:auto!important;min-height:100%!important;max-height:none!important;overflow:visible!important}.view-transition-active{filter:none!important;opacity:1!important;animation:none!important;transform:none!important}.view-heading{gap:10px!important;margin-bottom:10px!important}.view-heading h1{font-size:22px!important;line-height:1.12!important}.dashboard-metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.metric-tile{min-width:0!important;padding:12px!important}.metric-label,.metric-body-row small{font-size:10px!important;line-height:1.25!important}.metric-body-row strong{font-size:28px!important}.dashboard-table-card,.patient-management-card,.ai-chat-card,.ai-insights-card,.history-patient-panel,.history-detail-panel{overflow:visible!important}.patient-table-wrap{max-height:none!important;overflow:auto visible!important}.patient-dashboard-table{min-width:520px!important}#view-pacientes .patient-profile-form-container,.patient-profile-form-container{height:auto!important;max-height:none!important;overflow:visible!important}#view-pacientes .form-row,.form-row{flex-direction:column!important;gap:10px!important}#view-pacientes .form-row .form-group,.form-row .form-group{width:100%!important;min-width:0!important}.patient-form-save-bar{z-index:5!important;background:var(--bg-card)!important;gap:8px!important;padding-top:10px!important;position:sticky!important;bottom:0!important}.patient-form-save-bar .btn,.patient-form-save-bar .compact-action{white-space:normal!important;flex:1 1 0!important;justify-content:center!important;min-width:0!important}#workspace-content.sessions-view,.workspace-content-new.sessions-view{flex-direction:column!important;gap:12px!important;width:100%!important;height:auto!important;min-height:100%!important;max-height:none!important;display:flex!important;overflow:visible!important}#workspace-content.sessions-view .workspace-column-new{flex-direction:column!important;gap:12px!important;height:auto!important;min-height:0!important;max-height:none!important;padding-right:0!important;display:flex!important;overflow:visible!important}#workspace-content.sessions-view .workspace-card{border-radius:var(--radius-md)!important;padding:12px!important}#workspace-content.sessions-view .patient-header-card,.patient-header-card{flex-direction:column!important;align-items:stretch!important;gap:10px!important;min-height:auto!important;max-height:none!important;display:flex!important;overflow:visible!important}.patient-card-left{width:100%!important;min-width:0!important}.patient-card-info{min-width:0!important}.patient-card-info h2,.patient-card-info p{max-width:100%!important}.patient-card-right{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;width:100%!important;display:grid!important}.patient-card-right button{justify-content:center!important;width:100%!important;min-width:0!important}#workspace-content.sessions-view .pre-analysis-card{min-height:168px!important;max-height:none!important}#workspace-content.sessions-view .pre-analysis-body{max-height:124px!important;overflow-y:auto!important}#workspace-content.sessions-view .notepad-card{min-height:390px!important}#workspace-content.sessions-view .notepad-editor-outer{min-height:280px!important}#workspace-content.sessions-view .notepad-editor-outer .rich-editor{min-height:210px!important}#workspace-content.sessions-view .notepad-editor-bottom{flex-direction:column!important;align-items:stretch!important;gap:8px!important}#workspace-content.sessions-view .notepad-editor-bottom>div:last-child{justify-content:space-between!important;gap:8px!important;width:100%!important}#workspace-content.sessions-view .editor-word-count{display:none!important}#workspace-content.sessions-view #btn-compile-notepad{flex:auto!important;justify-content:center!important;min-width:0!important}#workspace-content.sessions-view .report-generator-card{min-height:360px!important}#workspace-content.sessions-view .options-header-row,#workspace-content.sessions-view .report-config-actions,#workspace-content.sessions-view .session-actions-row{flex-direction:column!important;align-items:stretch!important;gap:8px!important}#workspace-content.sessions-view .report-type-select,#workspace-content.sessions-view .report-options-dropdown summary,#workspace-content.sessions-view .btn-compile-ai-gradient,#workspace-content.sessions-view .btn-save-draft{justify-content:center!important;width:100%!important;max-width:none!important}#workspace-content.sessions-view .report-options-panel{width:min(320px,100vw - 48px)!important;right:0!important}#workspace-content.sessions-view .report-actions-row{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-areas:"ouvir imprimir""pdf word""drive drive"!important}#workspace-content.sessions-view .performance-card{min-height:auto!important}#workspace-content.sessions-view .performance-card .performance-body{flex-direction:column!important;align-items:stretch!important}#workspace-content.sessions-view .performance-card .perf-right,#workspace-content.sessions-view .performance-card .perf-graph-mock{width:100%!important;max-width:none!important}#view-analises .ai-analysis-grid{flex-direction:column!important;gap:12px!important;height:auto!important;min-height:0!important;display:flex!important;overflow:visible!important}#view-analises .ai-chat-card,#view-analises .ai-insights-card{height:auto!important;max-height:none!important}#view-analises .ai-chat-messages,#view-analises .insight-stack{max-height:360px!important;overflow-y:auto!important}#view-historico-consultas{overflow:visible!important}.history-workspace{grid-template-rows:auto auto!important;min-height:0!important}.history-metrics-grid,.history-filter-toolbar,.history-patient-facts,.history-session-detail-grid{grid-template-columns:1fr!important}.session-start-overlay{inset:var(--app-header-h) 12px var(--mobile-bottom-stack-h) 12px!important;border-radius:var(--radius-md)!important;z-index:90!important;position:fixed!important}.session-start-card{width:min(100%,340px)!important;padding:24px 18px!important}.session-start-card h2{font-size:18px!important}.session-start-card p{font-size:13px!important}.btn-start-consultation{justify-content:center!important;width:100%!important;padding:14px 16px!important}.copilot-bottom-bar{left:0!important;right:0!important;bottom:var(--mobile-nav-h)!important;height:var(--app-footer-h)!important;min-height:var(--app-footer-h)!important;max-height:var(--app-footer-h)!important;z-index:75!important;gap:8px!important;padding:0 10px!important;position:fixed!important}.copilot-bottom-bar .copilot-status-pill{display:none!important}.copilot-bottom-bar .footer-status-text{width:100%!important;min-width:0!important}.copilot-bottom-bar .footer-status-text span{text-overflow:ellipsis!important;white-space:nowrap!important;width:100%!important;max-width:100%!important;display:block!important;overflow:hidden!important}.copilot-bottom-bar.sessions-active .copilot-input-wrapper{max-width:none!important}.copilot-bottom-bar.sessions-active .btn-copilot-sparkles,.copilot-bottom-bar.sessions-active .btn-send-copilot{width:34px!important;min-width:34px!important;height:34px!important}.copilot-bottom-bar .copilot-input-wrapper input{min-width:0!important;padding-right:42px!important;font-size:12px!important}.modal-content.mobile-modal,.modal-content.scroll-modal{width:calc(100vw - 24px)!important;max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 36px)!important}}@media (width<=380px){.sidebar-menu .menu-item .label-mobile{font-size:8.5px!important}.btn-icon-new{width:30px!important;min-width:30px!important}.dashboard-metrics-grid{grid-template-columns:1fr!important}}#ai-chat-input[readonly],#copilot-input-field[readonly],#patient-search-input[readonly],#patient-email[readonly],#edit-patient-email[readonly]{cursor:text!important;background-color:#0000!important}body.light-mode #ai-chat-input[readonly],body.light-mode #copilot-input-field[readonly],body.light-mode #patient-search-input[readonly],body.light-mode #patient-email[readonly],body.light-mode #edit-patient-email[readonly]{background-color:#fff!important}.ai-analysis-view .workspace-card.ai-chat-card{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);background:#0d111d66;border:1px solid #6366f126;border-radius:24px;box-shadow:0 16px 40px #0003,inset 0 1px 1px #ffffff0d}body.light-mode .ai-analysis-view .workspace-card.ai-chat-card{background:#fff9;border:1px solid #6366f126;box-shadow:0 16px 40px #6366f114}.ai-analysis-view .section-toolbar{background:linear-gradient(90deg,#6366f10d 0%,#0000 100%);padding:20px 24px;border-bottom:1px solid var(--border-color)!important}.ai-analysis-view .section-toolbar h3{background:var(--primary-gradient);-webkit-text-fill-color:transparent;-webkit-background-clip:text;font-size:18px;font-weight:800}.ai-chat-messages{flex-direction:column;gap:20px;display:flex;padding:24px!important}.ai-message{transform-origin:bottom;border-radius:20px;max-width:82%;padding:14px 20px;line-height:1.6;animation:.3s cubic-bezier(.175,.885,.32,1.275) forwards scaleIn;position:relative;font-size:13.5px!important}.ai-message p{margin-bottom:8px}.ai-message p:last-child{margin-bottom:0}.ai-message strong{color:inherit;opacity:.95}.user-msg{background:linear-gradient(135deg, var(--primary) 0%, var(--spark) 100%);color:#fff;border-bottom-right-radius:4px;align-self:flex-end;box-shadow:0 8px 20px #6366f140}.assistant-msg{background:var(--bg-header);border:1px solid var(--border-color);color:var(--text-primary);border-bottom-left-radius:4px;align-self:flex-start;margin-left:12px;box-shadow:0 4px 15px #0000000d}body.light-mode .assistant-msg{background:#fff;box-shadow:0 4px 15px #00000005}.assistant-msg:before{content:"";background:var(--primary-gradient);color:#fff;border:2px solid var(--bg-app);border-radius:50%;justify-content:center;align-items:center;width:28px;height:28px;font-family:"Font Awesome 6 Free";font-size:12px;font-weight:900;display:flex;position:absolute;top:-12px;left:-20px;box-shadow:0 4px 10px #6366f14d}.assistant-msg.is-pending{box-shadow:none;color:var(--primary);background:0 0;border:none;margin-left:0;font-style:italic;font-size:13px!important}.assistant-msg.is-pending:before{display:none}.ai-suggestion-row{scrollbar-width:none;gap:8px;padding-bottom:8px;display:flex;overflow-x:auto}.ai-suggestion-row::-webkit-scrollbar{display:none}.ai-suggestion-chip{color:var(--primary);cursor:pointer;white-space:nowrap;background:#6366f114;border:1px solid #6366f133;border-radius:99px;align-items:center;padding:8px 16px;font-size:11.5px;font-weight:600;transition:all .2s cubic-bezier(.4,0,.2,1);display:flex}.ai-suggestion-chip:hover{background:var(--primary-gradient);color:#fff;border-color:#0000;transform:translateY(-2px);box-shadow:0 4px 12px #6366f14d}.ai-chat-input-row{background:var(--bg-header);border:1px solid var(--border-color);border-radius:24px;align-items:flex-end;gap:8px;padding:6px 6px 6px 20px;transition:all .3s;display:flex;box-shadow:inset 0 2px 4px #00000005}.ai-chat-input-row:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px #6366f126}#ai-chat-input{color:var(--text-primary);background:0 0;border:none;min-height:44px;padding:12px 0;font-size:14px}#ai-chat-input:focus{outline:none}#ai-chat-input::placeholder{color:var(--text-muted);opacity:.7}.btn-mic-copilot,.btn-send-copilot{cursor:pointer;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;margin-bottom:2px;transition:all .2s;display:flex}.btn-mic-copilot{color:var(--text-muted);background:0 0!important}.btn-mic-copilot:hover{color:var(--text-primary);background:#ffffff0d!important}.btn-mic-copilot.recording{color:var(--danger);animation:1.5s infinite pulseMic;background:#ef444426!important}@keyframes pulseMic{0%{box-shadow:0 0 #ef444466}70%{box-shadow:0 0 0 10px #ef444400}to{box-shadow:0 0 #ef444400}}:is(#report-body-text h2:has(+p),#report-body-text h2){color:var(--text-primary);border-bottom:1px solid var(--border-color);margin-top:20px;margin-bottom:8px;padding-bottom:4px;font-size:14px}.doc-referral-section,#report-body-text h2[data-section=encaminhamento]{border:1px solid #0ea5e940;border-left:3px solid var(--secondary);border-radius:var(--radius-sm);background:#0ea5e90f;margin:12px 0;padding:12px 16px}.doc-pts-section{border:1px solid #6366f133;border-left:3px solid var(--primary);border-radius:var(--radius-sm);background:#6366f10d;margin:12px 0;padding:12px 16px}.doc-references-section,#report-body-text h2:last-of-type{border-top:1px solid var(--border-color);margin-top:24px;padding-top:12px}#report-body-text h2~ul li,#report-body-text h2~ol li{color:var(--text-secondary);margin-bottom:4px;font-size:11px;line-height:1.5}.ai-message ul,.ai-message ol{margin:6px 0 6px 18px;padding:0}.ai-message{font-size:13.5px!important}.ai-message p,.ai-message li{font-size:13.5px!important;line-height:1.6!important}.ai-message h2,.ai-message h3,.ai-message h4{color:var(--primary);margin:10px 0 4px}.ai-message pre{border-radius:var(--radius-sm);margin:8px 0;padding:10px;font-size:11px;overflow-x:auto}.ai-message code{border-radius:4px;padding:2px 5px;font-size:11px}.btn-send-copilot{background:var(--primary-gradient);color:#fff;box-shadow:0 4px 12px #6366f14d}.btn-send-copilot:hover{transform:scale(1.05)rotate(5deg);box-shadow:0 6px 16px #6366f166}.modal-content.mobile-modal{gap:10px!important;padding:12px 18px!important}.modal-content.mobile-modal .form-group{margin-bottom:6px!important}.modal-content.mobile-modal .form-row{gap:10px!important;margin-bottom:4px!important}.modal-content.mobile-modal input,.modal-content.mobile-modal select,.modal-content.mobile-modal textarea{padding:6px 10px!important;font-size:12px!important}.modal-header{padding-bottom:8px!important}.ai-suggestion-row{margin-bottom:6px!important;padding-bottom:4px!important}.ai-suggestion-chip{padding:4px 10px!important;font-size:10.5px!important}.ai-chat-input-row .btn-send-copilot,.ai-chat-input-row .btn-mic-copilot{width:36px!important;height:36px!important}.ai-chat-input-row textarea{padding:6px 10px!important;font-size:12px!important}body.theme-dark-classic{--bg-app:#0a1128;--bg-header:#101d3ad9;--bg-card:#142346c7;--border-color:#6366f126;--border-focus:#6366f1;--primary:#6366f1;--primary-gradient:linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);--secondary:#0ea5e9;--success:#10b981;--danger:#ef4444;--spark:#a855f7;--text-primary:#f3f4f6;--text-secondary:#9ca3af;--text-muted:#6b7280;--bg-gradient-start:#0a1128;--bg-gradient-end:#040814;animation:18s ease-in-out infinite alternate auroraMediumShift;background:linear-gradient(120deg, #6366f11f, transparent 32%), linear-gradient(240deg, #a855f71f, transparent 34%), linear-gradient(180deg, var(--bg-gradient-start), var(--bg-gradient-end))!important;background-size:180% 180%,180% 180%,100% 100%!important}body.theme-dark-clinical{animation:18s ease-in-out infinite alternate auroraMediumShift;background:linear-gradient(120deg, #0ea5e91f, transparent 32%), linear-gradient(240deg, #14b8a61f, transparent 34%), linear-gradient(180deg, var(--bg-gradient-start), var(--bg-gradient-end))!important;background-size:180% 180%,180% 180%,100% 100%!important}body.theme-dark-aurora .app-main-container,body.theme-dark-classic .app-main-container,body.theme-dark-clinical .app-main-container{background:linear-gradient(135deg,#ffffff01,#00000026),repeating-linear-gradient(90deg,#ffffff04 0 1px,#0000 1px 88px)!important}body.theme-dark-aurora .sidebar,body.theme-dark-classic .sidebar,body.theme-dark-clinical .sidebar,body.theme-dark-aurora .app-header,body.theme-dark-classic .app-header,body.theme-dark-clinical .app-header,body.theme-dark-aurora .app-header-new,body.theme-dark-classic .app-header-new,body.theme-dark-clinical .app-header-new,body.theme-dark-aurora .copilot-bottom-bar,body.theme-dark-classic .copilot-bottom-bar,body.theme-dark-clinical .copilot-bottom-bar{background:var(--bg-header)!important;border-color:var(--border-color)!important;-webkit-backdrop-filter:blur(18px)saturate(1.18)!important;backdrop-filter:blur(18px)saturate(1.18)!important;box-shadow:0 14px 36px -24px #00000080!important}body.theme-dark-aurora .workspace-card,body.theme-dark-classic .workspace-card,body.theme-dark-clinical .workspace-card,body.theme-dark-aurora .metric-tile,body.theme-dark-classic .metric-tile,body.theme-dark-clinical .metric-tile,body.theme-dark-aurora .option-checkbox-wrapper,body.theme-dark-classic .option-checkbox-wrapper,body.theme-dark-clinical .option-checkbox-wrapper,body.theme-dark-aurora .ai-chat-message,body.theme-dark-classic .ai-chat-message,body.theme-dark-clinical .ai-chat-message,body.theme-dark-aurora .insight-row,body.theme-dark-classic .insight-row,body.theme-dark-clinical .insight-row,body.theme-dark-aurora .patient-dashboard-table,body.theme-dark-classic .patient-dashboard-table,body.theme-dark-clinical .patient-dashboard-table,body.theme-dark-aurora .modal-content,body.theme-dark-classic .modal-content,body.theme-dark-clinical .modal-content,body.theme-dark-aurora .login-card,body.theme-dark-classic .login-card,body.theme-dark-clinical .login-card{background:var(--bg-card)!important;border:1px solid var(--border-color)!important}body.light-mode{background:var(--bg-app)!important;background:radial-gradient(circle at 10% 20%, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 90%)!important}body.light-mode .app-main-container{background:0 0!important}body.light-mode .sidebar{background-color:var(--bg-header)!important;border-right:1px solid var(--border-color)!important}body.light-mode .app-header,body.light-mode .app-header-new,body.light-mode .copilot-bottom-bar{background-color:var(--bg-header)!important;border-bottom:1px solid var(--border-color)!important}body.light-mode .workspace-card,body.light-mode .metric-tile,body.light-mode .option-checkbox-wrapper,body.light-mode .ai-chat-message,body.light-mode .insight-row,body.light-mode .patient-dashboard-table,body.light-mode .modal-content,body.light-mode .login-card{background:var(--bg-card)!important;border:1px solid var(--border-color)!important;color:var(--text-primary)!important}
