:root{--accent: #5d87ff;--ink: #2a3547;--muted: #5a6a85;--line: #e5eaef;--sidebar: 266px;--surface: #fff;--blue-light: #ecf2ff;--cyan-light: #e8f7ff}*{box-sizing:border-box}body{margin:0}a{color:#4269d5;text-decoration:none}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #49beff;outline-offset:3px}p{line-height:1.8;margin:10px 0;color:var(--muted)}small,.caption{font-size:12px;color:var(--muted)}.tabular{font-variant-numeric:tabular-nums}.muted{color:var(--muted)}.row{display:flex;align-items:center;gap:12px}.wrap{flex-wrap:wrap}.mt-24{margin-top:24px}.full-span{grid-column:1/-1}.app-shell{min-height:100vh}.collapsed{--sidebar: 86px}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:#fff;border-right:1px solid var(--line);z-index:20}.sidebar-content{padding:29px 22px 20px;height:100%;display:flex;flex-direction:column;overflow-y:auto}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);font-size:23px;font-weight:750;letter-spacing:.5px;margin:0 4px 38px;white-space:nowrap}.brand-light{font-weight:450}.brand small{display:block;font-size:9px;letter-spacing:2px;margin-top:3px;font-weight:500}.brand-symbol{width:41px;height:44px;display:flex;align-items:center;justify-content:center;background:var(--accent);border-radius:11px;color:#fff;flex-shrink:0}.nav-group{margin-bottom:26px}.nav-heading{font-size:12px;font-weight:600;padding:0 13px;margin-bottom:10px;color:#5a6a85}.nav-item{position:relative;display:flex;align-items:center;gap:13px;padding:13px 14px;margin:3px 0;border-radius:8px;color:var(--ink);font-size:14px;transition:background .16s,color .16s}.nav-item:hover{background:#f1f5ff;color:#365dbd}.nav-item.active{background:var(--accent);color:#fff}.nav-ai{margin-left:auto;background:#e8f7ff;color:#17658b;font-size:10px;padding:1px 5px;border-radius:4px}.nav-item.active .nav-ai{background:#fff;color:#4269d5}.sidebar-help{background:#ecf2ff;padding:19px 17px;border-radius:12px;margin-top:auto}.help-icon{color:#4269d5;margin-bottom:11px}.sidebar-help strong{font-size:14px}.sidebar-help p{font-size:12px;margin:7px 0}.sidebar-help .MuiButton-root{padding-left:0}.sidebar-foot{margin-top:20px;font-size:11px;display:flex;gap:8px;align-items:center;color:var(--muted);min-height:20px}.status-dot{display:inline-block;width:7px;height:7px;background:#14a78e;border-radius:50%}.slim{padding:28px 13px}.slim .brand{margin-left:7px}.slim .nav-item{justify-content:center;padding:14px 0}.main-shell{margin-left:var(--sidebar);min-height:100vh;display:flex;flex-direction:column}.topbar{height:84px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 34px;gap:15px;border-bottom:1px solid #f0f3f8}.breadcrumb{font-size:12px;color:var(--muted)}.breadcrumb span{padding:0 10px;color:#9aa9bf}.storage-chip{background:#e6fffa!important;color:#087966!important}.topbar .row{gap:15px}main{padding:30px 36px 36px;width:100%;max-width:1600px;margin:0 auto;flex:1}.footer{display:flex;justify-content:space-between;gap:20px;padding:18px 36px 25px;color:var(--muted);font-size:11px}.page-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.page-title p{font-size:13px}.panel{background:#fff;border-radius:12px;padding:26px;box-shadow:0 3px 8px #213c6e0a;min-width:0}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.panel-heading>div:first-child{min-width:0}.welcome-banner{background:#5d87ff;color:#fff;border-radius:14px;display:flex;justify-content:space-between;align-items:center;gap:20px;padding:34px 38px;margin-bottom:26px;min-height:280px;overflow:hidden}.welcome-banner p{color:#fff;font-size:14px;line-height:1.9}.banner-tag{color:#fff;font-size:12px;opacity:.95}.spectrum-display{flex:0 0 38%;text-align:center;min-width:290px;background:#ffffff1f;border-radius:12px;padding:24px 20px 15px}.vial-row{display:flex;align-items:flex-end;justify-content:center;gap:16px}.vial-wrap small{display:block;color:#fff;font-size:10px;margin-top:12px}.vial{width:36px;height:130px;border:2px solid rgba(255,255,255,.85);border-top:5px solid white;border-radius:3px 3px 16px 16px;position:relative;overflow:hidden;background:#ffffff26}.vial>span{position:absolute;bottom:0;left:0;right:0;max-height:112px;border-radius:0 0 13px 13px}.vial:after{content:"";position:absolute;left:6px;top:15px;width:3px;bottom:14px;background:#ffffff73;border-radius:2px}.spectrum-caption{font-size:10px;display:block;margin-top:17px;color:#fff}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(290px,1fr);gap:24px}.setup-list{display:flex;flex-direction:column}.setup-item{display:flex;align-items:center;gap:18px;padding:23px 0;border-bottom:1px solid #edf1f7;color:var(--ink)}.setup-item:first-child{padding-top:6px}.setup-item:last-child{border-bottom:0;padding-bottom:4px}.setup-item strong{font-size:14px}.setup-item p{font-size:12px;margin:6px 0 0}.step-icon{display:inline-flex;width:46px;height:46px;align-items:center;justify-content:center;border-radius:10px;flex-shrink:0}.tone-0{background:#ecf2ff;color:#4269d5}.tone-1{background:#e8f7ff;color:#1774a2}.tone-2{background:#e6fffa;color:#087966}.setup-status{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:11px;color:var(--muted);margin-left:auto}.learning-promo{background:#fff}.learning-promo p{font-size:13px;margin-top:20px}.equation-preview{display:flex;align-items:center;gap:12px;margin:28px 0}.equation-preview span{display:flex;align-items:center;justify-content:center;width:47px;height:47px;background:#ecf2ff;color:#4269d5;border-radius:50%;font-weight:650;font-size:17px}.equation-preview b{color:#71809a;font-weight:450}.equation-preview .ligand{background:#fdefe8;color:#a55a29;width:37px;height:37px}.equation-preview .complex{background:#e6fffa;color:#087966;width:57px;height:57px}.mini-note{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted);padding-top:20px}.bottom-strip{background:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px;border-radius:12px;padding:22px 27px;margin-top:24px}.bottom-strip strong{font-size:14px}.bottom-strip p{font-size:12px;margin:5px 0 0}.assistant-symbol{background:#e8f7ff;color:#1b77aa;width:45px;height:45px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.home-footnote{font-size:11px;color:var(--muted);margin-top:20px}.empty{min-height:290px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px 15px}.empty-icon{width:72px;height:72px;border-radius:18px;background:#ecf2ff;color:#4269d5;display:flex;align-items:center;justify-content:center;margin-bottom:22px}.empty p{font-size:13px}.import-banner{background:#e8f7ff;border-radius:12px;padding:22px 24px;display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.import-banner strong{font-size:14px}.import-banner p{font-size:12px;margin:4px 0}.data-table-wrap{overflow-x:auto}.data-table{border-collapse:collapse;width:100%;font-size:13px;white-space:nowrap}.data-table th{text-align:left;font-weight:600;color:var(--muted);font-size:12px;padding:13px 16px;background:#f8fafc;border-bottom:1px solid var(--line)}.data-table td{padding:17px 16px;border-bottom:1px solid #edf1f7}.data-table tbody tr:last-child td{border-bottom:0}.data-table .color-value{margin:0;gap:9px}.data-table .color-swatch{width:29px;height:29px;border-radius:7px}.data-table .color-value .caption{font-size:10px}.conditions-block{background:#f6f9fc;border-radius:8px;padding:16px 20px;margin-bottom:20px;font-size:13px}.conditions-block p{white-space:pre-wrap;overflow-wrap:anywhere}.panel-bottom{display:flex;align-items:center;justify-content:space-between;font-size:12px;padding-top:20px;border-top:1px solid var(--line)}.library-tabs{display:flex;gap:10px;overflow-x:auto;margin-bottom:20px}.library-tabs button{border:1px solid var(--line);border-radius:8px;padding:10px 16px;background:#fff;color:var(--ink);white-space:nowrap}.library-tabs button.selected{background:#ecf2ff;border-color:#b8c9fa;color:#365bbf}.library-tabs small{margin-left:10px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.csv-drop{display:flex;gap:20px;align-items:center;flex-wrap:wrap;background:#f6f9fc;border-radius:8px;padding:20px;margin-top:24px;margin-bottom:15px;font-size:12px}.colorimetry-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:24px;align-items:start}.right-stack{display:flex;flex-direction:column;gap:24px}.upload-area{background:#f8fafc;border:1px dashed #c4d1e5;border-radius:10px;min-height:360px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:30px 20px}.upload-icon{color:#5d87ff;margin-bottom:20px}.upload-area p{font-size:13px}.upload-area small{margin-top:25px;font-size:11px}.image-tips{display:flex;gap:16px;font-size:12px;color:var(--muted);padding-top:22px;line-height:1.7}.image-tips strong{white-space:nowrap;color:var(--ink)}.color-value{display:flex;align-items:center;gap:14px;margin:17px 0}.color-swatch{width:43px;height:43px;flex-shrink:0;border-radius:10px;border:1px solid #e5eaef}.color-value strong{font-size:14px;font-weight:600}.rgb-bars{display:flex;flex-direction:column;gap:10px;margin:22px 0}.rgb-bars>div{display:flex;align-items:center;gap:13px;font-size:12px}.rgb-bars>div>div{background:#f0f4f8;height:7px;flex:1;border-radius:5px;overflow:hidden}.rgb-bars i{display:block;height:100%;border-radius:5px}.rgb-bars strong{font-weight:500;width:43px;text-align:right}.inline-empty{font-size:12px;margin-top:15px}.image-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:20px}.image-stage{background:#f2f2f2;border-radius:8px;display:flex;justify-content:center;padding:15px;min-height:180px;align-items:center}.canvas-wrap{position:relative;max-width:100%;line-height:0}.canvas-wrap canvas{width:100%;height:auto;display:block;touch-action:none;cursor:crosshair}.roi-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.selection-note{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);margin:17px 0}.coordinate-fields{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.condition-text{font-size:12px;margin:16px 0 5px;white-space:pre-wrap;overflow-wrap:anywhere}.match-result{border-top:1px solid var(--line);margin-top:17px;padding-top:17px}.match-name{display:flex;justify-content:space-between;gap:10px;font-weight:650;font-size:19px;margin-top:8px;overflow-wrap:anywhere}.match-result p{font-size:12px}.estimate-box{background:#e6fffa;padding:16px;border-radius:8px;display:flex;flex-direction:column;gap:7px;font-size:12px;color:#087966}.estimate-box strong{font-size:23px}.estimate-box small{font-size:12px;color:#087966}.analysis-toolbar{margin-bottom:24px}.plot{width:100%}.plot svg{display:block;width:100%;max-height:410px;overflow:visible}.plot text{fill:#5a6a85;font-size:12px;font-family:inherit}.formula-block{background:#ecf2ff;color:#3555ac;padding:20px;border-radius:9px;line-height:1.9;font-size:18px;overflow-wrap:anywhere;margin:12px 0 23px}.result-list{display:grid;grid-template-columns:1fr 1.2fr;gap:15px;font-size:13px;margin:25px 0}.result-list dt{color:var(--muted)}.result-list dd{margin:0;text-align:right;font-weight:600;font-variant-numeric:tabular-nums}.record-link{border:0;background:none;padding:0;color:#4269d5;font-weight:600;max-width:200px;white-space:normal;text-align:left;overflow-wrap:anywhere}.record-image{position:relative;align-self:start;line-height:0}.record-image img{display:block;width:100%;border-radius:8px}.slider-control{margin:20px 0 25px}.slider-control label{display:flex;justify-content:space-between;gap:10px;font-size:13px}.slider-control strong{font-weight:600}.slider-control .MuiSlider-root{margin:10px 0 0}.equilibrium-equation{text-align:center;font-size:29px;margin:30px 0;color:var(--ink)}.equilibrium-equation span{color:#5d87ff;margin:0 15px}.composition-bars{display:flex;flex-direction:column;gap:23px}.composition-bars>div>div:first-child{display:flex;justify-content:space-between;font-size:12px;gap:10px;margin-bottom:8px}.bar-track{height:10px;background:#f0f4f8;border-radius:5px}.bar-track i{display:block;height:100%;border-radius:5px;transition:width .15s}.balance-note{display:flex;gap:18px;align-items:center;background:#e8f7ff;border-radius:10px;padding:20px;margin:28px 0}.balance-note strong{font-size:30px;color:#176c96}.balance-note span{font-size:12px;color:#38627c;line-height:1.8}.particle-scene{width:100%;height:auto;display:block}.animation-layout{display:grid;grid-template-columns:1.3fr 1fr;gap:30px;align-items:center}.animation-text p{font-size:14px}.animation-text .formula-block{font-size:16px;margin:20px 0}.player-controls{display:flex;align-items:center;justify-content:center;margin-top:20px;gap:5px}.chapter-buttons{display:flex;flex-wrap:wrap;gap:10px;margin-top:30px;border-top:1px solid var(--line);padding-top:22px}.chapter-buttons button{background:#f6f9fc;border:0;padding:10px 15px;border-radius:7px;color:var(--muted);font-size:12px}.chapter-buttons button.selected{background:#ecf2ff;color:#365dbd}.legend{display:flex;gap:18px;flex-wrap:wrap;margin-top:20px;font-size:12px;color:var(--muted)}.legend span{display:flex;align-items:center;gap:8px}.legend i{width:10px;height:10px;border-radius:50%}.moving .particle{animation:float-particle 4s ease-in-out infinite alternate}@keyframes float-particle{0%{transform:translateY(-4px)}to{transform:translate(6px,5px)}}.guide-steps{counter-reset:steps;list-style:none;padding:0;max-width:850px}.guide-steps li{position:relative;padding:0 0 27px 52px;counter-increment:steps}.guide-steps li:before{content:counter(steps);position:absolute;left:0;top:0;width:32px;height:32px;border-radius:8px;background:#ecf2ff;color:#4269d5;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600}.guide-steps strong{font-size:15px}.guide-steps p{font-size:13px;margin:8px 0 0}.prose-list{max-width:800px;padding-left:22px;color:var(--muted);line-height:1.9;font-size:14px}.prose-list li{margin-bottom:14px}.assistant-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:24px;align-items:start}.chat-panel{padding:0;overflow:hidden}.chat-head{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--line)}.chat-head strong{font-size:14px}.chat-head small{display:block;font-size:11px;margin-top:4px}.chat-history{min-height:340px;max-height:560px;overflow-y:auto;padding:24px}.chat-welcome{text-align:center;padding:16px 0}.chat-orb{width:75px;height:75px;background:#ecf2ff;color:#4269d5;display:flex;align-items:center;justify-content:center;margin:0 auto 24px;border-radius:20px}.chat-welcome h2{font-size:22px}.chat-welcome p{font-size:13px}.suggestions{display:flex;flex-direction:column;gap:10px;max-width:440px;margin:24px auto 0}.suggestions button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:12px 15px;display:flex;align-items:center;justify-content:space-between;text-align:left;gap:15px;color:var(--muted);font-size:12px}.suggestions button:hover{background:#ecf2ff;border-color:#b5c8ff}.chat-message{margin-bottom:24px;max-width:95%}.chat-message.user{margin-left:auto;background:#ecf2ff;border-radius:10px;padding:15px 18px}.message-author{font-size:11px;color:var(--muted)}.message-content{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.9;margin-top:8px}.citation{margin-top:12px!important;background:#f7f9fc!important}.citation .MuiAccordionSummary-content{align-items:center;gap:8px;font-size:11px}.citation p{white-space:pre-wrap;font-size:12px;overflow-wrap:anywhere}.chat-compose{padding:24px}.compose-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:12px}.compose-footer small{font-size:10px}.assistant-steps{margin-bottom:20px}.assistant-steps>div{display:flex;gap:12px;align-items:center;margin-bottom:15px}.assistant-steps span{background:#ecf2ff;color:#4269d5;width:26px;height:26px;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:7px;font-size:12px}.assistant-steps p{font-size:12px;margin:0}@media(min-width:1500px){main{padding-top:38px}.welcome-banner{min-height:300px}.setup-item{padding-top:29px;padding-bottom:29px}}@media(max-width:1300px){main{padding:25px}.topbar{padding:0 24px}.dashboard-grid{grid-template-columns:minmax(0,1.3fr) minmax(260px,1fr)}.colorimetry-grid{grid-template-columns:minmax(0,1fr) 300px}.assistant-grid{grid-template-columns:minmax(0,1fr) 270px}.setup-status{display:none}.welcome-banner{padding:30px}.spectrum-display{min-width:250px}.vial-row{gap:12px}.import-banner{align-items:flex-start;flex-direction:column}}@media(max-width:1099px){.main-shell{margin-left:0}.topbar{height:72px}.dashboard-grid{grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr)}.sidebar-content .brand{margin-bottom:28px}.sidebar-help{margin-top:20px}}@media(max-width:800px){.dashboard-grid,.colorimetry-grid,.assistant-grid,.animation-layout{grid-template-columns:minmax(0,1fr)}.colorimetry-grid .right-stack{display:grid;grid-template-columns:1fr 1fr;align-items:start}.spectrum-display{min-width:210px;flex-basis:35%;padding:25px 14px 14px}.vial-row{gap:10px}.vial{width:26px;height:105px}.welcome-banner{padding:27px}.welcome-banner h2{font-size:24px!important}.page-title{align-items:flex-start}.page-title>div:last-child{flex-wrap:wrap}.assistant-grid>.right-stack{display:grid;grid-template-columns:1fr 1fr}.header-assistant{display:none!important}.panel{padding:23px}.chat-panel{padding:0}.footer{flex-direction:column;gap:6px}.animation-text{padding-top:10px}}@media(max-width:600px){main{padding:22px 16px}.topbar{padding:0 12px}.topbar .row{gap:5px}.breadcrumb{font-size:11px}.breadcrumb span{padding:0 5px}.storage-chip{display:none!important}.page-title{flex-direction:column;gap:15px;margin-bottom:22px}.page-title h1{font-size:25px}.page-title p{font-size:12px}.page-title>.row{gap:6px}.welcome-banner{flex-direction:column;align-items:stretch;padding:26px 23px;gap:27px}.welcome-banner h2{font-size:24px!important}.spectrum-display{min-width:0}.vial-row{gap:24px}.vial{width:30px;height:100px}.spectrum-caption{margin-top:14px}.welcome-banner .MuiButton-root{padding:8px 13px}.panel{padding:20px}.panel-heading{align-items:flex-start;flex-wrap:wrap;margin-bottom:20px}.panel-heading h2{font-size:17px}.setup-item{gap:13px}.setup-item p{font-size:11px}.setup-item strong{font-size:13px}.bottom-strip{padding:20px;flex-direction:column;align-items:flex-start;gap:10px}.bottom-strip strong{font-size:13px}.bottom-strip p{font-size:11px}.form-grid{grid-template-columns:1fr}.colorimetry-grid .right-stack,.assistant-grid>.right-stack{display:flex;flex-direction:column}.colorimetry-grid .right-stack>.panel,.assistant-grid>.right-stack>.panel{width:100%}.coordinate-fields{grid-template-columns:1fr 1fr}.image-tips{flex-direction:column;gap:5px}.upload-area{min-height:310px;padding:24px 12px}.upload-area h2{font-size:18px}.upload-area small{max-width:230px}.image-tools{flex-wrap:wrap}.import-banner{padding:20px}.import-banner>.row{align-items:flex-start}.import-banner strong{font-size:13px}.import-banner .row.wrap{gap:3px}.data-table td,.data-table th{padding:12px 10px}.footer{padding:20px 17px;font-size:10px}.chat-panel{padding:0}.chat-head{padding:18px 15px}.chat-history,.chat-compose{padding:20px 16px}.compose-footer{align-items:flex-start}.compose-footer small{max-width:180px}.chat-welcome h2{font-size:20px}.chat-head .row{gap:10px}.guide-steps li{padding-left:43px}.formula-block{font-size:16px}.result-list{font-size:12px}.MuiDialogContent-root .form-grid{padding-top:8px}.plot text{font-size:13px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}@media print{body{background:#fff}.sidebar,.topbar,.footer,.page-title,.no-print,main>.panel:not(.printable){display:none!important}.main-shell{margin:0}main{padding:0}.printable{box-shadow:none;padding:0;margin:0}.printable .dashboard-grid{grid-template-columns:1fr 1fr}.printable img{max-height:500px;object-fit:contain}.MuiAlert-root{break-inside:avoid}}
