:root{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-display:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-mono:"JetBrains Mono", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;--ink-950:#020617;--ink-900:#0f172a;--ink-800:#1e293b;--ink-700:#334155;--ink-600:#475569;--ink-500:#64748b;--ink-400:#94a3b8;--ink-300:#cbd5e1;--ink-200:#e2e8f0;--ink-100:#f1f5f9;--ink-50:#f8fafc;--ink-25:#fff;--accent-600:#1d4ed8;--accent-500:#2563eb;--accent-400:#3b82f6;--accent-300:#60a5fa;--accent-200:#93c5fd;--accent-100:#dbeafe;--accent-50:#eff6ff;--success-600:#059669;--success-500:#10b981;--success-400:#34d399;--success-100:#d1fae5;--warning-600:#d97706;--warning-500:#f59e0b;--warning-100:#fef3c7;--danger-600:#dc2626;--danger-500:#ef4444;--danger-100:#fee2e2;--surface-app:#f8fafc;--surface-panel:#fff;--surface-elevated:#fff;--surface-sunken:#f1f5f9;--surface-canvas-bg:#e2e8f0;--border-subtle:#f1f5f9;--border-default:#cbd5e1;--border-strong:#94a3b8;--shadow-xs:0 1px 2px #0f172a0a;--shadow-sm:0 1px 3px #0f172a0f, 0 1px 2px #0f172a08;--shadow-md:0 4px 12px #0f172a12, 0 1px 3px #0f172a0a;--shadow-lg:0 12px 28px #0f172a17, 0 3px 8px #0f172a0d;--shadow-xl:0 20px 40px #0f172a1f, 0 6px 16px #0f172a0f;--shadow-focus:0 0 0 2px #2563eb40;--sp-1:4px;--sp-2:8px;--sp-3:12px;--sp-4:16px;--sp-5:20px;--sp-6:24px;--sp-8:32px;--radius-xs:2px;--radius-sm:4px;--radius-md:5px;--radius-lg:8px;--radius-xl:10px;--ease-out-expo:cubic-bezier(.16, 1, .3, 1);--ease-spring:cubic-bezier(.34, 1.56, .64, 1);--duration-fast:.1s;--duration-normal:.15s;--duration-slow:.25s;font-family:var(--font-sans);color:var(--ink-800);background:var(--surface-app);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}body{min-width:1080px;min-height:100vh;margin:0}button,select{font:inherit}button{cursor:pointer}.app-shell{background:var(--surface-app);min-height:100vh}.topbar{background:var(--surface-panel);border-bottom:1px solid var(--border-subtle);height:56px;box-shadow:var(--shadow-xs);align-items:center;gap:24px;padding:0 20px;display:flex}.brand{font-family:var(--font-display);color:var(--ink-800);letter-spacing:-.02em;align-items:center;gap:10px;min-width:180px;font-size:15px;font-weight:800;display:flex}.brand-light{color:var(--ink-400);font-weight:500}.brand-mark{border-radius:var(--radius-md);background:var(--accent-50);width:28px;height:28px;color:var(--accent-500);box-shadow:var(--shadow-xs);place-items:center;display:grid}.beta{border-radius:var(--radius-xs);background:var(--ink-50);color:var(--ink-400);letter-spacing:.1em;margin-left:2px;padding:2px 6px;font-size:9px;font-weight:700}.doc-title{color:var(--ink-400);align-items:center;gap:8px;margin-left:16px;font-size:12px;display:flex}.live-dot,.footer-dot{background:var(--success-500);border-radius:50%;width:7px;height:7px;box-shadow:0 0 6px #10b98166}.doc-title svg{color:var(--ink-300)}.top-actions{align-items:center;gap:6px;margin-left:auto;display:flex}.icon-btn,.small-action{color:var(--ink-400);border-radius:var(--radius-sm);width:32px;height:32px;transition:all var(--duration-fast) ease;background:0 0;border:0;place-items:center;display:grid}.icon-btn svg{width:16px;height:16px}.icon-btn:hover,.small-action:hover{background:var(--ink-50);color:var(--ink-700)}.icon-btn:disabled{opacity:.35;cursor:default}.divider{background:var(--border-subtle);width:1px;height:22px;margin:0 4px}.button-quiet,.button-primary{border-radius:var(--radius-sm);height:32px;transition:all var(--duration-fast) ease;align-items:center;gap:6px;padding:0 12px;font-size:12px;font-weight:600;display:flex}.button-quiet{border:1px solid var(--border-default);color:var(--ink-600);background:#fff}.button-quiet:hover{background:var(--ink-50);border-color:var(--border-strong)}.button-primary{border:1px solid var(--accent-500);background:var(--accent-500);color:#fff;box-shadow:0 2px 4px #2b63e833}.button-primary:hover{background:var(--accent-600);box-shadow:0 3px 8px #2b63e840}.avatar{background:var(--accent-50);width:28px;height:28px;color:var(--accent-500);border-radius:50%;place-items:center;margin-left:6px;font-size:11px;font-weight:700;display:grid}.workspace{grid-template-columns:78px minmax(620px,1fr) 294px;min-height:calc(100vh - 56px);display:grid}.rail{background:var(--surface-panel);border-right:1px solid var(--border-subtle);flex-direction:column;align-items:center;gap:5px;padding:20px 10px;display:flex}.rail-cap,.eyebrow,.section-label{color:var(--ink-300);letter-spacing:.12em;text-transform:uppercase;font-size:9px;font-weight:700}.rail-cap{margin-bottom:8px}.tool{border-radius:var(--radius-md);width:52px;height:52px;color:var(--ink-400);transition:all var(--duration-fast) var(--ease-out-expo);background:0 0;border:1px solid #0000;flex-direction:column;justify-content:center;align-items:center;gap:4px;font-size:9px;font-weight:600;display:flex}.tool svg{width:18px;height:18px}.tool:hover{background:var(--ink-50);color:var(--ink-600);transform:translateY(-1px)}.tool.active{color:var(--accent-500);background:var(--accent-50);border-color:var(--accent-200);box-shadow:var(--shadow-xs)}.rail-spacer{flex:1}.tool.muted{color:var(--ink-300)}.editor{flex-direction:column;min-width:0;padding:28px 32px 18px;display:flex}.canvas-head{justify-content:space-between;align-items:flex-start;width:min(100%,920px);margin:0 auto 20px;display:flex}.eyebrow span{color:var(--ink-200);margin:0 5px}.canvas-head h1{font-family:var(--font-display);letter-spacing:-.035em;color:var(--ink-800);margin:6px 0 4px;font-size:21px;font-weight:700}.canvas-head p{color:var(--ink-400);margin:0;font-size:12px}.canvas-head-actions{align-items:center;gap:2px;display:flex}.canvas-head-actions .divider{margin:0 6px}.canvas-frame{border:1px solid var(--border-default);border-radius:var(--radius-lg);width:min(100%,920px);height:min(610px,100vh - 250px);min-height:420px;box-shadow:var(--shadow-md);background:#fff;flex-direction:column;margin:0 auto;display:flex;overflow:hidden}.canvas-tools{border-bottom:1px solid var(--border-subtle);background:var(--surface-panel);flex:none;align-items:center;gap:3px;height:42px;padding:0 12px;display:flex}.tool-pill{border-radius:var(--radius-sm);height:28px;color:var(--ink-400);transition:all var(--duration-fast) ease;background:0 0;border:0;align-items:center;gap:5px;padding:0 9px;font-size:10px;display:flex}.tool-pill:hover,.tool-pill.selected{background:var(--accent-50);color:var(--accent-500)}.canvas-tool-sep{background:var(--border-subtle);width:1px;height:18px;margin:0 4px}.zoom{color:var(--ink-300);font-size:10px;font-family:var(--font-mono);font-variant-numeric:tabular-nums;margin-left:auto}.chem-canvas{cursor:crosshair;touch-action:none;flex:1;width:100%;height:calc(100% - 72px);min-height:0;display:block}.atom-group{cursor:pointer}.atom-group text{-webkit-user-select:none;user-select:none;font-family:Arial,sans-serif;font-size:16px;font-weight:600}.atom-group .carbon{fill:var(--ink-800)}.atom-group .hetero{font-weight:700}.bond-group{cursor:pointer}.canvas-footer{height:28px;color:var(--ink-300);border-top:1px solid var(--border-subtle);background:var(--surface-panel);flex:none;justify-content:space-between;align-items:center;padding:0 14px;font-size:9px;display:flex}.canvas-footer>span:first-child{align-items:center;gap:5px;display:flex}.footer-dot{width:6px;height:6px}.canvas-footer i{background:var(--ink-200);border-radius:50%;width:3px;height:3px;margin:0 5px 2px;display:inline-block}.bottom-tip{width:min(100%,920px);color:var(--ink-400);align-items:center;gap:10px;margin:12px auto 0;font-size:10px;display:flex}.tip-icon{border-radius:var(--radius-sm);background:var(--accent-50);width:24px;height:24px;color:var(--accent-400);flex:none;place-items:center;display:grid}.bottom-tip b{color:var(--ink-600);font-weight:600}.bottom-tip kbd{font-family:var(--font-mono);color:var(--ink-500);border:1px solid var(--border-default);border-radius:var(--radius-xs);background:var(--surface-panel);box-shadow:0 1px 0 var(--border-subtle);padding:2px 5px;font-size:9px}.tip-dot{color:var(--ink-200);margin:0 5px}.bottom-tip>button{color:var(--accent-500);white-space:nowrap;transition:color var(--duration-fast) ease;background:0 0;border:0;align-items:center;gap:5px;margin-left:auto;font-size:10px;font-weight:600;display:flex}.bottom-tip>button:hover{color:var(--accent-600)}.inspector{background:var(--surface-panel);border-left:1px solid var(--border-default);overscroll-behavior:contain;flex-direction:column;max-height:calc(100vh - 48px);padding:8px 10px;display:flex;overflow-y:auto}.inspector-header{border-bottom:1px solid var(--border-subtle);justify-content:space-between;align-items:center;padding-bottom:6px;display:flex}.inspector-header-left{align-items:center;gap:5px;display:flex}.dock-title-icon{color:#2563eb;font-size:12px}.dock-title-text{color:#1e293b;letter-spacing:-.01em;font-size:11px;font-weight:700}.theme-dark .dock-title-text{color:#f1f5f9}.theme-dark .dock-title-icon{color:#60a5fa}.inspector-header h2{color:var(--ink-700);letter-spacing:-.01em;margin:0;font-size:11px;font-weight:700}.icon-btn.compact{border:1px solid var(--border-default);width:22px;height:22px;color:var(--ink-500);border-radius:2px}.metric-grid{grid-template-columns:1fr 1fr;gap:4px;margin:6px 0;display:grid}.metric{border:1px solid var(--border-default);background:var(--surface-panel);height:38px;transition:border-color var(--duration-fast) ease;border-radius:2px;flex-direction:column;justify-content:center;padding:3px 6px;display:flex}.metric:hover{border-color:var(--border-strong)}.metric span{letter-spacing:.06em;color:var(--ink-500);text-transform:uppercase;font-size:8px;font-weight:700;line-height:1}.metric strong{font-size:12px;font-family:var(--font-mono);color:var(--ink-800);font-weight:700;line-height:1.2}.metric.wide{grid-column:span 2;height:38px}.metric.wide strong{font-size:11px}.section-label{letter-spacing:.06em;color:var(--ink-500);text-transform:uppercase;margin:0 0 6px;font-size:9px;font-weight:700}.section-label.spaced{border-top:1px solid var(--border-subtle);margin-bottom:6px;padding-top:8px}.structure-row{border:1px solid var(--border-subtle);border-radius:var(--radius-md);transition:border-color var(--duration-fast) ease;align-items:center;gap:9px;padding:9px;display:flex}.structure-row:hover{border-color:var(--border-strong)}.structure-icon{border-radius:var(--radius-sm);background:var(--accent-50);width:30px;height:30px;color:var(--accent-400);place-items:center;display:grid}.structure-row>div:nth-child(2){flex-direction:column;gap:3px;min-width:0;display:flex}.structure-row strong{color:var(--ink-600);font-size:10px;font-weight:600}.structure-row small{color:var(--ink-300);font-size:9px}.status-tag{background:var(--success-100);color:var(--success-600);border-radius:var(--radius-xs);letter-spacing:.08em;text-transform:uppercase;margin-left:auto;padding:3px 6px;font-size:7px;font-weight:700}.validation-card{border-radius:var(--radius-md);background:#f0fdf4;border:1px solid #d1fae5;align-items:center;gap:9px;padding:10px;display:flex}.validation-icon{width:22px;height:22px;color:var(--success-500);background:#d1fae5;border-radius:50%;flex:none;place-items:center;font-size:12px;font-weight:700;display:grid}.validation-card>div:last-child{flex-direction:column;gap:3px;display:flex}.validation-card strong{color:#166534;font-size:10px;font-weight:600}.validation-card small{color:#4ade80;font-size:9px}.validation-card.has-errors{border-color:var(--danger-100);background:#fef2f2}.validation-card.has-errors .validation-icon{background:var(--danger-100);color:var(--danger-500)}.validation-note{color:var(--ink-300);margin:6px 2px 0;font-size:9px;line-height:1.5}.drawing-controls{flex-direction:column;gap:8px;display:flex}.drawing-controls label{color:var(--ink-400);letter-spacing:.08em;text-transform:uppercase;justify-content:space-between;align-items:center;font-size:9px;font-weight:700;display:flex}.drawing-controls select,.inspector select{border:1px solid var(--border-default);border-radius:var(--radius-sm);background:var(--surface-panel);width:126px;height:28px;color:var(--ink-600);font-size:10px;font-family:var(--font-sans);transition:border-color var(--duration-fast) ease;outline:none;padding:0 8px}.drawing-controls select:focus,.inspector select:focus{border-color:var(--accent-400);box-shadow:var(--shadow-focus)}.ring-presets{border-top:1px solid var(--border-subtle);flex-direction:column;gap:6px;margin-top:14px;padding-top:14px;display:flex}.ring-presets>span{letter-spacing:.1em;color:var(--ink-300);text-transform:uppercase;font-size:8px;font-weight:700}.ring-presets button{border:1px solid var(--border-subtle);border-radius:var(--radius-sm);background:var(--surface-panel);height:34px;color:var(--accent-500);text-align:left;transition:all var(--duration-fast) ease;padding:0 10px;font-size:16px}.ring-presets button:hover{background:var(--accent-50);border-color:var(--accent-200)}.ring-presets small{color:var(--ink-500);margin-left:6px;font-size:10px}.inspector-bottom{border-top:1px solid var(--border-subtle);color:var(--ink-300);letter-spacing:.08em;text-transform:uppercase;align-items:center;gap:6px;margin-top:auto;padding-top:12px;font-size:8px;font-weight:700;display:flex}.inspector-bottom svg{color:var(--accent-400)}.inspector-bottom b{color:var(--accent-500);margin-left:3px}.property-card{align-items:center;gap:11px;margin:16px 0;display:flex}.atom-badge{border:1px solid var(--border-default);border-radius:var(--radius-md);background:var(--ink-25);place-items:center;width:40px;height:40px;font-family:Arial,sans-serif;font-size:18px;font-weight:700;display:grid}.property-heading{flex-direction:column;gap:3px;display:flex}.property-heading strong{color:var(--ink-600);font-size:12px}.property-heading small{color:var(--ink-400);font-size:10px}.field-label{color:var(--ink-400);letter-spacing:.08em;text-transform:uppercase;margin:14px 0 6px;font-size:9px;font-weight:700;display:block}.inspector>select{width:100%;height:32px}.charge-control{border:1px solid var(--border-default);border-radius:var(--radius-sm);height:32px;color:var(--ink-600);justify-content:space-between;align-items:center;font-size:12px;display:flex}.charge-control button{width:32px;height:30px;color:var(--ink-500);transition:background var(--duration-fast) ease;background:0 0;border:0;font-size:16px}.charge-control button:hover{background:var(--ink-50)}.delete-button{border:1px solid var(--danger-100);height:32px;color:var(--danger-500);border-radius:var(--radius-sm);transition:all var(--duration-fast) ease;background:#fef2f2;margin-top:18px;font-size:10px;font-weight:600}.delete-button:hover{background:var(--danger-100);border-color:#fca5a5}.toast{background:var(--ink-800);color:#fff;border-radius:var(--radius-md);box-shadow:var(--shadow-lg);z-index:10;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);animation:toastSlideIn .25s var(--ease-out-expo);align-items:center;gap:8px;padding:10px 16px;font-size:11px;font-weight:500;display:flex;position:fixed;bottom:28px;left:50%;transform:translate(-50%)}.toast svg{color:var(--success-400)}@keyframes toastSlideIn{0%{opacity:0;transform:translate(-50%)translateY(12px)}to{opacity:1;transform:translate(-50%)translateY(0)}}@media (width<=1200px){.workspace{grid-template-columns:70px minmax(560px,1fr) 264px}.editor{padding-left:20px;padding-right:20px}.inspector{padding-left:14px;padding-right:14px}}.ring-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;display:grid}.ring-grid button{flex-direction:column;justify-content:center;align-items:center;gap:2px;height:42px;padding:3px;display:flex}.ring-grid button small{color:#667486;margin:0;font-size:9px}.ring-grid button svg{width:15px;height:15px}.recovery-banner{color:#52657b;background:#f7faff;border:1px solid #dce6f1;border-radius:7px;align-items:center;gap:8px;width:min(100%,920px);margin:-10px auto 16px;padding:9px 12px;font-size:11px;display:flex}.recovery-banner button{color:#536fc5;background:#eaf0ff;border:0;border-radius:5px;padding:5px 8px;font-size:10px;font-weight:600}.recovery-banner .dismiss{color:#84909d;background:0 0}.tool-pill{-webkit-user-select:none;user-select:none}.validate-button{color:#526fc6;background:#f7f9ff;border:1px solid #dbe4f4;border-radius:6px;width:100%;height:32px;margin-top:8px;font-size:10px;font-weight:600}.validate-button:hover{background:#eef2ff}.rdkit-result{color:#44634f;background:#f8fcf9;border:1px solid #dceee3;border-radius:6px;flex-direction:column;gap:4px;margin-top:8px;padding:9px;font-size:9px;display:flex}.rdkit-result.has-errors{color:#a44e47;background:snow;border-color:#f2dedb}.rdkit-result small{color:#738276;overflow-wrap:anywhere;font-size:9px;line-height:1.4}.rdkit-result .canonical{color:#697786;font-family:monospace}.molecule-select{color:#49596b;background:#fff;border:1px solid #e5e9ed;border-radius:5px;max-width:150px;height:28px;padding:0 7px;font-size:10px}.reaction-graphic text{font-family:inherit}.chem-canvas{touch-action:none}.reaction-graphic{pointer-events:auto}.reaction-graphic line,.chem-canvas [data-document-object]{cursor:pointer}.export-controls{margin-bottom:14px}.export-controls select{width:126px}.number-field{color:#49596b;background:#fff;border:1px solid #e5e9ed;border-radius:5px;width:126px;height:29px;padding:0 8px;font-size:10px}.export-modal-backdrop{z-index:30;background:#17233488;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.export-modal{background:var(--surface-app,#f6f9fc);border:1px solid var(--border-default,#d2dbe5);border-radius:var(--radius-lg,12px);width:min(760px,94vw);max-height:92vh;box-shadow:var(--shadow-xl,0 20px 50px #0a0f1a24);font-family:var(--font-sans,"Inter", sans-serif);padding:20px 24px;overflow:auto}.export-modal-head{justify-content:space-between;align-items:center;display:flex}.export-modal-head h2{color:var(--ink-800,#162038);font-size:18px;font-family:var(--font-display,"Manrope", sans-serif);letter-spacing:-.02em;margin:5px 0 0;font-weight:700}.preview-summary{color:#708092;margin:14px 0 10px;font-size:11px}.preview-stage{background:#e9edf1;border:1px solid #dfe5e9;border-radius:8px;justify-content:center;align-items:center;height:min(62vh,600px);padding:16px;display:flex;overflow:auto}.preview-paper{aspect-ratio:595.28/841.89;background:#fff;border:1px solid #d8dde2;flex:none;width:auto;max-width:100%;height:100%;max-height:100%;position:relative;box-shadow:0 3px 14px #25374a22}.preview-art{position:absolute;overflow:hidden}.preview-art>svg{display:block;width:100%!important;height:100%!important}.export-modal-footer{justify-content:flex-end;gap:8px;margin-top:16px;display:flex}.molecule-layout>button,.molecule-layout>div button{color:#536273;background:#fff;border:1px solid #e5e9ed;border-radius:5px;height:30px;margin-right:5px;padding:0 8px;font-size:10px}.molecule-layout button:disabled{opacity:.42;cursor:default}.molecule-layout>div{gap:4px;display:flex}.molecule-layout>div button{flex:1;margin:0}.heterocycle-presets>div{flex-wrap:wrap;gap:5px;display:flex}.heterocycle-presets button{flex:1 0 28%;min-height:30px;font-size:10px}.fused-presets>div{gap:6px;display:flex}.fused-presets button{flex:1;min-height:32px;font-size:11px}.recent-menu-wrap{position:relative}.recent-menu{z-index:40;background:#fff;border:1px solid #e3e8ee;border-radius:8px;width:250px;max-height:320px;padding:6px;position:absolute;top:38px;right:0;overflow:auto;box-shadow:0 12px 30px #23344922}.recent-menu button{color:#35465a;text-align:left;background:0 0;border:0;border-radius:5px;flex-direction:column;align-items:flex-start;gap:4px;width:100%;padding:9px;display:flex}.recent-menu button:hover{background:#f3f6fb}.recent-menu button span{font-size:11px;font-weight:600}.recent-menu button small,.recent-menu p{color:#8290a0;font-size:9px}.recent-menu p{margin:10px}.smiles-modal{width:min(560px,100vw - 32px)}.smiles-input{resize:vertical;box-sizing:border-box;border:1px solid var(--border-default,#d2dbe5);border-radius:var(--radius-md,8px);background:var(--surface-panel,#fff);width:100%;min-height:112px;color:var(--ink-800,#162038);font:500 14px/1.55 var(--font-mono,"JetBrains Mono", ui-monospace, Consolas, monospace);outline:none;padding:13px 14px;transition:border-color .15s,box-shadow .15s;display:block}.smiles-input:focus{border-color:var(--accent-500,#2b63e8);box-shadow:var(--shadow-focus,0 0 0 3px #2b63e838)}.smiles-modal .validation-note{margin:10px 0 0}.smiles-modal [role=alert]{margin-top:12px}.saveas-modal{width:min(520px,100vw - 32px)}.saveas-modal .text-field{box-sizing:border-box;width:100%}.newdoc-modal{width:min(580px,100vw - 32px)}.newdoc-modal .export-modal-footer{flex-wrap:wrap}.app-shell.theme-dark{--surface-app:#0b0f19;--surface-panel:#0f172a;--surface-elevated:#1e293b;--surface-sunken:#020617;--surface-canvas-bg:#020617;--border-subtle:#1e293b;--border-default:#334155;--border-strong:#475569;--shadow-xs:0 1px 2px #0006;--shadow-sm:0 1px 3px #00000073, 0 1px 2px #0000004d;--shadow-md:0 4px 12px #00000080, 0 1px 4px #00000059;--shadow-lg:0 12px 36px #0009, 0 4px 12px #0006;--shadow-focus:0 0 0 2px #3b82f666;background:var(--surface-app);color:#e2e8f0}.theme-dark .topbar,.theme-dark .rail,.theme-dark .inspector{background:var(--surface-panel);border-color:var(--border-subtle)}.theme-dark .brand,.theme-dark .canvas-head h1,.theme-dark .property-heading strong,.theme-dark .structure-row strong{color:#e8eff7}.theme-dark .brand-light,.theme-dark .doc-title,.theme-dark .canvas-head p,.theme-dark .inspector small,.theme-dark .validation-note{color:#8097b4}.theme-dark .brand-mark,.theme-dark .tip-icon{color:#7ba3f7;background:#1a2b48}.theme-dark .beta{color:#8097b4;background:#1e2d4a}.theme-dark .tool{color:#8097b4}.theme-dark .tool:hover,.theme-dark .icon-btn:hover,.theme-dark .small-action:hover{color:#e8eff7;background:#1a2b48}.theme-dark .tool.active{color:#a9c4fa;background:#162050;border-color:#2b5ad0;box-shadow:0 0 12px #2b63e826}.theme-dark .button-quiet{background:var(--surface-elevated);border-color:var(--border-default);color:#c5d4e4}.theme-dark .button-quiet:hover{background:#1e2d4a}.theme-dark .canvas-frame,.theme-dark .canvas-frame .chem-canvas{background:#fff}.theme-dark .canvas-frame{border-color:var(--border-default);box-shadow:var(--shadow-md)}.theme-dark .canvas-head-actions .icon-btn,.theme-dark .canvas-tools,.theme-dark .tool-pill{color:#8097b4}.theme-dark .tool-pill:hover,.theme-dark .tool-pill.selected{color:#2b63e8;background:#eef4fe}.theme-dark .canvas-footer{color:#5a7294;border-color:var(--border-subtle)}.theme-dark .bottom-tip{color:#8097b4}.theme-dark .bottom-tip b{color:#c5d4e4}.theme-dark .bottom-tip kbd{background:var(--surface-elevated);border-color:var(--border-default);color:#c5d4e4}.theme-dark .section-label,.theme-dark .eyebrow,.theme-dark .rail-cap{color:#5a7294}.theme-dark .property-card,.theme-dark .metric,.theme-dark .structure-row,.theme-dark .validation-card,.theme-dark .recent-menu,.theme-dark .export-modal{background:var(--surface-elevated);border-color:var(--border-default);color:#d1dce9}.theme-dark .property-card strong,.theme-dark .metric strong,.theme-dark .recent-menu button{color:#e8eff7}.theme-dark .metric span,.theme-dark .structure-row small{color:#8097b4}.theme-dark input,.theme-dark select,.theme-dark .text-field,.theme-dark .number-field{background:var(--surface-sunken);border-color:var(--border-default);color:#d1dce9}.theme-dark .export-modal-backdrop{background:#05080fd9}.theme-dark .export-modal h2{color:#e8eff7}.theme-dark .export-modal-footer{border-color:var(--border-default)}.theme-dark .newdoc-modal .button-quiet:last-of-type{color:#fca5a5}.quick-chip{border:1px solid var(--border-default,#d2dbe5);border-radius:var(--radius-sm,5px);background:var(--surface-panel,#fff);height:26px;color:var(--ink-500,#3d5478);white-space:nowrap;align-items:center;gap:4px;padding:0 8px;font-size:10px;font-weight:600;transition:all .12s;display:flex}.quick-chip:hover{background:var(--ink-50,#edf2f8);color:var(--ink-700,#1e2d4a);border-color:var(--border-strong,#b8c5d3);transform:translateY(-1px)}.quick-chip.active{background:var(--accent-50,#eef4fe);color:var(--accent-500,#2b63e8);border-color:var(--accent-200,#a9c4fa)}.quick-chip svg{width:13px;height:13px}.quick-sep{background:var(--border-subtle,#e4eaf1);flex:none;width:1px;height:16px;margin:0 4px}.status-bar{height:28px;color:var(--ink-400,#5a7294);border-top:1px solid var(--border-subtle,#e4eaf1);background:var(--surface-panel,#fff);flex:none;justify-content:space-between;align-items:center;padding:0 14px;font-size:10px;display:flex}.status-bar-left{align-items:center;gap:12px;display:flex}.status-coord{font-family:var(--font-mono,"JetBrains Mono", ui-monospace, Consolas, monospace);color:var(--ink-400,#5a7294);font-variant-numeric:tabular-nums;font-size:9.5px}.status-bar-right{align-items:center;gap:8px;display:flex}.status-pill{border-radius:var(--radius-xs,3px);background:var(--ink-50,#edf2f8);color:var(--ink-600,#2a3f5f);padding:2px 6px;font-size:9.5px;font-weight:600}.hotkey-indicator{border-radius:var(--radius-xs,3px);color:#059669;background:#d1fae5;padding:2px 6px;font-size:9.5px;font-weight:600}.periodic-table-modal{width:min(960px,96vw);max-height:92vh}.ptable-search-bar{background:#fff;border:1px solid #dce2e8;border-radius:7px;align-items:center;gap:9px;margin:14px 0 16px;padding:8px 12px;display:flex}.ptable-search-bar input{color:#263547;background:0 0;border:0;outline:none;width:100%;font-size:12px}.ptable-grid{grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:6px;max-height:56vh;padding:2px;display:grid;overflow-y:auto}.ptable-cell{text-align:center;cursor:pointer;border:1px solid #e0e5eb;border-radius:6px;flex-direction:column;align-items:center;padding:6px 4px;transition:transform .1s,box-shadow .1s;display:flex}.ptable-cell:hover{transform:translateY(-2px);box-shadow:0 4px 10px #18283818}.ptable-cell.active-element{border-width:2px;box-shadow:0 0 0 2px #5473d555}.cell-num{opacity:.7;align-self:flex-start;margin-left:2px;font-size:8px}.cell-sym{font-size:15px;font-weight:800;font-family:var(--font-display,"Manrope", Arial, sans-serif);letter-spacing:-.02em;margin:1px 0}.cell-name{white-space:nowrap;text-overflow:ellipsis;letter-spacing:-.01em;max-width:100%;font-size:8px;font-weight:600;overflow:hidden}.cell-mass{opacity:.8;font-size:7.5px;font-family:var(--font-mono,"JetBrains Mono", monospace);font-variant-numeric:tabular-nums}.ptable-legend{color:#7e8b98;gap:12px;margin-right:auto;font-size:10px;display:flex}.templates-modal{width:min(900px,96vw);max-height:92vh}.template-tabs{gap:6px;margin:14px 0 12px;padding-bottom:4px;display:flex;overflow-x:auto}.template-tabs button{color:#5a6878;white-space:nowrap;background:#fff;border:1px solid #e1e6eb;border-radius:6px;height:30px;padding:0 12px;font-size:11px;font-weight:600}.template-tabs button:hover{background:#f4f7fb}.template-tabs button.active{color:#fff;background:#5876d6;border-color:#5876d6}.template-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px;max-height:54vh;padding:2px;display:grid;overflow-y:auto}.template-card{cursor:pointer;background:#fff;border:1px solid #e5e9ed;border-radius:8px;flex-direction:column;gap:8px;padding:12px;transition:border-color .15s,box-shadow .15s;display:flex}.template-card:hover{border-color:#5876d6;box-shadow:0 3px 12px #26384a12}.template-card-top{justify-content:space-between;align-items:flex-start;display:flex}.template-card-top strong{color:#2a3848;font-size:12px}.template-formula{font-family:var(--font-mono,"JetBrains Mono", ui-monospace, Consolas, monospace);color:var(--accent-500,#2b63e8);letter-spacing:.01em;font-size:11px;font-weight:700}.template-smiles{font-family:var(--font-mono,"JetBrains Mono", ui-monospace, Consolas, monospace);color:var(--ink-400,#5a7294);background:var(--ink-50,#edf2f8);border-radius:var(--radius-xs,3px);word-break:break-all;padding:5px 8px;font-size:9.5px}.template-footer{justify-content:space-between;align-items:center;margin-top:auto;display:flex}.category-badge{text-transform:uppercase;letter-spacing:.08em;color:#8592a0;font-size:8.5px;font-weight:700}.insert-btn{color:#4f6cc7;background:#f4f7ff;border:1px solid #dce4f6;border-radius:5px;align-items:center;gap:4px;padding:3px 8px;font-size:10px;font-weight:600;display:flex}.insert-btn:hover{background:#e8efff}.properties-modal{width:min(740px,94vw);max-height:92vh}.props-hero{background:#fff;border:1px solid #e5e9ed;border-radius:9px;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0 20px;padding:16px;display:grid}.props-formula-box{flex-direction:column;justify-content:center;display:flex}.props-label{letter-spacing:.1em;color:#94a1ae;font-size:8.5px;font-weight:700}.props-big-formula{font-size:26px;font-family:var(--font-display,"Manrope", sans-serif);color:var(--ink-800,#162038);letter-spacing:-.03em;margin:4px 0 2px;font-weight:700}.props-formula-box small{color:var(--ink-400,#5a7294);font-size:10.5px}.props-hero-metrics{border-left:1px solid #edf1f4;flex-direction:column;gap:8px;padding-left:16px;display:flex}.props-hero-metrics>div{justify-content:space-between;align-items:center;display:flex}.props-hero-metrics span{letter-spacing:.08em;color:#8f9da9;font-size:8.5px;font-weight:700}.props-hero-metrics strong{color:#334355;font-size:13px}.props-section-heading{letter-spacing:.1em;color:#909da9;margin:18px 0 10px;font-size:9px;font-weight:700}.pharmacophore-grid{grid-template-columns:repeat(3,1fr);gap:9px;display:grid}.pharm-card{background:#fff;border:1px solid #e5e9ed;border-radius:7px;flex-direction:column;gap:5px;padding:10px 12px;display:flex}.pharm-card span{color:#8694a1;font-size:8.5px;font-weight:600}.pharm-card strong{color:#2d3c4e;font-size:14px}.lipinski-card.pass strong{color:#2e7d4d}.lipinski-card.warn strong{color:#c53929}.lipinski-status{align-items:center;gap:4px;font-size:12px;display:flex}.elemental-table{border-collapse:collapse;background:#fff;border:1px solid #e5e9ed;border-radius:7px;width:100%;font-size:11px;overflow:hidden}.elemental-table th{text-align:left;color:#6b7886;letter-spacing:.06em;background:#f6f8fa;padding:8px 12px;font-size:9.5px;font-weight:700}.elemental-table td{color:#3b4958;border-top:1px solid #edf1f4;padding:8px 12px}.percentage-bar-cell{align-items:center;gap:8px;display:flex}.bar-track{background:#eef2f6;border-radius:3px;flex:1;height:6px;overflow:hidden}.bar-fill{background:#5876d6;border-radius:3px;height:100%}.atom-knockout{fill:#fff}.theme-dark .atom-knockout{fill:#16202b}.theme-dark .status-bar{color:#8b99a7;background:#16202b;border-color:#2a3644}.theme-dark .status-coord{color:#768594}.theme-dark .status-pill{color:#b1c0d0;background:#23303e}.theme-dark .quick-chip:hover{color:#e8eff7;background:#273646}.theme-dark .quick-sep{background:#324151}.theme-dark .ptable-search-bar{background:#18222d;border-color:#334251}.theme-dark .ptable-search-bar input{color:#e2ecf6}.theme-dark .ptable-cell{border-color:#364656}.theme-dark .template-tabs button{color:#b2c0cd;background:#1f2a36;border-color:#334251}.theme-dark .template-tabs button:hover{background:#293747}.theme-dark .template-tabs button.active{color:#fff;background:#4f6cc7}.theme-dark .template-card{background:#1e2834;border-color:#33414f}.theme-dark .template-card-top strong{color:#e4edf5}.theme-dark .template-smiles{color:#9ab0c4;background:#17202b}.theme-dark .insert-btn{color:#a5bdff;background:#253448;border-color:#3b4e6b}.theme-dark .props-hero,.theme-dark .pharm-card,.theme-dark .elemental-table{background:#1e2834;border-color:#33414f}.theme-dark .props-big-formula,.theme-dark .props-hero-metrics strong,.theme-dark .pharm-card strong,.theme-dark .elemental-table td{color:#e4edf5}.theme-dark .props-hero-metrics{border-color:#2f3d4c}.theme-dark .elemental-table th{color:#8f9ea9;background:#18222c}.theme-dark .elemental-table td{border-color:#273442}.theme-dark .bar-track{background:#263442}.valence-warning-halo{cursor:help;animation:2s ease-in-out infinite pulse-warning}@keyframes pulse-warning{0%,to{stroke-opacity:.9;stroke-width:1.5px}50%{stroke-opacity:.3;stroke-width:2.2px}}.hasimdraw-menubar{height:28px;font-size:12px;font-family:var(--font-sans);-webkit-user-select:none;user-select:none;z-index:50;letter-spacing:-.005em;background:#f8fafc;border-bottom:1px solid #cbd5e1;align-items:center;padding:0 10px;display:flex;position:relative}.menu-item-wrap{position:relative}.menu-button{color:#334155;background:0 0;border:0;border-radius:3px;align-items:center;height:22px;padding:0 8px;font-size:11.5px;font-weight:500;transition:background .1s,color .1s;display:flex}.menu-button:hover,.menu-item-wrap.open .menu-button{color:#0f172a;background:#e2e8f0}.hasimdraw-dropdown{z-index:100;background:#fff;border:1px solid #cbd5e1;border-radius:4px;min-width:240px;padding:4px;position:absolute;top:25px;left:0;box-shadow:0 8px 24px #0f172a1f,0 2px 6px #0000000f}.hasimdraw-dropdown button{color:#1e293b;text-align:left;background:0 0;border:0;border-radius:3px;justify-content:space-between;align-items:center;width:100%;height:26px;padding:0 10px;font-size:11.5px;transition:all 80ms;display:flex}.hasimdraw-dropdown button:hover:not(:disabled){color:#fff;background:#2563eb}.hasimdraw-dropdown button:hover:not(:disabled) kbd{color:#dbeafe}.hasimdraw-dropdown button:disabled{opacity:.38;cursor:default}.hasimdraw-dropdown kbd{font-family:var(--font-mono);color:#64748b;letter-spacing:-.2px;font-size:10px}.menu-divider{background:#e2e8f0;height:1px;margin:4px 0}.hasimdraw-submenu-wrap{width:100%;position:relative}.has-submenu-btn{justify-content:space-between;align-items:center;width:100%;display:flex}.submenu-arrow{color:#64748b;margin-left:auto;font-size:12px;font-weight:700}.hasimdraw-submenu{z-index:105;background:#fff;border:1px solid #cbd5e1;border-radius:4px;min-width:210px;margin-left:2px;padding:4px;position:absolute;top:0;left:100%;box-shadow:0 8px 24px #0f172a24,0 2px 6px #0000000f}.hasimdraw-submenu button{color:#1e293b;text-align:left;background:0 0;border:0;border-radius:3px;justify-content:space-between;align-items:center;width:100%;height:26px;padding:0 10px;font-size:11.5px;transition:all 80ms;display:flex}.hasimdraw-submenu button:hover:not(:disabled){color:#fff;background:#2563eb}.theme-dark .hasimdraw-submenu{background:#1c2633;border-color:#374656}.theme-dark .hasimdraw-submenu button{color:#e2e8f0}.theme-dark .hasimdraw-submenu button:hover:not(:disabled){color:#fff;background:#2563eb}.chiral-label{-webkit-user-select:none;user-select:none;pointer-events:none}.theme-dark .hasimdraw-menubar{background:#151e28;border-color:#2a3746}.theme-dark .menu-button{color:#cbd5e1}.theme-dark .menu-button:hover,.theme-dark .menu-item-wrap.open .menu-button{color:#f8fafc;background:#233140}.theme-dark .hasimdraw-dropdown{background:#1c2633;border-color:#374656;box-shadow:0 12px 30px #0006}.theme-dark .hasimdraw-dropdown button{color:#e2e8f0}.theme-dark .hasimdraw-dropdown button:hover:not(:disabled){color:#fff;background:#2563eb}.theme-dark .hasimdraw-dropdown kbd{color:#94a3b8}.theme-dark .menu-divider{background:#2d3b4b}.workspace{grid-template-columns:66px minmax(620px,1fr) 294px}@media (width<=1200px){.workspace{grid-template-columns:66px minmax(560px,1fr) 264px}}.hasimdraw-palette{-webkit-user-select:none;user-select:none;background:#f8fafc;border-right:1px solid #cbd5e1;flex-direction:column;flex:none;width:54px;display:flex}.palette-header{background:#f1f5f9;border-bottom:1px solid #cbd5e1;justify-content:center;align-items:center;height:18px;display:flex}.palette-title{letter-spacing:.08em;color:#475569;font-size:8px;font-weight:700}.palette-grid{grid-template-columns:22px 22px;justify-content:center;gap:2px;max-height:calc(100vh - 120px);padding:3px;display:grid;overflow-y:auto}.pal-btn{color:#334155;cursor:pointer;width:22px;height:22px;box-shadow:none;background:#fff;border:1px solid #cbd5e1;border-radius:2px;justify-content:center;align-items:center;padding:0;transition:background .1s,border-color .1s;display:inline-flex}.pal-btn:hover{color:#0f172a;background:#f1f5f9;border-color:#94a3b8}.pal-btn.active{color:#fff;background:#0f172a;border-color:#020617;box-shadow:inset 0 1px 2px #0000004d}.pal-btn svg{width:14px;height:14px;display:block}.palette-footer{background:#f1f5f9;border-top:1px solid #cbd5e1;margin-top:auto;padding:3px}.pal-btn.wide{color:#334155;border-color:#cbd5e1;gap:3px;width:100%;height:22px;font-size:8.5px;font-weight:700}.pal-btn.wide:hover{background:#e2e8f0;border-color:#94a3b8}.hasimdraw-action-toolbar{-webkit-user-select:none;user-select:none;background:#f8fafc;border-bottom:1px solid #cbd5e1;align-items:center;gap:2px;height:30px;padding:0 6px;display:flex;overflow-x:auto}.tb-btn{color:#334155;cursor:pointer;white-space:nowrap;background:0 0;border:1px solid #0000;border-radius:2px;justify-content:center;align-items:center;gap:3px;min-width:22px;height:22px;padding:0 4px;font-size:11px;font-weight:500;transition:all 80ms;display:inline-flex}.tb-btn:hover:not(:disabled){color:#0f172a;background:#e2e8f0;border-color:#cbd5e1}.tb-btn:disabled{opacity:.35;cursor:default}.tb-btn.active{color:#fff;background:#0f172a;border-color:#020617}.tb-btn.accent{color:#1d4ed8}.tb-btn.accent:hover{background:#eff6ff;border-color:#bfdbfe}.tb-btn.warning{color:#dc2626}.tb-btn svg{width:14px;height:14px}.tb-btn-label{display:none}@media (width>=1680px){.tb-btn-label{font-size:10.5px;display:inline}}.tb-symbol-btn{letter-spacing:-.3px;font-size:10.5px;font-weight:700}.tb-counter-badge{color:#fff;background:#dc2626;border-radius:6px;padding:0 3px;font-size:9px;font-weight:800;line-height:1.2}.tb-sep{background:#cbd5e1;flex:none;width:1px;height:16px;margin:0 3px}.theme-dark .hasimdraw-palette{background:#17212c;border-color:#2b3847}.theme-dark .palette-header{background:#131b24;border-color:#263341}.theme-dark .palette-title{color:#8b9baa}.theme-dark .pal-btn{color:#d1dde8;background:#202b38;border-color:#334354;box-shadow:0 1px 1px #0003}.theme-dark .pal-btn:hover{color:#fff;background:#2b394a;border-color:#4b6179}.theme-dark .pal-btn.active{color:#9ec1ff;background:#243c5e;border-color:#4a75b5;box-shadow:inset 0 1px 2px #0006}.theme-dark .palette-footer{background:#131b24;border-color:#263341}.theme-dark .pal-btn.wide{color:#cbd7e3;background:#202b38;border-color:#334354}.theme-dark .pal-btn.wide:hover{background:#283748;border-color:#455a72}.theme-dark .hasimdraw-action-toolbar{background:#18222e;border-color:#2b3948}.theme-dark .tb-btn{color:#c5d2e0}.theme-dark .tb-btn:hover:not(:disabled){color:#fff;background:#233142;border-color:#3d4f64}.theme-dark .tb-btn.active{color:#8bb6ff;background:#203554;border-color:#35588a}.theme-dark .tb-btn.accent{color:#9cbfff;background:#1e304d;border-color:#2f4e7d}.theme-dark .tb-sep{background:#2d3b4b}.hasimdraw-window-titlebar{height:24px;font-size:11px;font-family:var(--font-sans);color:#1e293b;-webkit-user-select:none;user-select:none;letter-spacing:-.01em;background:#f8fafc;border-bottom:1px solid #cbd5e1;align-items:center;padding:0 8px;display:flex}.titlebar-left{align-items:center;gap:6px;display:flex}.titlebar-icon{color:#475569}.titlebar-text{letter-spacing:-.2px;color:#1e293b;font-size:11px;font-weight:600}.titlebar-dirty{color:#dc2626;margin-left:2px;font-weight:800}.titlebar-badge{color:#64748b;letter-spacing:.3px;text-transform:uppercase;background:#f1f5f9;border:1px solid #cbd5e1;border-radius:2px;padding:.5px 4px;font-size:8px;font-weight:600}.titlebar-right{align-items:center;gap:4px;margin-left:auto;display:flex}.titlebar-right .button-quiet{border-radius:2px;height:20px;padding:0 6px;font-size:10.5px}.hasimdraw-toolbars-container{-webkit-user-select:none;user-select:none;background:#f8fafc;border-bottom:1px solid #cbd5e1;flex-direction:column;display:flex}.hasimdraw-ribbon{background:#f8fafc;border-bottom:1px solid #e2e8f0;align-items:center;gap:1px;height:26px;padding:0 6px;display:flex}.hasimdraw-ribbon:last-child{border-bottom:none}.ribbon-group{align-items:center;gap:1px;display:flex}.ribbon-group.ms-auto{margin-left:auto}.tb-select{color:#1e293b;background:#fff;border:1px solid #cbd5e1;border-radius:2px;outline:none;height:21px;padding:0 4px;font-size:10.5px;transition:border-color .1s}.tb-select:hover{border-color:#94a3b8}.tb-label{color:#64748b;letter-spacing:.01em;margin-right:2px;font-size:9.5px;font-weight:600}.tb-chip{color:#334155;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:2px;align-items:center;height:18px;padding:0 5px;font-size:9.5px;font-weight:600;transition:all 80ms;display:inline-flex}.tb-chip:hover{color:#0f172a;background:#f1f5f9;border-color:#94a3b8}.tb-chip.primary{color:#fff;background:#0f172a;border-color:#020617}.tb-chip.primary:hover{background:#1e293b}.relative-wrap{position:relative}.color-picker-btn{align-items:center;gap:3px;padding:0 4px;display:flex}.color-swatch-indicator{border:1px solid #94a3b8;border-radius:2px;width:13px;height:13px}.color-dropdown-palette{z-index:100;background:#fff;border:1px solid #cbd5e1;border-radius:4px;min-width:140px;padding:6px;position:absolute;top:26px;left:0;box-shadow:0 8px 16px #00000026}.color-palette-title{color:#64748b;text-transform:uppercase;margin-bottom:6px;font-size:9px;font-weight:700}.color-palette-grid{grid-template-columns:repeat(4,1fr);gap:4px;display:grid}.swatch-cell{cursor:pointer;border:1px solid #cbd5e1;border-radius:3px;width:24px;height:24px}.swatch-cell:hover{transform:scale(1.1);box-shadow:0 1px 4px #0003}.hasimdraw-ruler-corner{color:#475569;-webkit-user-select:none;user-select:none;cursor:pointer;background:#f1f5f9;border-bottom:1px solid #cbd5e1;border-right:1px solid #cbd5e1;grid-area:1/1;justify-content:center;align-items:center;width:22px;height:22px;font-size:9px;font-weight:800;transition:all .12s;display:flex}.hasimdraw-ruler-corner:hover{color:#0284c7;background:#e2e8f0}.hasimdraw-ruler-h{-webkit-user-select:none;user-select:none;background:#f8fafc;border-bottom:1px solid #cbd5e1;grid-area:1/2;height:22px;position:relative;overflow:hidden}.hasimdraw-ruler-v{-webkit-user-select:none;user-select:none;background:#f8fafc;border-right:1px solid #cbd5e1;grid-area:2/1;width:22px;position:relative;overflow:hidden}.ruler-svg{display:block}.hasimdraw-desktop-viewport{background:#cbd5e1;flex:1;grid-template-rows:22px 1fr;grid-template-columns:22px 1fr;min-height:0;display:grid;position:relative;overflow:hidden;padding:0!important}.hasimdraw-paper-stage{box-sizing:border-box;background:#e6ebf2;grid-area:2/2;width:100%;height:100%;padding:0;display:block;position:relative;overflow:hidden}.hasimdraw-paper-sheet{width:100%;height:100%;box-shadow:none;background:0 0;border:none;position:absolute;inset:0;overflow:hidden}.hasimdraw-paper-sheet .chem-canvas{touch-action:none;-webkit-user-select:none;user-select:none;outline:none;width:100%;height:100%;display:block;position:absolute;inset:0}.hasimdraw-canvas-overlay-container{pointer-events:none;z-index:950;position:absolute;inset:0;overflow:hidden}.hasimdraw-floating-popover{z-index:1000;pointer-events:auto;color:#1e293b;-webkit-user-select:none;user-select:none;background:#fff;border:1px solid #cbd5e1;border-radius:4px;flex-direction:column;gap:5px;width:290px;max-width:90vw;max-height:320px;padding:6px 8px 8px;font-size:11px;transition:box-shadow .12s,opacity .12s;animation:.12s ease-out hasimFadeIn;display:flex;position:absolute;overflow-y:auto;box-shadow:0 4px 16px #0f172a1f,0 1px 3px #00000014}.theme-dark .hasimdraw-floating-popover{color:#f1f5f9;background:#0f172a;border-color:#334155;box-shadow:0 8px 24px #00000080}.hasimdraw-floating-popover.is-dragging{opacity:.95;box-shadow:0 12px 28px #00000038}.hasimdraw-popover-titlebar{cursor:grab;-webkit-user-select:none;user-select:none;z-index:20;background:#f1f5f9;border-bottom:1px solid #e2e8f0;border-top-left-radius:3px;border-top-right-radius:3px;justify-content:space-between;align-items:center;margin:-6px -8px 2px;padding:3px 6px;transition:background .12s;display:flex;position:sticky;top:-6px}.theme-dark .hasimdraw-popover-titlebar{background:#0b0f19;border-bottom-color:#1e293b}.hasimdraw-popover-titlebar:hover{background:#e2e8f0}.theme-dark .hasimdraw-popover-titlebar:hover{background:#1e293b}.hasimdraw-popover-titlebar.is-dragging{cursor:grabbing;background:#cbd5e1}.theme-dark .hasimdraw-popover-titlebar.is-dragging{background:#334155}.hasimdraw-popover-titlebar:focus-visible{outline-offset:-2px;outline:2px solid #2563eb}.hasimdraw-popover-title-row{color:#334155;align-items:center;gap:5px;font-size:10.5px;font-weight:600;display:flex}.theme-dark .hasimdraw-popover-title-row{color:#e2e8f0}.hasimdraw-popover-drag-icon{color:#94a3b8;align-items:center;font-size:11px;line-height:1;display:inline-flex}.hasimdraw-popover-close-btn{color:#94a3b8;cursor:pointer;background:0 0;border:none;border-radius:2px;padding:1px 4px;font-size:11px;line-height:1;transition:all .1s}.hasimdraw-popover-close-btn:hover{color:#dc2626;background:#fee2e2}.theme-dark .hasimdraw-popover-close-btn:hover{color:#fca5a5;background:#7f1d1d}.hasimdraw-popover-header{border-bottom:1px solid #f1f5f9;justify-content:space-between;align-items:center;gap:3px;padding-bottom:4px;display:flex}.theme-dark .hasimdraw-popover-header{border-bottom-color:#334155}.hasimdraw-popover-btn-group{flex-wrap:wrap;align-items:center;gap:1px;display:flex}.hasimdraw-popover-btn{color:#475569;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:2px;justify-content:center;align-items:center;width:20px;height:20px;font-size:12px;font-weight:600;transition:all 80ms;display:flex}.hasimdraw-popover-btn:hover{color:#0f172a;background:#f1f5f9}.theme-dark .hasimdraw-popover-btn{color:#94a3b8}.theme-dark .hasimdraw-popover-btn:hover{color:#f8fafc;background:#334155}.hasimdraw-popover-btn.active{color:#fff;background:#0f172a}.hasimdraw-popover-section{background:#f8fafc;border:1px solid #f1f5f9;border-radius:3px;flex-direction:column;gap:3px;padding:4px 6px;display:flex}.theme-dark .hasimdraw-popover-section{background:#0f172a99;border-color:#334155}.hasimdraw-chip{color:#334155;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:2px;align-items:center;height:18px;padding:1px 5px;font-size:9.5px;font-weight:500;transition:all 80ms;display:inline-flex}.hasimdraw-chip:hover{color:#1d4ed8;background:#eff6ff;border-color:#93c5fd}.theme-dark .hasimdraw-chip{color:#cbd5e1;background:#1e293b;border-color:#475569}.theme-dark .hasimdraw-chip:hover{color:#93c5fd;background:#1e3a8a;border-color:#3b82f6}.hasimdraw-popover-input{color:#1e293b;background:#fff;border:1px solid #cbd5e1;border-radius:2px;outline:none;width:100%;height:22px;padding:2px 6px;font-size:11px;transition:border-color .1s}.hasimdraw-popover-input:focus{border-color:#2563eb}.theme-dark .hasimdraw-popover-input{color:#f1f5f9;background:#0f172a;border-color:#334155}.theme-dark .hasimdraw-popover-input:focus{border-color:#60a5fa}.hasimdraw-preview-box{color:#334155;background:#f1f5f9;border:1px solid #cbd5e1;border-radius:2px;align-items:center;gap:5px;padding:3px 6px;font-size:10px;display:flex}.theme-dark .hasimdraw-preview-box{color:#bfdbfe;background:#1e3a8a59;border-color:#3b82f666}.hasimdraw-canvas-hud{-webkit-backdrop-filter:blur(10px);z-index:100;-webkit-user-select:none;user-select:none;background:#fffffff2;border:1px solid #cbd5e1;border-radius:8px;align-items:center;gap:3px;padding:3px 6px;display:flex;position:absolute;bottom:18px;right:18px;box-shadow:0 8px 24px #0f172a1f,0 2px 6px #0f172a0f}.hud-coord-btn{cursor:pointer;background:#f8fafc;border:1px solid #e2e8f0;border-radius:5px;gap:5px;padding:0 8px}.hud-coord-btn:hover{background:#f0f9ff;border-color:#bae6fd}.theme-dark .hud-coord-btn{background:#1e293b;border-color:#334155}.theme-dark .hud-coord-btn:hover{background:#0c4a6e;border-color:#0284c7}.theme-dark .hasimdraw-ruler-corner{color:#94a3b8;background:#1e293b;border-color:#334155}.theme-dark .hasimdraw-ruler-corner:hover{color:#38bdf8;background:#334155}.theme-dark .hasimdraw-ruler-h,.theme-dark .hasimdraw-ruler-v{background:#0f172a;border-color:#334155}.theme-dark .hasimdraw-desktop-viewport{background:#0f172a}.theme-dark .hasimdraw-canvas-hud{background:#1e293bf0;border-color:#475569;box-shadow:0 4px 18px #00000073}.hud-btn{color:#334155;cursor:pointer;background:0 0;border:none;border-radius:5px;justify-content:center;align-items:center;gap:4px;min-width:28px;height:28px;padding:0 6px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:11px;font-weight:500;transition:background .12s,color .12s,transform 80ms;display:inline-flex}.hud-btn:hover{color:#0f172a;background:#f1f5f9}.hud-btn:active{transform:scale(.96)}.hud-btn.active{color:#fff;background:#2563eb}.theme-dark .hud-btn{color:#cbd5e1}.theme-dark .hud-btn:hover{color:#fff;background:#334155}.theme-dark .hud-btn.active{color:#fff;background:#3b82f6}.hud-zoom-label{font-variant-numeric:tabular-nums;min-width:44px;font-size:11.5px;font-weight:600}.hud-label-text{font-size:11px;font-weight:600}.hud-sep{background:#e2e8f0;width:1px;height:16px;margin:0 2px}.theme-dark .hud-sep{background:#475569}.flyout-anchor,.pal-btn.has-sub{position:relative}.flyout-indicator{color:#64748b;pointer-events:none;font-size:7px;line-height:1;position:absolute;bottom:0;right:1px}.flyout-subpalette{z-index:100;background:#fff;border:1px solid #cbd5e1;border-radius:4px;flex-direction:column;gap:2px;min-width:140px;padding:4px;display:flex;position:absolute;top:0;left:28px;box-shadow:0 8px 18px #0000002e}.flyout-subpalette button{color:#1e293b;cursor:pointer;text-align:left;background:0 0;border:0;border-radius:3px;align-items:center;gap:7px;height:24px;padding:0 6px;font-size:11px;display:flex}.flyout-subpalette button:hover{color:#fff;background:#3b82f6}.attached-subpalette-overlay{z-index:99999;-webkit-user-select:none;user-select:none;background:#fff;border:1px solid #cbd5e1;border-radius:6px;flex-direction:column;font-family:system-ui,-apple-system,sans-serif;animation:.12s cubic-bezier(.16,1,.3,1) attachedSubpaletteAppear;display:flex;position:fixed;overflow:visible;box-shadow:0 12px 30px -4px #00000038,0 4px 12px -2px #0000001f}@keyframes attachedSubpaletteAppear{0%{opacity:0;transform:translate(-4px)scale(.97)}to{opacity:1;transform:translate(0)scale(1)}}.attached-subpalette-caret{pointer-events:none;border-top:6px solid #0000;border-bottom:6px solid #0000;border-right:7px solid #cbd5e1;width:0;height:0;position:absolute;left:-7px}.attached-subpalette-caret:after{content:"";border-top:5px solid #0000;border-bottom:5px solid #0000;border-right:6px solid #fff;width:0;height:0;position:absolute;top:-5px;left:1px}.attached-subpalette-header{background:#f1f5f9;border-bottom:1px solid #e2e8f0;border-top-left-radius:5px;border-top-right-radius:5px;justify-content:space-between;align-items:center;height:24px;padding:0 8px;display:flex}.attached-subpalette-title{text-transform:uppercase;letter-spacing:.05em;color:#475569;font-size:10px;font-weight:700}.attached-subpalette-close{color:#64748b;cursor:pointer;background:0 0;border:0;border-radius:3px;padding:0 2px;font-size:14px;line-height:1}.attached-subpalette-close:hover{color:#0f172a;background:#e2e8f0}.attached-subpalette-body{flex-direction:column;gap:3px;padding:5px;display:flex}.attached-item-btn{color:#1e293b;cursor:pointer;text-align:left;white-space:nowrap;background:0 0;border:1px solid #0000;border-radius:4px;justify-content:space-between;align-items:center;gap:8px;height:26px;padding:0 8px;font-size:11.5px;transition:all 80ms;display:flex}.attached-item-btn:hover{color:#fff;background:#2563eb}.attached-item-btn:hover svg,.attached-item-btn:hover span{color:#fff!important}.attached-item-btn.active{color:#1d4ed8;background:#eff6ff;border-color:#93c5fd;font-weight:600}.attached-item-btn.active:hover{color:#fff;background:#2563eb}.attached-item-shortcut{opacity:.65;background:#0000000d;border-radius:3px;padding:1px 4px;font-family:monospace;font-size:9.5px}.attached-item-btn:hover .attached-item-shortcut{color:#fff;background:#fff3}.attached-grid-symbols{grid-template-columns:repeat(5,34px);gap:4px;padding:4px;display:grid}.attached-symbol-btn{cursor:pointer;color:#1e293b;background:#fff;border:1px solid #e2e8f0;border-radius:4px;flex-direction:column;justify-content:center;align-items:center;width:34px;height:32px;font-size:14px;font-weight:700;transition:all 80ms;display:flex;position:relative}.attached-symbol-btn:hover{color:#fff;background:#2563eb;border-color:#2563eb}.attached-symbol-btn.active{color:#2563eb;background:#eff6ff;border-color:#2563eb}.attached-symbol-btn.active:hover{color:#fff;background:#2563eb}.theme-dark .attached-subpalette-overlay{background:#1e293b;border-color:#334155;box-shadow:0 12px 32px #0009}.theme-dark .attached-subpalette-caret{border-right-color:#334155}.theme-dark .attached-subpalette-caret:after{border-right-color:#1e293b}.theme-dark .attached-subpalette-header{background:#0f172a;border-bottom-color:#334155}.theme-dark .attached-subpalette-title,.theme-dark .attached-subpalette-close{color:#94a3b8}.theme-dark .attached-subpalette-close:hover{color:#f8fafc;background:#334155}.theme-dark .attached-item-btn{color:#f1f5f9}.theme-dark .attached-item-btn.active{color:#93c5fd;background:#1e3a8a;border-color:#3b82f6}.theme-dark .attached-item-shortcut{background:#ffffff14}.theme-dark .attached-symbol-btn{color:#f1f5f9;background:#0f172a;border-color:#334155}.theme-dark .attached-symbol-btn:hover{color:#fff;background:#3b82f6;border-color:#3b82f6}.theme-dark .attached-symbol-btn.active{color:#93c5fd;background:#1e3a8a;border-color:#3b82f6}.hasimdraw-dock-panel{background:var(--surface-app,#f8fafc);border-left:1px solid var(--border-default,#cbd5e1);-webkit-user-select:none;user-select:none;width:240px;font-size:11px;font-family:var(--font-sans);flex-direction:column;display:flex;overflow-y:auto}.dock-panel-header{border-bottom:1px solid var(--border-default,#cbd5e1);height:26px;color:var(--ink-800,#1e293b);letter-spacing:-.01em;background:#f1f5f9;justify-content:space-between;align-items:center;padding:0 8px;font-weight:700;display:flex}.dock-panel-title{align-items:center;gap:5px;font-size:11px;display:flex}.window-icon{color:var(--accent-600,#1d4ed8);font-size:12px}.dock-panel-actions{align-items:center;gap:3px;display:flex}.dock-action-btn{width:20px;height:20px;color:var(--ink-500,#64748b);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:2px;justify-content:center;align-items:center;transition:all 80ms;display:flex}.dock-action-btn:hover{color:#0f172a;background:#e2e8f0}.dock-panel-body{flex-direction:column;gap:6px;padding:6px 8px;display:flex}.analysis-box{background:#fff;border:1px solid #cbd5e1;border-radius:3px;padding:6px 8px;box-shadow:0 1px 2px #0f172a08}.paste-to-doc-btn{color:#334155;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:2px;align-items:center;gap:3px;height:18px;padding:0 5px;font-size:9.5px;font-weight:500;transition:all 80ms;display:flex}.paste-to-doc-btn:hover{color:#0f172a;background:#f1f5f9;border-color:#94a3b8}.analysis-properties-grid{flex-direction:column;gap:3px;display:flex}.prop-row{justify-content:space-between;align-items:center;font-size:10.5px;display:flex}.prop-key{color:#64748b;font-size:10px;font-weight:500}.prop-val{color:#0f172a;font-weight:600;font-family:var(--font-mono);font-variant-numeric:tabular-nums;font-size:10.5px}.formula-val{color:#0f172a;font-size:11px;font-family:var(--font-sans);letter-spacing:.01em;font-weight:700}.elemental-row{border-top:1px dashed var(--border-subtle,#e2e8f0);flex-direction:column;align-items:flex-start;margin-top:4px;padding-top:4px}.elemental-val{color:var(--ink-600,#475569);word-break:break-all;font-size:9px;font-family:var(--font-mono)}.validation-status-card{border-radius:var(--radius-md,8px);border:1px solid var(--border-default,#d2dbe5);cursor:pointer;align-items:center;gap:9px;padding:8px 10px;transition:all .15s;display:flex}.validation-status-card:hover{box-shadow:var(--shadow-sm,0 1px 3px #0a0f1a12);transform:translateY(-1px)}.validation-status-card.ok{background:var(--success-100,#d1fae5);color:#065f46;border-color:#a7f3d0}.validation-status-card.has-errors{background:var(--danger-100,#fee2e2);color:#991b1b;border-color:#fecaca}.status-ico.ok{color:var(--success-600,#059669)}.status-ico.warn{color:var(--danger-600,#dc2626)}.validation-status-card strong{font-size:11px;font-weight:700;display:block}.validation-status-card small{opacity:.9;font-size:9.5px}.autofix-btn{background:var(--accent-50,#eef4fe);border:1px solid var(--accent-200,#a9c4fa);border-radius:var(--radius-md,8px);width:100%;color:var(--accent-600,#1a4fd6);cursor:pointer;justify-content:center;align-items:center;gap:6px;padding:7px 12px;font-size:11px;font-weight:700;transition:all .15s;display:flex}.autofix-btn:hover{background:var(--accent-100,#d7e5fd);border-color:var(--accent-400,#4d80f4);transform:translateY(-1px)}.inspector-section{background:var(--surface-panel,#fff);border:1px solid var(--border-default,#d2dbe5);border-radius:var(--radius-md,8px);box-shadow:var(--shadow-sm,0 1px 3px #0a0f1a12);flex-direction:column;gap:8px;padding:10px;display:flex}.section-title{letter-spacing:.05em;color:var(--ink-400,#5a7294);text-transform:uppercase;align-items:center;gap:6px;font-size:9.5px;font-weight:700;display:flex}.inspector-field{flex-direction:column;gap:3px;display:flex}.inspector-field label{color:var(--ink-500,#3d5478);font-size:9.5px;font-weight:600}.inspector-select,.inspector-input{border:1px solid var(--border-default,#d2dbe5);border-radius:var(--radius-xs,4px);height:26px;color:var(--ink-800,#162038);background:var(--surface-panel,#fff);outline:none;padding:0 8px;font-family:inherit;font-size:11px;transition:border-color .12s,box-shadow .12s}.inspector-select:focus,.inspector-input:focus{border-color:var(--accent-500,#2b63e8);box-shadow:var(--shadow-focus)}.charge-counter{border:1px solid var(--border-default,#d2dbe5);border-radius:var(--radius-xs,4px);background:var(--surface-panel,#fff);align-items:center;height:26px;display:flex;overflow:hidden}.charge-counter button{background:var(--ink-50,#edf2f8);width:30px;height:100%;color:var(--ink-700,#1e2d4a);cursor:pointer;border:0;font-size:13px;font-weight:700;transition:background .12s}.charge-counter button:hover{background:var(--ink-100,#d1dce9);color:var(--ink-950,#0a0f1a)}.charge-counter span{text-align:center;font-size:11px;font-weight:600;font-family:var(--font-mono,"JetBrains Mono", monospace);flex:1}.inspector-delete-btn{border:1px solid var(--danger-100,#fee2e2);height:26px;color:var(--danger-600,#dc2626);border-radius:var(--radius-xs,4px);cursor:pointer;background:#fff5f5;margin-top:4px;font-size:10.5px;font-weight:600;transition:all .12s}.inspector-delete-btn:hover{background:var(--danger-100,#fee2e2);border-color:var(--danger-500,#ef4444)}.app-shell{flex-direction:column;height:100vh;display:flex;overflow:hidden}.hasimdraw-workstation-main.workspace{flex:1;width:100%;height:100%;min-height:0;display:block;position:relative;overflow:hidden}.theme-dark .hasimdraw-window-titlebar{color:#cbd5e1;background:#111822;border-color:#232e3c}.theme-dark .titlebar-badge{color:#60a5fa;background:#1e293b}.theme-dark .hasimdraw-toolbars-container{background:#18222e;border-color:#2b3948}.theme-dark .hasimdraw-ribbon{background:#18222e;border-color:#263341}.theme-dark .tb-select,.theme-dark .tb-chip,.theme-dark .inspector-select,.theme-dark .inspector-input,.theme-dark .charge-counter{color:#f1f5f9;background:#1e293b;border-color:#334155}.theme-dark .tb-chip:hover{background:#273549}.theme-dark .hasimdraw-ruler-corner,.theme-dark .hasimdraw-ruler-h,.theme-dark .hasimdraw-ruler-v{background:#1a222c;border-color:#2b3948}.theme-dark .hasimdraw-desktop-viewport,.theme-dark .hasimdraw-paper-stage{background:#141b24}.theme-dark .hasimdraw-dock-panel{background:#18222e;border-color:#263341}.theme-dark .dock-panel-header{color:#e2e8f0;background:#141b23;border-color:#263341}.theme-dark .analysis-box,.theme-dark .inspector-section{background:#1f2b3a;border-color:#334155}.theme-dark .formula-val{color:#93c5fd}.theme-dark .flyout-subpalette,.theme-dark .color-dropdown-palette{color:#f1f5f9;background:#1e293b;border-color:#334155}.theme-dark .flyout-subpalette button{color:#f1f5f9}.theme-dark .flyout-subpalette button:hover{background:#2563eb}.hasimdraw-window-statusbar{height:24px;font-family:var(--font-sans);color:#475569;-webkit-user-select:none;user-select:none;z-index:40;letter-spacing:-.005em;background:#f8fafc;border-top:1px solid #cbd5e1;flex:none;justify-content:space-between;align-items:center;padding:0 10px;font-size:11px;display:flex}.status-segment{border-right:1px solid #e2e8f0;align-items:center;gap:6px;height:18px;padding:0 10px;display:inline-flex}.status-segment:last-child{border-right:none}.status-segment.status-ready{color:#1e293b;font-weight:600}.status-segment.status-coord{font-family:var(--font-mono);color:#64748b;font-variant-numeric:tabular-nums;font-size:10.5px}.status-segment.hotkey-indicator{color:#15803d;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:2px;font-size:10px;font-weight:600}.status-segment.status-pill{color:#334155;background:#f1f5f9;border:1px solid #cbd5e1;border-radius:2px;font-size:10px;font-weight:600}.status-segment.status-structure{color:#1e293b;font-size:11px}.status-segment.status-structure b{color:#0f172a;font-family:var(--font-mono);font-variant-numeric:tabular-nums}.status-segment.status-engine{color:#64748b;font-size:10px;font-weight:600}.theme-dark .hasimdraw-window-statusbar{color:#94a3b8;background:#0f172a;border-color:#1e293b}.theme-dark .status-segment{border-color:#1e293b}.theme-dark .status-segment.status-ready{color:#e2e8f0}.theme-dark .status-segment.status-coord{color:#94a3b8}.theme-dark .status-segment.status-pill{color:#cbd5e1;background:#1e293b}.theme-dark .status-segment.status-structure{color:#e2e8f0}.theme-dark .status-segment.status-structure b{color:#93c5fd}.theme-dark .hasimdraw-paper-sheet{background:#fff;border-color:#475569;box-shadow:2px 2px 16px #0009}.theme-dark .hasimdraw-paper-stage,.theme-dark .hasimdraw-desktop-viewport{background:#090d16}.hasimdraw-context-menu{overscroll-behavior:contain;-webkit-user-select:none;user-select:none;scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent;background:#fff;border:1px solid #94a3b8;border-radius:4px;min-width:230px;max-height:calc(100vh - 40px);padding:4px 0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;overflow-y:auto;box-shadow:0 8px 24px #0f172a38}.hasimdraw-context-menu::-webkit-scrollbar{width:5px}.hasimdraw-context-menu::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}.context-menu-header-label{letter-spacing:.08em;text-transform:uppercase;color:#64748b;pointer-events:none;padding:6px 12px 3px;font-size:9px;font-weight:700}.theme-dark .context-menu-header-label{color:#94a3b8}.context-menu-section{flex-direction:column;display:flex}.context-menu-item{color:#1e293b;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:8px;width:100%;padding:5px 12px;font-size:11px;display:flex}.context-menu-item:hover:not(:disabled){color:#fff;background:#2563eb}.context-menu-item:hover:not(:disabled) kbd,.context-menu-item:hover:not(:disabled) svg{color:#fff}.context-menu-item:disabled{color:#94a3b8;cursor:default}.context-menu-item svg{color:#475569;flex-shrink:0}.context-menu-item span{flex:1}.context-menu-item kbd{color:#64748b;margin-left:auto;font-family:inherit;font-size:10px}.context-badge{color:#1e40af;background:#dbeafe;border-radius:3px;padding:1px 4px;font-size:9px;font-weight:700}.context-menu-divider{background:#e2e8f0;height:1px;margin:3px 0}.theme-dark .hasimdraw-context-menu{scrollbar-color:#475569 transparent;background:#1e293b;border-color:#475569;box-shadow:0 8px 24px #00000080}.theme-dark .hasimdraw-context-menu::-webkit-scrollbar-thumb{background:#475569}.theme-dark .context-menu-item{color:#f1f5f9}.theme-dark .context-menu-item svg,.theme-dark .context-menu-item kbd{color:#94a3b8}.theme-dark .context-menu-divider{background:#334155}.theme-dark .context-badge{color:#93c5fd;background:#1e3a8a}.inspector-tab-body{overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent;flex:1;min-height:0;padding-right:2px;overflow:hidden auto}.theme-dark .inspector-tab-body{scrollbar-color:#475569 transparent}.inspector-tab-body::-webkit-scrollbar{width:5px}.inspector-tab-body::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}.theme-dark .inspector-tab-body::-webkit-scrollbar-thumb{background:#475569}.hasimdraw-substituents-strip{height:22px;font-family:var(--font-sans);-webkit-user-select:none;user-select:none;background:#f8fafc;border-bottom:1px solid #cbd5e1;align-items:center;gap:6px;padding:0 6px;font-size:10px;display:flex;overflow-x:auto}.hasimdraw-substituents-strip .strip-label{letter-spacing:.06em;color:#475569;white-space:nowrap;align-items:center;gap:4px;font-size:8.5px;font-weight:700;display:flex}.hasimdraw-substituents-strip .strip-icon{color:#2563eb}.hasimdraw-substituents-strip .target-pill{color:#334155;background:#f1f5f9;border:1px solid #cbd5e1;border-radius:2px;padding:0 4px;font-size:8.5px;font-weight:600}.hasimdraw-substituents-strip .strip-buttons{align-items:center;gap:2px;display:flex}.sub-chip{color:#1e293b;cursor:pointer;white-space:nowrap;background:#fff;border:1px solid #cbd5e1;border-radius:2px;align-items:center;height:18px;padding:0 4px;font-family:inherit;font-size:9.5px;font-weight:500;transition:all 80ms;display:inline-flex}.sub-chip:hover{color:#0f172a;background:#f1f5f9;border-color:#94a3b8}.sub-chip.ready{color:#1d4ed8;background:#eff6ff;border-color:#2563eb}.strip-actions{align-items:center;gap:4px;margin-left:auto;display:flex}.expand-abbrev-btn{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:3px;align-items:center;gap:4px;height:20px;padding:0 7px;font-size:10.5px;font-weight:600;transition:background .1s;display:flex}.expand-abbrev-btn:hover:not(:disabled){background:#1d4ed8}.expand-abbrev-btn:disabled{opacity:.38;cursor:not-allowed}.theme-dark .hasimdraw-substituents-strip{background:#0b0f19;border-bottom-color:#1e293b}.theme-dark .sub-chip{color:#e2e8f0;background:#0f172a;border-color:#334155}.theme-dark .sub-chip:hover{color:#fff;background:#1e293b;border-color:#64748b}.theme-dark .sub-chip.ready{color:#93c5fd;background:#172554;border-color:#3b82f6}.conformer-3d-modal{color:#f8fafc;background:#0f172a;border:1px solid #334155;border-radius:12px;flex-direction:column;width:960px;max-width:96vw;max-height:94vh;animation:.2s cubic-bezier(.16,1,.3,1) conformerFadeIn;display:flex;overflow:hidden;box-shadow:0 25px 60px #000000b3}@keyframes conformerFadeIn{0%{opacity:0;transform:scale(.97)translateY(8px)}to{opacity:1;transform:scale(1)translateY(0)}}.conformer-3d-header{background:#1e293b;border-bottom:1px solid #334155;justify-content:space-between;align-items:center;padding:14px 20px;display:flex}.conformer-3d-header .title-section .eyebrow{letter-spacing:.8px;color:#60a5fa;margin-bottom:2px;font-size:10px;font-weight:800;display:block}.conformer-3d-header h2{color:#f1f5f9;margin:0;font-size:16px;font-weight:700}.header-actions{align-items:center;gap:12px;display:flex}.export-toast{color:#34d399;background:#34d3991f;border-radius:4px;padding:3px 8px;font-size:11px;font-weight:600}.conformer-3d-grid{background:#0b0f17;flex:1;grid-template-columns:1fr 320px;min-height:500px;display:grid}.viewport-container{background:#0b0f17;border-right:1px solid #1e293b;flex-direction:column;justify-content:center;align-items:center;display:flex;position:relative}.conformer-canvas{cursor:grab;touch-action:none;width:100%;height:100%;max-height:520px}.conformer-canvas:active{cursor:grabbing}.viewport-toolbar{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#0f172ae0;border:1px solid #334155;border-radius:8px;justify-content:space-between;align-items:center;padding:6px 10px;display:flex;position:absolute;bottom:14px;left:14px;right:14px}.viewport-toolbar .tool-group{align-items:center;gap:4px;display:flex}.btn-mode{color:#94a3b8;cursor:pointer;background:#1e293b;border:1px solid #334155;border-radius:5px;padding:4px 8px;font-size:11px;font-weight:600;transition:all .12s}.btn-mode:hover{color:#f8fafc;background:#334155}.btn-mode.active{color:#fff;background:#2563eb;border-color:#3b82f6}.btn-toggle{color:#94a3b8;cursor:pointer;background:#1e293b;border:1px solid #334155;border-radius:5px;align-items:center;gap:4px;padding:4px 8px;font-size:11px;font-weight:600;transition:all .12s;display:flex}.btn-toggle:hover{color:#f8fafc;background:#334155}.btn-toggle.active{color:#93c5fd;background:#2563eb40;border-color:#3b82f6}.conformer-dashboard{background:#0f172a;flex-direction:column;gap:14px;padding:16px;display:flex;overflow-y:auto}.card-tag{letter-spacing:.6px;color:#94a3b8;margin-bottom:8px;font-size:10px;font-weight:800;display:block}.energy-card .card-header{justify-content:space-between;align-items:center;margin-bottom:10px;display:flex}.energy-badge{color:#38bdf8;font-size:18px;font-weight:800;font-family:var(--font-mono,"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace)}.energy-badge small{color:#94a3b8;font-size:11px;font-weight:600}.energy-breakdown-grid{background:#0f172a;border:1px solid #1e293b;border-radius:6px;flex-direction:column;gap:6px;margin-bottom:12px;padding:8px 10px;display:flex}.breakdown-item{justify-content:space-between;font-size:11px;display:flex}.breakdown-item .label{color:#94a3b8}.breakdown-item .val{color:#e2e8f0;font-family:var(--font-mono,"JetBrains Mono", ui-monospace, monospace);font-weight:600}.btn-optimize{color:#fff;cursor:pointer;background:linear-gradient(135deg,#2563eb,#1d4ed8);border:none;border-radius:6px;justify-content:center;align-items:center;gap:6px;width:100%;padding:8px 12px;font-size:12px;font-weight:700;transition:all .15s;display:flex;box-shadow:0 4px 12px #2563eb59}.btn-optimize:hover:not(:disabled){filter:brightness(1.1);transform:translateY(-1px)}.btn-optimize.running{color:#cbd5e1;cursor:wait;background:#334155}.metrics-list{flex-direction:column;gap:7px;display:flex}.metric-row{border-bottom:1px solid #ffffff0a;flex-direction:column;gap:2px;padding-bottom:5px;font-size:11px;display:flex}.metric-row .k{color:#94a3b8}.metric-row .v{color:#f1f5f9}.metric-row .v.bold{font-weight:700}.metric-row .v.gold{color:#facc15}.metric-row .v.mono{font-family:var(--font-mono,"JetBrains Mono", ui-monospace, monospace);font-size:10.5px}.export-btn-group{flex-direction:column;gap:6px;display:flex}.btn-export{color:#e2e8f0;cursor:pointer;background:#0f172a;border:1px solid #334155;border-radius:5px;justify-content:center;align-items:center;gap:6px;padding:6px 10px;font-size:11.5px;font-weight:600;transition:all .12s;display:flex}.btn-export:hover{color:#fff;background:#1e293b;border-color:#60a5fa}.conformer-3d-footer{color:#94a3b8;background:#1e293b;border-top:1px solid #334155;justify-content:space-between;align-items:center;padding:10px 20px;font-size:11.5px;display:flex}.btn-close{color:#fff;cursor:pointer;background:#334155;border:none;border-radius:5px;padding:5px 14px;font-size:12px;font-weight:600}.btn-close:hover{background:#475569}.lipinski-pass{color:#10b981;background:#10b9811f;border-radius:4px;padding:1px 6px;font-weight:700}.lipinski-warn{color:#f59e0b;background:#f59e0b1f;border-radius:4px;padding:1px 6px;font-weight:700}.inspector-tabs-bar{-webkit-user-select:none;user-select:none;background:#f1f5f9;border-bottom:1px solid #cbd5e1;gap:2px;padding:4px 6px 0;display:flex}.theme-dark .inspector-tabs-bar{background:#131b26;border-color:#334155}.inspector-tab-btn{color:#64748b;cursor:pointer;background:0 0;border:1px solid #0000;border-bottom:none;border-radius:6px 6px 0 0;align-items:center;gap:5px;padding:6px 10px;font-size:11px;font-weight:600;transition:all .12s;display:inline-flex}.inspector-tab-btn.active{color:#2563eb;background:#fff;border-color:#cbd5e1 #cbd5e1 #fff;border-bottom-style:solid;border-bottom-width:1px;margin-bottom:-1px}.theme-dark .inspector-tab-btn{color:#94a3b8}.theme-dark .inspector-tab-btn.active{color:#60a5fa;background:#1e293b;border-color:#334155 #334155 #1e293b}.embedded-3d-box{background:#fff;border:1px solid #cbd5e1;border-radius:8px;margin:12px;overflow:hidden;box-shadow:0 1px 3px #0000000d}.theme-dark .embedded-3d-box{background:#1e293b;border-color:#334155}.embedded-3d-header{background:#f8fafc;border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;padding:8px 10px;display:flex}.theme-dark .embedded-3d-header{background:#172033;border-color:#334155}.embedded-3d-actions{align-items:center;gap:2px;display:flex}.embedded-3d-canvas-wrap{cursor:grab;-webkit-user-select:none;user-select:none;background:#0b0f17;width:100%;height:210px;position:relative}.embedded-3d-canvas-wrap:active{cursor:grabbing}.embedded-3d-canvas{width:100%;height:100%;display:block}.embedded-3d-empty{color:#64748b;text-align:center;justify-content:center;align-items:center;padding:16px;font-size:11px;display:flex;position:absolute;inset:0}.embedded-3d-footer{background:#f8fafc;border-top:1px solid #e2e8f0;justify-content:space-between;align-items:center;padding:6px 10px;display:flex}.theme-dark .embedded-3d-footer{background:#172033;border-color:#334155}.embedded-3d-pills{gap:3px;display:flex}.pill-btn{color:#475569;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:12px;padding:2px 7px;font-size:10px;font-weight:600}.pill-btn:hover{background:#f1f5f9}.pill-btn.active{color:#fff;background:#2563eb;border-color:#2563eb}.theme-dark .pill-btn{color:#cbd5e1;background:#1e293b;border-color:#475569}.theme-dark .pill-btn.active{color:#fff;background:#3b82f6;border-color:#3b82f6}.embedded-3d-energy{color:#059669;font-size:10px;font-weight:700;font-family:var(--font-mono,"JetBrains Mono", ui-monospace, monospace);align-items:center;gap:3px;display:flex}.name-finder-tab{flex-direction:column;gap:10px;padding:10px 12px;display:flex}.finder-spinner{color:#2563eb;font-size:10px;animation:1s infinite alternate pulse}.name-finder-empty{text-align:center;color:#64748b;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:32px 16px;font-size:12px;display:flex}.name-finder-results{flex-direction:column;gap:10px;display:flex}.name-card{background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:10px;box-shadow:0 1px 3px #0000000d}.theme-dark .name-card{background:#1e293b;border-color:#334155}.name-card.primary{background:linear-gradient(135deg,#fff 0%,#f8fafc 100%);border-left:3px solid #2563eb}.theme-dark .name-card.primary{background:linear-gradient(135deg,#1e293b 0%,#162032 100%);border-left-color:#3b82f6}.name-card-label{letter-spacing:.05em;color:#64748b;align-items:center;gap:5px;margin-bottom:6px;font-size:10px;font-weight:700;display:flex}.theme-dark .name-card-label{color:#94a3b8}.iupac-text{color:var(--ink-950,#0a0f1a);word-break:break-word;-webkit-user-select:all;user-select:all;font-size:13px;font-weight:600;line-height:1.4;font-family:var(--font-sans,"Inter", sans-serif);margin-bottom:8px}.theme-dark .iupac-text{color:#f8fafc}.name-card-footer{border-top:1px solid #f1f5f9;gap:6px;padding-top:6px;display:flex}.theme-dark .name-card-footer{border-color:#334155}.name-action-btn{color:#334155;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:5px;align-items:center;gap:4px;padding:4px 8px;font-size:11px;font-weight:600;transition:all .1s;display:inline-flex}.name-action-btn:hover{background:#f1f5f9;border-color:#94a3b8}.name-action-btn.accent{color:#fff;background:#2563eb;border-color:#2563eb}.name-action-btn.accent:hover{background:#1d4ed8}.theme-dark .name-action-btn{color:#e2e8f0;background:#1e293b;border-color:#475569}.theme-dark .name-action-btn.accent{color:#fff;background:#3b82f6;border-color:#3b82f6}.common-names-chips{flex-wrap:wrap;gap:5px;display:flex}.name-chip{color:#1e40af;cursor:pointer;background:#eff6ff;border:1px solid #bfdbfe;border-radius:12px;padding:3px 8px;font-size:11px;font-weight:500;transition:all .12s}.name-chip:hover{background:#dbeafe;border-color:#93c5fd;transform:translateY(-1px)}.theme-dark .name-chip{color:#93c5fd;background:#1e3a5f;border-color:#2563eb}.name-details-table{background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;flex-direction:column;gap:5px;padding:8px 10px;font-size:11px;display:flex}.theme-dark .name-details-table{background:#172033;border-color:#334155}.name-detail-row{justify-content:space-between;align-items:center;gap:6px;display:flex}.detail-key{color:#64748b;flex:none;font-weight:600}.detail-val{color:#1e293b;text-align:right;word-break:break-all}.theme-dark .detail-val{color:#e2e8f0}.detail-val.mono{font-family:var(--font-mono,"JetBrains Mono", ui-monospace, monospace);font-size:10.5px}.source-badge{color:#2563eb;align-items:center;gap:4px;font-size:10px;font-weight:600;display:inline-flex}.icon-copy-inline{color:#64748b;cursor:pointer;background:0 0;border:none;border-radius:3px;padding:1px 3px}.icon-copy-inline:hover{color:#1e293b;background:#e2e8f0}.pub-studio-modal{width:860px;max-width:95vw}.badge-impact{letter-spacing:.06em;color:#2563eb;background:#eff6ff;border:1px solid #bfdbfe;border-radius:12px;align-items:center;gap:5px;margin-bottom:4px;padding:2px 8px;font-size:10px;font-weight:700;display:inline-flex}.theme-dark .badge-impact{color:#93c5fd;background:#1e3a5f;border-color:#2563eb}.pub-studio-body{grid-template-columns:320px 1fr;gap:16px;max-height:70vh;padding:16px;display:grid;overflow-y:auto}.pub-journal-selector{flex-direction:column;gap:8px;display:flex}.journal-cards-list{flex-direction:column;gap:8px;max-height:480px;padding-right:4px;display:flex;overflow-y:auto}.journal-card{cursor:pointer;background:#fff;border:1.5px solid #cbd5e1;border-radius:8px;padding:10px;transition:all .15s}.journal-card:hover{background:#f8fafc;border-color:#94a3b8}.journal-card.active{background:#f0f7ff;border-color:#2563eb;box-shadow:0 0 0 2px #2563eb26}.theme-dark .journal-card{background:#1e293b;border-color:#334155}.theme-dark .journal-card:hover{background:#253348}.theme-dark .journal-card.active{background:#1a2942;border-color:#3b82f6}.journal-card-top{justify-content:space-between;align-items:baseline;margin-bottom:4px;display:flex}.journal-name{color:#0f172a;font-size:13px;font-weight:700}.theme-dark .journal-name{color:#f8fafc}.publisher-tag{color:#64748b;font-size:9.5px;font-weight:600}.journal-desc{color:#475569;margin-bottom:6px;font-size:11px;line-height:1.35}.theme-dark .journal-desc{color:#94a3b8}.journal-targets{flex-wrap:wrap;gap:4px;display:flex}.target-pill{color:#475569;background:#f1f5f9;border-radius:10px;padding:1px 6px;font-size:9.5px;font-weight:600}.theme-dark .target-pill{color:#cbd5e1;background:#334155}.pub-spec-panel{flex-direction:column;gap:14px;display:flex}.spec-card{background:#fff;border:1px solid #cbd5e1;border-radius:8px;flex-direction:column;gap:10px;padding:12px 14px;display:flex}.theme-dark .spec-card{background:#1e293b;border-color:#334155}.spec-card-head{letter-spacing:.05em;color:#0f172a;border-bottom:1px solid #f1f5f9;align-items:center;gap:6px;padding-bottom:6px;font-size:11px;font-weight:700;display:flex}.theme-dark .spec-card-head{color:#f8fafc;border-color:#334155}.spec-grid{grid-template-columns:1fr 1fr;gap:6px 12px;font-size:11px;display:grid}.spec-item{justify-content:space-between;display:flex}.spec-label{color:#64748b}.spec-value{color:#0f172a;font-weight:600}.theme-dark .spec-value{color:#f1f5f9}.apply-style-btn{justify-content:center;align-items:center;gap:6px;padding:8px 12px;font-size:12px;font-weight:600;display:flex}.applied-toast{color:#059669;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:5px;justify-content:center;align-items:center;gap:5px;padding:4px 8px;font-size:11px;font-weight:600;display:flex}.pub-config-row{grid-template-columns:1fr 1fr;gap:10px;display:grid}.export-specs-summary{color:#475569;background:#f8fafc;border:1px solid #e2e8f0;border-radius:5px;padding:6px 10px;font-size:11px}.theme-dark .export-specs-summary{color:#94a3b8;background:#131b26;border-color:#334155}.pub-export-actions{gap:8px;margin-top:4px;display:flex}.conformer-3d-modal{width:1080px;max-width:96vw;max-height:94vh}.conformer-3d-grid{grid-template-columns:1fr 380px}.dash-tab-btn{color:#94a3b8;cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;align-items:center;gap:5px;padding:8px 11px;font-size:11px;font-weight:600;transition:all .15s;display:flex}.dash-tab-btn:hover{color:#f1f5f9}.dash-tab-btn.active{color:#38bdf8;background:#38bdf814;border-bottom-color:#38bdf8;border-radius:6px 6px 0 0}.theme-selector{align-items:center;gap:4px;padding:0 4px;display:flex}.theme-pill{cursor:pointer;border:1px solid #ffffff40;border-radius:50%;width:18px;height:18px;padding:0;transition:transform .1s,border-color .1s}.theme-pill:hover{transform:scale(1.15)}.theme-pill.active{border-color:#fff;box-shadow:0 0 0 2px #38bdf8}.theme-pill.navy{background:#081426}.theme-pill.dark{background:#111827}.theme-pill.white{background:#fff}.measurement-banner{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#38bdf8;z-index:10;background:#0f172aeb;border:1px solid #38bdf8;border-radius:6px;align-items:center;gap:8px;padding:6px 12px;font-size:12px;font-weight:600;display:flex;position:absolute;top:12px;left:12px;box-shadow:0 4px 14px #00000080}.measurement-clear-btn{color:#fff;cursor:pointer;background:#334155;border:none;border-radius:4px;padding:2px 7px;font-size:10.5px}.measurement-clear-btn:hover{background:#475569}.surface-control-grid{grid-template-columns:repeat(2,1fr);gap:6px;margin-bottom:10px;display:grid}.surface-metrics-row{text-align:center;background:#0b0f17;border:1px solid #1e293b;border-radius:6px;grid-template-columns:repeat(3,1fr);gap:6px;margin-bottom:10px;padding:8px;display:grid}.surface-metric-box .metric-name{color:#94a3b8;font-size:9.5px;font-weight:600;display:block}.surface-metric-box .metric-num{color:#38bdf8;font-size:13px;font-family:var(--font-mono,"JetBrains Mono", ui-monospace, monospace);font-weight:700}.mep-legend{background:#0b0f17;border:1px solid #1e293b;border-radius:6px;margin-top:8px;padding:6px 8px}.mep-bar{background:linear-gradient(90deg,#ef4444,#f8fafc,#3b82f6);border-radius:4px;height:8px;margin-bottom:4px}.mep-labels{color:#94a3b8;font-size:9.5px;font-family:var(--font-mono,"JetBrains Mono", ui-monospace, monospace);justify-content:space-between;display:flex}.rotator-panel{flex-direction:column;gap:10px;display:flex}.rotator-select{color:#e2e8f0;background:#0b0f17;border:1px solid #334155;border-radius:6px;width:100%;padding:6px 8px;font-size:11.5px}.rotator-slider-wrap{align-items:center;gap:8px;display:flex}.rotator-slider-wrap input[type=range]{flex:1}.rotator-angle-badge{text-align:right;min-width:48px;font-family:var(--font-mono,"JetBrains Mono", ui-monospace, monospace);color:#38bdf8;font-size:12px;font-weight:700}.rotator-quick-actions{gap:6px;display:flex}.h-toggle-row{gap:6px;margin-top:8px;display:flex}.btn-h-toggle{color:#cbd5e1;cursor:pointer;background:#0f172a;border:1px solid #334155;border-radius:5px;flex:1;justify-content:center;align-items:center;gap:5px;padding:6px 8px;font-size:11px;transition:all .12s;display:flex}.btn-h-toggle:hover{color:#fff;background:#1e293b;border-color:#60a5fa}.atom-coord-table{border-collapse:collapse;width:100%;font-size:10.5px;font-family:var(--font-mono,"JetBrains Mono", ui-monospace, monospace);margin-top:6px}.atom-coord-table th{text-align:left;color:#94a3b8;border-bottom:1px solid #334155;padding:3px 6px}.atom-coord-table tr.selected{background:#38bdf826}.conformer-3d-modal.hasimdraw-quantum-extended{width:1160px;max-width:98vw}.conformer-3d-grid.hasimdraw-quantum-grid{grid-template-columns:1fr 420px}.dashboard-tabs.scrollable{white-space:nowrap;scrollbar-width:none;overflow-x:auto}.dashboard-tabs.scrollable::-webkit-scrollbar{display:none}.qc-energy-box{background:#0b0f17;border:1px solid #1e293b;border-radius:6px;margin-bottom:10px;padding:10px}.qc-energy-box .engine-tag{color:#38bdf8;letter-spacing:.5px;align-items:center;gap:4px;margin-bottom:6px;font-size:10px;font-weight:800;display:flex}.fmo-ladder{background:#080d1a;border:1px solid #1e293b;border-radius:6px;flex-direction:column;gap:4px;margin:10px 0;padding:8px 10px;display:flex}.fmo-level{font-size:11px;font-family:var(--font-mono,"JetBrains Mono", ui-monospace, monospace);border-radius:4px;justify-content:space-between;align-items:center;padding:3px 6px;display:flex}.fmo-level.homo{color:#93c5fd;background:#3b82f633;border:1px solid #3b82f6;font-weight:700}.fmo-level.lumo{color:#fca5a5;background:#ef444433;border:1px solid #ef4444;font-weight:700}.fmo-gap-badge{text-align:center;color:#facc15;background:#facc151a;border:1px dashed #facc1566;border-radius:4px;margin:2px 0;padding:4px;font-size:11px;font-weight:800}.qc-input-preview{color:#e2e8f0;font-family:var(--font-mono,"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace);white-space:pre;background:#050811;border:1px solid #1e293b;border-radius:6px;max-height:240px;padding:10px;font-size:10.5px;line-height:1.45;overflow:auto}.rea-diagram-svg{background:#080d1a;border:1px solid #1e293b;border-radius:6px;width:100%;height:220px;margin-bottom:10px}.rea-state-table{border-collapse:collapse;width:100%;font-size:10.5px;font-family:var(--font-mono,"JetBrains Mono", ui-monospace, monospace)}.rea-state-table th{color:#94a3b8;text-align:left;border-bottom:1px solid #334155;padding:4px 6px}.rea-state-table td{color:#e2e8f0;border-bottom:1px solid #ffffff0a;padding:4px 6px}.hasimdraw-quantum-scheme-pill{color:#94a3b8;cursor:pointer;background:#0f172a;border:1px solid #334155;border-radius:4px;padding:3px 8px;font-size:10.5px;transition:all .12s}.hasimdraw-quantum-scheme-pill.active{color:#fff;background:#2563eb;border-color:#3b82f6;font-weight:700}.inspector-tabs-nav{background:#f1f5f9;border:1px solid #cbd5e1;border-radius:4px;gap:2px;margin:10px 0 12px;padding:2px;display:flex}.theme-dark .inspector-tabs-nav{background:#0b0f19;border-color:#1e293b}.inspector-tab-btn{color:#64748b;cursor:pointer;white-space:nowrap;background:0 0;border:1px solid #0000;border-radius:3px;flex:1;justify-content:center;align-items:center;gap:5px;padding:5px 6px;font-size:10.5px;font-weight:500;transition:all .1s;display:flex}.inspector-tab-btn svg{opacity:.75;flex-shrink:0}.inspector-tab-btn:hover{color:#0f172a;background:#e2e8f0}.theme-dark .inspector-tab-btn:hover{color:#f8fafc;background:#1e293b}.inspector-tab-btn.active{color:#0f172a;background:#fff;border-color:#cbd5e1;font-weight:600;box-shadow:0 1px 2px #0000000a}.inspector-tab-btn.active svg{opacity:1;color:#2563eb}.theme-dark .inspector-tab-btn.active{color:#f8fafc;box-shadow:none;background:#1e293b;border-color:#334155}.theme-dark .inspector-tab-btn.active svg{color:#60a5fa}.dashboard-tabs{background:#080e1a;border-bottom:1px solid #1e293b;gap:4px;padding:6px 10px 0;display:flex}.dash-tab-btn{color:#94a3b8;letter-spacing:.2px;cursor:pointer;white-space:nowrap;background:#0d1526;border:1px solid #1e293b;border-bottom:none;border-radius:6px 6px 0 0;align-items:center;gap:6px;padding:7px 11px;font-size:11px;font-weight:600;transition:all .15s;display:inline-flex;position:relative}.dash-tab-btn svg{opacity:.8;flex-shrink:0}.dash-tab-btn:hover{color:#f1f5f9;background:#131e35;border-color:#334155}.dash-tab-btn.active{color:#38bdf8;background:#101c33;border-color:#38bdf8 #38bdf8 #101c33;border-bottom-style:solid;border-bottom-width:1px;font-weight:700;box-shadow:0 -2px 8px #38bdf82e}.dash-tab-btn.active svg{opacity:1;color:#38bdf8}.dash-tab-btn.active:after{content:"";background:#38bdf8;border-radius:6px 6px 0 0;height:2px;position:absolute;top:0;left:0;right:0}.dashboard-card{background:#0d1526;border:1px solid #1e293b;border-radius:8px;padding:14px}.card-tag{letter-spacing:.7px;color:#94a3b8;text-transform:uppercase;margin-bottom:8px;font-size:9.5px;font-weight:800;display:block}.quick-bar{scrollbar-width:none;align-items:center;gap:4px;margin-right:auto;padding:4px 0;display:flex;overflow-x:auto}.quick-bar::-webkit-scrollbar{display:none}.quick-chip{color:#475569;white-space:nowrap;background:#fff;border:1px solid #e2e8f0;border-radius:5px;align-items:center;gap:5px;height:28px;padding:0 9px;font-size:11px;font-weight:600;transition:all .12s cubic-bezier(.16,1,.3,1);display:inline-flex}.quick-chip:hover{color:#0f172a;background:#f8fafc;border-color:#cbd5e1;transform:translateY(-1px)}.quick-chip.active{color:#2563eb;background:#eff6ff;border-color:#bfdbfe;font-weight:700}.quick-chip.accent{color:#15803d;background:#f0fdf4;border-color:#bbf7d0}.quick-chip.accent:hover{background:#dcfce7}.theme-dark .quick-chip{color:#cbd5e1;background:#1e293b;border-color:#334155}.theme-dark .quick-chip:hover{color:#fff;background:#28374d;border-color:#475569}.theme-dark .quick-chip.active{color:#60a5fa;background:#172554;border-color:#1d4ed8}.theme-dark .quick-chip.accent{color:#4ade80;background:#052e16;border-color:#166534}.analysis-box{background:#fff;border:1px solid #e2e8f0;border-radius:8px;margin-bottom:14px;padding:12px}.theme-dark .analysis-box{background:#0d1526;border-color:#1e293b}.analysis-box-header{border-bottom:1px solid #f1f5f9;justify-content:space-between;align-items:center;margin-bottom:8px;padding-bottom:6px;display:flex}.theme-dark .analysis-box-header{border-bottom-color:#1e293b}.box-label{letter-spacing:.6px;color:#64748b;text-transform:uppercase;font-size:10px;font-weight:800}.theme-dark .box-label{color:#94a3b8}.paste-to-doc-btn{color:#475569;cursor:pointer;background:#f1f5f9;border:1px solid #cbd5e1;border-radius:4px;align-items:center;gap:4px;padding:3px 7px;font-size:10px;font-weight:600;transition:all .12s;display:inline-flex}.paste-to-doc-btn:hover{color:#0f172a;background:#e2e8f0}.theme-dark .paste-to-doc-btn{color:#94a3b8;background:#1e293b;border-color:#334155}.theme-dark .paste-to-doc-btn:hover{color:#fff;background:#28374d}.analysis-properties-grid{flex-direction:column;gap:5px;font-size:11px;display:flex}.prop-row{justify-content:space-between;align-items:baseline;padding:2px 0;display:flex}.prop-key{color:#64748b;font-weight:600}.theme-dark .prop-key{color:#94a3b8}.prop-val{color:#0f172a;font-family:var(--font-mono,"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace);font-weight:600}.theme-dark .prop-val{color:#f1f5f9}.prop-val.formula-val{font-family:var(--font-display,"Manrope", "Inter", sans-serif);color:var(--accent-500,#2b63e8);letter-spacing:-.01em;font-weight:700}.theme-dark .prop-val.formula-val{color:#38bdf8}.name-card.cas-card{background:#f0fdf4;border-color:#bbf7d0;border-left-style:solid;border-left-width:3px}.theme-dark .name-card.cas-card{background:#064e3b33;border-color:#10b9814d #10b9814d #10b9814d #10b981}.cas-hero-row{justify-content:space-between;align-items:center;gap:8px;margin:6px 0;display:flex}.cas-number-val{letter-spacing:.5px;color:#047857;font-size:15px;font-weight:800}.theme-dark .cas-number-val{color:#34d399}.cas-actions{align-items:center;gap:4px;display:flex}.cas-secondary-list{border-top:1px dashed #10b98133;flex-wrap:wrap;align-items:center;gap:4px;margin-top:4px;padding-top:4px;display:flex}.cas-sub-chip{color:#065f46;cursor:pointer;background:#10b9811a;border:1px solid #10b98133;border-radius:4px;padding:1px 6px;font-size:10px;transition:all .1s}.cas-sub-chip:hover{background:#10b98133;transform:translateY(-1px)}.theme-dark .cas-sub-chip{color:#6ee7b7;background:#10b98126;border-color:#10b9814d}.name-card.exp-props-card{background:#f0f9ff;border-color:#bae6fd;border-left-style:solid;border-left-width:3px}.theme-dark .name-card.exp-props-card{background:#0c4a6e33;border-color:#38bdf840 #38bdf840 #38bdf840 #38bdf8}.exp-props-grid{grid-template-columns:1fr 1fr;gap:6px;margin-top:6px;display:grid}.exp-prop-item{background:#fff;border:1px solid #e0f2fe;border-radius:6px;padding:5px 8px}.theme-dark .exp-prop-item{background:#0f172ab3;border-color:#38bdf826}.exp-prop-label{color:#0369a1;text-transform:uppercase;letter-spacing:.3px;align-items:center;gap:4px;font-size:9.5px;font-weight:700;display:flex}.theme-dark .exp-prop-label{color:#7dd3fc}.exp-prop-value{color:#0f172a;word-break:break-word;margin-top:2px;font-size:11px;font-weight:600;line-height:1.35}.theme-dark .exp-prop-value{color:#f1f5f9}.hasimdraw-resize-handle{transition:transform .1s,fill .12s,stroke .12s}.hasimdraw-resize-handle:hover{filter:drop-shadow(0 1px 3px #2563eb73);fill:#2563eb!important;stroke:#fff!important}.selection-quick-scale{filter:drop-shadow(0 4px 12px #00000059);transition:opacity .15s,transform .15s}.selection-quick-scale rect{transition:stroke .15s,fill .15s}.selection-quick-scale:hover rect{stroke:#38bdf8}.selection-quick-scale g:hover rect{fill:#38bdf833}.selection-quick-scale g:hover text{fill:#fff}.chemcraft-container{flex-direction:column;gap:10px;display:flex}.chemcraft-filter-bar{background:#080d1a;border:1px solid #1e293b;border-radius:6px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:6px 10px;display:flex}.chemcraft-pill-group{align-items:center;gap:4px;display:flex}.chemcraft-pill{color:#94a3b8;cursor:pointer;background:#0f172a;border:1px solid #334155;border-radius:4px;padding:3px 8px;font-size:10.5px;font-weight:500;transition:all .12s}.chemcraft-pill:hover{color:#f8fafc;background:#1e293b}.chemcraft-pill.active{color:#fff;background:#0284c7;border-color:#38bdf8;font-weight:700}.chemcraft-table-container{background:#050811;border:1px solid #1e293b;border-radius:6px;max-height:200px;overflow-y:auto}.chemcraft-table{border-collapse:collapse;width:100%;font-size:10.5px;font-family:var(--font-mono,"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace)}.chemcraft-table th{color:#38bdf8;text-align:left;z-index:2;background:#0b1120;border-bottom:1px solid #1e293b;padding:5px 6px;font-weight:700;position:sticky;top:0}.chemcraft-table td{color:#cbd5e1;white-space:nowrap;border-bottom:1px solid #ffffff08;padding:3.5px 6px}.chemcraft-table tr{cursor:pointer;transition:background .1s}.chemcraft-table tr:hover{background:#38bdf814}.chemcraft-table tr.selected{color:#38bdf8;background:#38bdf82e!important}.chemcraft-table tr.selected td{color:#e0f2fe;font-weight:600}.chemcraft-cmd-box{background:#080d1a;border:1px solid #1e293b;border-radius:6px;flex-direction:column;gap:5px;padding:8px 10px;display:flex}.chemcraft-cmd-header{color:#94a3b8;text-transform:uppercase;letter-spacing:.5px;justify-content:space-between;align-items:center;font-size:10px;font-weight:700;display:flex}.chemcraft-cmd-code{font-family:var(--font-mono,"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace);color:#38bdf8;white-space:pre;background:#030712;border:1px solid #111827;border-radius:4px;justify-content:space-between;align-items:center;padding:6px 8px;font-size:11px;display:flex;overflow-x:auto}.chemcraft-copy-btn{color:#94a3b8;cursor:pointer;background:#1e293b;border:1px solid #334155;border-radius:3px;align-items:center;gap:3px;padding:2px 6px;font-size:9.5px;transition:all .1s;display:flex}.chemcraft-copy-btn:hover{color:#fff;background:#0284c7;border-color:#38bdf8}.atom-coord-table{border-collapse:collapse;width:100%;font-size:10.5px;font-family:var(--font-mono,"JetBrains Mono", ui-monospace, monospace)}.atom-coord-table th{color:#94a3b8;text-align:left;background:#1e293b;border-bottom:1px solid #334155;padding:4px 6px;position:sticky;top:0}.atom-coord-table td{color:#e2e8f0;border-bottom:1px solid #ffffff0a;padding:3px 6px}.hasimdraw-app-brand-btn{cursor:pointer;-webkit-user-select:none;user-select:none;background:0 0;border:1px solid #0000;border-radius:3px;align-items:center;gap:6px;margin-right:6px;padding:2px 6px 2px 4px;transition:all .12s;display:flex}.hasimdraw-app-brand-btn:hover{background:#e2e8f0;border-color:#cbd5e1}.theme-dark .hasimdraw-app-brand-btn:hover{background:#1e293b;border-color:#334155}.app-icon-3d-wrap{justify-content:center;align-items:center;width:20px;height:20px;display:flex}.app-icon-3d-svg{width:18px;height:18px;display:block}.hasimdraw-brand-label{font-family:var(--font-sans);color:#0f172a;letter-spacing:-.01em;align-items:center;gap:4px;font-size:11.5px;font-weight:700;display:flex}.theme-dark .hasimdraw-brand-label{color:#f8fafc}.brand-pro-tag{color:#fff;letter-spacing:.5px;background:#2563eb;border-radius:2px;padding:1px 3px;font-size:8px;font-weight:700}.vibration-mode-banner{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);z-index:30;background:#0f172af0;border:1px solid #38bdf8;border-radius:8px;justify-content:space-between;align-items:center;gap:10px;padding:8px 12px;animation:.2s ease-out bannerFadeIn;display:flex;position:absolute;top:10px;left:12px;right:12px;box-shadow:0 4px 20px #0006,0 0 12px #38bdf840}@keyframes bannerFadeIn{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}.vibration-info{align-items:center;gap:8px;font-size:11px;display:flex}.vibration-badge{color:#fff;letter-spacing:.5px;background:#0284c7;border-radius:4px;padding:2px 7px;font-size:10px;font-weight:800}.vibration-freq{color:#f8fafc;font-family:monospace;font-size:12px;font-weight:700}.vibration-assign{color:#94a3b8;font-size:11px;font-style:italic}.vibration-controls{align-items:center;gap:6px;display:flex}.vibration-btn{color:#38bdf8;cursor:pointer;background:#1e293b;border:1px solid #38bdf8;border-radius:5px;align-items:center;gap:4px;padding:4px 9px;font-size:11px;font-weight:700;transition:all .15s;display:flex}.vibration-btn:hover{color:#fff;background:#0284c7}.vibration-speed-pills{background:#0f172a;border:1px solid #334155;border-radius:5px;align-items:center;gap:2px;padding:2px;display:flex}.vibration-pill{color:#94a3b8;cursor:pointer;background:0 0;border:none;border-radius:3px;align-items:center;gap:3px;padding:2px 6px;font-size:10px;font-weight:600;transition:all .12s;display:inline-flex}.vibration-pill:hover{color:#f8fafc}.vibration-pill.active{color:#fff;background:#0284c7;font-weight:700}.vibration-close-btn{color:#fff;cursor:pointer;background:#ef4444;border:none;border-radius:5px;align-items:center;gap:3px;padding:4px 8px;font-size:10.5px;font-weight:700;transition:background .12s;display:flex}.vibration-close-btn:hover{background:#dc2626}.ir-spectrum-card{background:#070b14;border:1px solid #1e293b;border-radius:8px;margin:10px 0;padding:12px}.ir-spectrum-header{justify-content:space-between;align-items:center;margin-bottom:8px;display:flex}.ir-diagnostic-bands{flex-wrap:wrap;gap:4px;margin-bottom:8px;display:flex}.ir-diagnostic-pill{color:#cbd5e1;background:#1e293bcc;border:1px solid #334155;border-radius:3px;padding:2px 6px;font-size:9px;font-weight:700}.ir-diagnostic-pill.oh-nh{color:#7dd3fc;border-color:#38bdf8}.ir-diagnostic-pill.ch{color:#a5b4fc;border-color:#818cf8}.ir-diagnostic-pill.triple{color:#fde68a;border-color:#f59e0b}.ir-diagnostic-pill.carbonyl{color:#fca5a5;border-color:#ef4444}.ir-diagnostic-pill.alkene{color:#6ee7b7;border-color:#10b981}.ir-diagnostic-pill.fingerprint{color:#94a3b8;border-color:#64748b}.ir-plot-wrap{background:#04070e;border:1px solid #1e293b;border-radius:6px;width:100%;position:relative;overflow:hidden}.ir-svg-chart{width:100%;height:220px;display:block}.ir-hover-tooltip{color:#e2e8f0;pointer-events:none;background:#0f172aeb;border:1px solid #38bdf8;border-radius:5px;padding:4px 8px;font-family:monospace;font-size:10px;position:absolute;top:8px;right:10px}.ir-modes-table-wrap{border:1px solid #1e293b;border-radius:6px;max-height:160px;margin-top:8px;overflow-y:auto}.ir-modes-table{border-collapse:collapse;width:100%;font-size:10px}.ir-modes-table th{color:#94a3b8;text-align:left;background:#0b1120;border-bottom:1px solid #1e293b;padding:5px 8px;position:sticky;top:0}.ir-modes-table td{color:#cbd5e1;border-bottom:1px solid #ffffff0a;padding:4px 8px}.ir-modes-table tr:hover{cursor:pointer;background:#38bdf814}.ir-modes-table tr.active-mode{color:#38bdf8;background:#38bdf82e;font-weight:700}.ir-modes-table tr.active-mode td{color:#38bdf8}.ir-animate-btn{color:#fff;cursor:pointer;background:#0284c7;border:none;border-radius:3px;align-items:center;gap:3px;padding:2px 7px;font-size:9.5px;font-weight:700;transition:background .12s;display:inline-flex}.ir-animate-btn:hover{background:#0369a1}.props-tabs-bar{border-bottom:1px solid var(--border-default,#d2dbe5);background:var(--surface-sunken,#edf2f8);gap:4px;padding:0 16px;display:flex}.props-tab-btn{color:var(--ink-400,#5a7294);cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;align-items:center;gap:6px;padding:8px 14px;font-family:inherit;font-size:11.5px;font-weight:500;transition:all .15s;display:flex}.props-tab-btn:hover{color:var(--ink-800,#162038);background:#2b63e80d}.props-tab-btn.active{color:var(--accent-600,#1a4fd6);border-bottom-color:var(--accent-500,#2b63e8);font-weight:700}.theme-dark .props-tabs-bar{background:#090e18;border-bottom-color:#263341}.theme-dark .props-tab-btn{color:#8097b4}.theme-dark .props-tab-btn:hover{color:#e8eff7;background:#4d80f41a}.theme-dark .props-tab-btn.active{color:#7ba3f7;border-bottom-color:#4d80f4}.theme-dark .autofix-btn{color:#9ec1ff;background:#2b63e829;border-color:#4d80f466}.theme-dark .autofix-btn:hover{background:#2b63e847;border-color:#4d80f4}.fixed.inset-0.z-50{z-index:999;-webkit-backdrop-filter:blur(10px);font-family:var(--font-sans,"Inter", -apple-system, sans-serif);background:#080e1ac7;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.fixed.inset-0 .bg-slate-900{color:#e2e8f0;background:#0d1526;border:1px solid #23344d;border-radius:14px;box-shadow:0 25px 65px -10px #0009,0 0 0 1px #ffffff0f}.fixed.inset-0 .bg-slate-950\/50,.fixed.inset-0 .bg-slate-950\/70,.fixed.inset-0 .bg-slate-950{background:#070c17;border-bottom:1px solid #1c2b42}.fixed.inset-0 .border-slate-800{border-color:#1e2d42}.fixed.inset-0 .border-slate-700,.fixed.inset-0 .border-slate-700\/80{border-color:#2b3e59}.fixed.inset-0 .bg-slate-800{background:#162236}.fixed.inset-0 .hover\:bg-slate-800:hover{background:#1f304c}.fixed.inset-0 .text-slate-100{color:#f1f5f9}.fixed.inset-0 .text-slate-300{color:#cbd5e1}.fixed.inset-0 .text-slate-400{color:#8da2bb}.fixed.inset-0 .text-slate-500{color:#64748b}.fixed.inset-0 .text-white{color:#fff}.fixed.inset-0 .text-sky-400{color:#38bdf8}.fixed.inset-0 .text-sky-500{color:#0ea5e9}.fixed.inset-0 .bg-sky-500{background:#0284c7}.fixed.inset-0 .bg-sky-600{background:#0369a1}.fixed.inset-0 .text-emerald-400{color:#34d399}.fixed.inset-0 .bg-emerald-500\/20{background:#10b98133}.fixed.inset-0 .border-emerald-500\/30{border-color:#10b9814d}.fixed.inset-0 .rounded-xl{border-radius:12px}.fixed.inset-0 .rounded-2xl{border-radius:16px}.fixed.inset-0 .rounded-lg{border-radius:8px}.fixed.inset-0 .rounded-md{border-radius:6px}.fixed.inset-0 .rounded-full{border-radius:9999px}.fixed.inset-0 .shadow-2xl{box-shadow:0 25px 50px -12px #00000080}.fixed.inset-0 .w-full{width:100%}.fixed.inset-0 .max-w-md{max-width:28rem}.fixed.inset-0 .max-w-lg{max-width:32rem}.fixed.inset-0 .max-w-2xl{max-width:42rem}.fixed.inset-0 .max-w-3xl{max-width:48rem}.fixed.inset-0 .max-h-\[88vh\]{max-height:88vh}.fixed.inset-0 .max-h-\[90vh\]{max-height:90vh}.fixed.inset-0 .max-h-\[60vh\]{max-height:60vh}.fixed.inset-0 .flex{display:flex}.fixed.inset-0 .flex-col{flex-direction:column}.fixed.inset-0 .items-center{align-items:center}.fixed.inset-0 .justify-between{justify-content:space-between}.fixed.inset-0 .justify-center{justify-content:center}.fixed.inset-0 .gap-2{gap:8px}.fixed.inset-0 .gap-3{gap:12px}.fixed.inset-0 .gap-4{gap:16px}.fixed.inset-0 .p-4{padding:16px}.fixed.inset-0 .p-6{padding:24px}.fixed.inset-0 .px-3{padding-left:12px;padding-right:12px}.fixed.inset-0 .py-1{padding-top:4px;padding-bottom:4px}.fixed.inset-0 .px-6{padding-left:24px;padding-right:24px}.fixed.inset-0 .py-4{padding-top:16px;padding-bottom:16px}.fixed.inset-0 .overflow-hidden{overflow:hidden}.fixed.inset-0 .overflow-y-auto{overflow-y:auto}.fixed.inset-0 .space-y-2>*+*{margin-top:8px}.fixed.inset-0 .space-y-3>*+*{margin-top:12px}.fixed.inset-0 .space-y-4>*+*{margin-top:16px}@keyframes modalFadeIn{0%{opacity:0}to{opacity:1}}@keyframes modalZoomIn{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}.fixed.inset-0.animate-in{animation:.15s ease-out modalFadeIn}.fixed.inset-0 .animate-in{animation:.18s cubic-bezier(.16,1,.3,1) modalZoomIn}.hasimdraw-mechanism-modal-backdrop{-webkit-backdrop-filter:blur(4px);z-index:9999;pointer-events:auto;background:#0f172a73;justify-content:center;align-items:center;animation:.15s ease-out modalFadeIn;display:flex;position:fixed;inset:0}.hasimdraw-mechanism-modal-container{box-sizing:border-box;color:#0f172a;font-family:var(--font-sans,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);pointer-events:auto;-webkit-user-select:none;user-select:none;background:#fff;border:1px solid #cbd5e1;border-radius:12px;flex-direction:column;animation:.18s cubic-bezier(.16,1,.3,1) modalZoomIn;display:flex;overflow:hidden;box-shadow:0 24px 60px #0f172a2e,0 0 0 1px #0f172a0f}.hasimdraw-mechanism-modal-container.is-maximized{box-shadow:none!important;border:none!important;border-radius:0!important;width:100vw!important;max-width:100vw!important;height:100vh!important;max-height:100vh!important;top:0!important;left:0!important;transform:none!important}.mechanism-modal-header{-webkit-user-select:none;user-select:none;background:#f8fafc;border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;padding:10px 18px;display:flex}.mechanism-modal-header.draggable{cursor:grab}.mechanism-modal-header.is-dragging{cursor:grabbing}.mechanism-modal-header.is-maximized{cursor:default}.mechanism-window-ctrl-btn{color:#64748b;cursor:pointer;pointer-events:auto;background:0 0;border:1px solid #0000;border-radius:6px;justify-content:center;align-items:center;width:28px;height:28px;padding:0;transition:all .12s;display:inline-flex}.mechanism-window-ctrl-btn:hover{color:#0f172a;background:#e2e8f0;border-color:#cbd5e1}.mechanism-window-ctrl-btn.close-btn:hover{color:#dc2626;background:#fee2e2;border-color:#fca5a5}.mechanism-action-btn-primary{color:#fff;cursor:pointer;pointer-events:auto;background:#0f172a;border:1px solid #0f172a;border-radius:6px;justify-content:center;align-items:center;gap:7px;padding:8px 14px;font-size:11.5px;font-weight:600;transition:all .14s;display:inline-flex;box-shadow:0 1px 2px #0f172a1f}.mechanism-action-btn-primary:hover{background:#1e293b;border-color:#1e293b;box-shadow:0 2px 4px #0f172a33}.mechanism-action-btn-primary:active{transform:translateY(0)}.mechanism-action-btn-secondary{color:#0f172a;cursor:pointer;pointer-events:auto;background:#fff;border:1px solid #cbd5e1;border-radius:6px;justify-content:center;align-items:center;gap:7px;padding:8px 14px;font-size:11.5px;font-weight:600;transition:all .14s;display:inline-flex}.mechanism-action-btn-secondary:hover{color:#0f172a;background:#f1f5f9;border-color:#94a3b8}.mechanism-action-btn-secondary:active{transform:translateY(0)}.mechanism-custom-scrollbar::-webkit-scrollbar{width:6px;height:6px}.mechanism-custom-scrollbar::-webkit-scrollbar-track{background:#f8fafc}.mechanism-custom-scrollbar::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}.mechanism-custom-scrollbar::-webkit-scrollbar-thumb:hover{background:#94a3b8}.hasimdraw-palette{z-index:40;box-sizing:border-box;scrollbar-width:thin;background:#fff;border:1px solid #e2e8f0;border-radius:12px;flex-direction:column;gap:3px;width:76px;max-height:calc(100% - 32px);padding:5px;transition:width .15s;display:flex;position:absolute;top:16px;left:16px;overflow:hidden auto;box-shadow:0 1px 3px #0f172a0f,0 8px 24px #0f172a14}.hasimdraw-palette.compact{width:44px}.palette-top-bar{border-bottom:1px solid #f1f5f9;justify-content:center;margin-bottom:3px;padding-bottom:4px;display:flex}.palette-cube-btn{color:#2563eb;cursor:pointer;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;place-items:center;width:32px;height:32px;transition:all .15s;display:grid}.palette-cube-btn:hover{background:#eff6ff;border-color:#bfdbfe;transform:scale(1.05)}.palette-grid{grid-template-columns:repeat(2,32px);justify-content:center;gap:2px;display:grid}.hasimdraw-palette.compact .palette-grid{grid-template-columns:32px}.hasimdraw-palette.compact .palette-grid>:nth-child(n+18){display:none}.palette-history-bar{border-top:1px solid #f1f5f9;justify-content:center;gap:2px;margin-top:3px;padding-top:3px;display:flex}.hasimdraw-palette.compact .palette-history-bar{flex-direction:column;align-items:center}.palette-toggle-bar{border-top:1px solid #f1f5f9;justify-content:center;margin-top:3px;padding-top:2px;display:flex}.palette-toggle-btn{color:#94a3b8;cursor:pointer;background:0 0;border:none;border-radius:4px;place-items:center;width:24px;height:18px;transition:color .15s,transform .15s;display:grid}.palette-toggle-btn:hover{color:#0f172a;background:#f1f5f9}.palette-chevron.expanded{transform:rotate(180deg)}.export-floating-wrapper{z-index:40;position:absolute;top:16px;right:16px}.export-button{color:#0f172a;height:32px;font:500 13px var(--font-sans);cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:9999px;align-items:center;gap:6px;padding:0 14px;transition:all .15s;display:flex;box-shadow:0 1px 3px #0f172a0f,0 4px 14px #0f172a14}.export-button:hover{background:#f8fafc;border-color:#cbd5e1;box-shadow:0 2px 6px #0f172a14,0 6px 18px #0f172a1a}.export-button:active{transform:scale(.97)}.export-icon{color:#2563eb}.export-chevron{color:#94a3b8;transition:transform .15s}.export-chevron.open{transform:rotate(180deg)}.export-menu-dropdown{z-index:60;background:#fff;border:1px solid #e2e8f0;border-radius:12px;flex-direction:column;gap:2px;width:270px;padding:6px;display:flex;position:absolute;top:calc(100% + 6px);right:0;box-shadow:0 4px 20px #0f172a1f,0 1px 3px #0f172a0f}.export-menu-section-title{text-transform:uppercase;letter-spacing:.05em;color:#94a3b8;padding:6px 8px 3px;font-size:10px;font-weight:700}.export-menu-divider{background:#f1f5f9;height:1px;margin:4px 0}.export-menu-item{color:#0f172a;cursor:pointer;text-align:left;background:0 0;border:none;border-radius:7px;align-items:center;gap:10px;width:100%;padding:6px 8px;transition:background .12s;display:flex}.export-menu-item:hover{background:#f1f5f9}.export-menu-icon{color:#64748b;flex-shrink:0}.export-item-text{flex-direction:column;flex:1;min-width:0;display:flex}.export-item-title{color:#0f172a;font-size:12px;font-weight:500}.export-item-desc{color:#64748b;font-size:10.5px}.export-menu-item kbd{color:#94a3b8;background:#f1f5f9;border-radius:3px;padding:1px 4px;font-size:10px}.actions-floating-card{width:248px;font-family:var(--font-sans);-webkit-user-select:none;user-select:none;z-index:40;background:#fff;border:1px solid #e2e8f0;border-radius:12px;max-height:calc(100% - 80px);padding:6px 8px 8px;position:absolute;bottom:16px;right:16px;overflow-y:auto;box-shadow:0 1px 3px #0f172a0f,0 8px 24px #0f172a14}.actions-card-header{justify-content:space-between;align-items:center;padding:4px 4px 6px 8px;display:flex}.actions-card-header h2{color:#0f172a;margin:0;font-size:13px;font-weight:600}.actions-card-close{color:#94a3b8;cursor:pointer;background:0 0;border:none;border-radius:4px;place-items:center;width:22px;height:22px;display:grid}.actions-card-close:hover{color:#0f172a;background:#f1f5f9}.actions-formula-chip{background:#f8fafc;border:1px solid #f1f5f9;border-radius:8px;flex-direction:column;gap:2px;margin-bottom:6px;padding:6px 10px;display:flex}.formula-text{color:#0f172a;font-size:14px;font-weight:700;font-family:var(--font-sans)}.formula-atoms{color:#64748b;font-size:10.5px}.actions-list{flex-direction:column;gap:2px;display:flex}.action-row{color:#1e293b;cursor:pointer;text-align:left;background:0 0;border:none;border-radius:6px;align-items:center;gap:8px;width:100%;height:30px;padding:0 8px;font-size:12.5px;font-weight:400;transition:background .12s;display:flex}.action-row:hover{background:#f1f5f9}.action-row-accent{color:#2563eb;font-weight:500}.action-row-accent:hover{background:#eff6ff}.action-row-danger{color:#dc2626}.action-row-danger:hover{background:#fef2f2}.action-row-icon{color:#64748b;flex-shrink:0}.action-row-accent .action-row-icon{color:#2563eb}.action-row-name{white-space:nowrap;text-overflow:ellipsis;flex:1;overflow:hidden}.action-row kbd{color:#94a3b8;font-size:10px;font-family:var(--font-sans)}.action-row-group{gap:4px;padding:4px 0;display:flex}.action-chip{color:#475569;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:6px;flex:1;justify-content:center;align-items:center;gap:4px;height:26px;padding:0 4px;font-size:11px;transition:all .12s;display:flex}.action-chip:hover{color:#0f172a;background:#f8fafc;border-color:#cbd5e1}.actions-card-footer{border-top:1px solid #f1f5f9;justify-content:space-between;align-items:center;margin-top:6px;padding-top:6px;display:flex}.actions-footer-btn{color:#64748b;cursor:pointer;background:0 0;border:none;border-radius:5px;align-items:center;gap:6px;height:26px;padding:0 8px;font-size:11.5px;display:flex}.actions-footer-btn:hover{color:#0f172a;background:#f1f5f9}.actions-footer-btn kbd{color:#94a3b8;font-size:9.5px}.actions-home-btn{color:#64748b;cursor:pointer;background:0 0;border:none;border-radius:5px;place-items:center;width:26px;height:26px;display:grid}.actions-home-btn:hover{color:#0f172a;background:#f1f5f9}.actions-reopen-button{z-index:40;color:#0f172a;height:32px;font:500 13px var(--font-sans);cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:9999px;align-items:center;gap:6px;padding:0 14px;transition:all .15s;display:flex;position:absolute;bottom:16px;right:16px;box-shadow:0 1px 3px #0f172a0f,0 4px 14px #0f172a14}.actions-reopen-button:hover{background:#f8fafc;border-color:#cbd5e1;transform:scale(1.02)}.actions-reopen-icon{color:#2563eb}.hasimdraw-dock-panel{z-index:35;background:#fff;border:1px solid #e2e8f0;border-radius:12px;width:260px;max-height:calc(100% - 72px);transition:transform .2s,opacity .2s;position:absolute;top:56px;right:16px;overflow-y:auto;box-shadow:0 1px 3px #0f172a0f,0 8px 24px #0f172a14}.hasimdraw-dock-panel.minimized{opacity:0;pointer-events:none;transform:translate(calc(100% + 24px))}.hasimdraw-dock-panel.open{opacity:1;pointer-events:auto;transform:translate(0)}.inspector-dock-close-btn{color:#94a3b8;cursor:pointer;z-index:10;background:0 0;border:none;border-radius:3px;place-items:center;width:20px;height:20px;font-size:16px;display:grid;position:absolute;top:8px;right:8px}.inspector-dock-close-btn:hover{color:#0f172a;background:#f1f5f9}.hasimdraw-desktop-viewport{background:#fff;width:100%;height:100%;position:absolute;inset:0;overflow:hidden}.hasimdraw-paper-stage{background:#fff;justify-content:center;align-items:center;width:100%;height:100%;display:flex}.hasimdraw-paper-sheet{width:100%;height:100%;box-shadow:none;background:#fff;border:none}.chem-canvas{background:#fff;width:100%;height:100%;display:block}.hasimdraw-toolbars-container.hidden-in-modern,.hasimdraw-substituents-container.hidden-in-modern{opacity:0;pointer-events:none;z-index:-100;height:0;min-height:0;max-height:0;position:absolute;overflow:hidden}.hasimdraw-menubar{height:30px;font-family:var(--font-sans);-webkit-user-select:none;user-select:none;background:#fff;border-bottom:1px solid #e2e8f0;align-items:center;padding:0 8px;display:flex}.hasimdraw-app-brand-btn.minimal{cursor:pointer;background:0 0;border:none;margin-right:6px;padding:4px}.hasimdraw-window-titlebar{height:24px;font-size:11.5px;font-family:var(--font-sans);color:#64748b;-webkit-user-select:none;user-select:none;background:#fff;border-bottom:1px solid #f1f5f9;align-items:center;padding:0 10px;display:flex}.theme-dark .actions-floating-card,.theme-dark .actions-reopen-button,.theme-dark .export-button,.theme-dark .export-menu-dropdown,.theme-dark .hasimdraw-dock-panel{color:#f1f5f9;background:#17212c;border-color:#2b3847;box-shadow:0 4px 20px #0006}.theme-dark .actions-card-header h2,.theme-dark .export-item-title,.theme-dark .action-row{color:#f1f5f9}.theme-dark .action-row:hover,.theme-dark .export-menu-item:hover,.theme-dark .actions-footer-btn:hover,.theme-dark .actions-home-btn:hover{background:#202b38}.theme-dark .actions-formula-chip{background:#111822;border-color:#232e3c}.theme-dark .formula-text{color:#60a5fa}.theme-dark .action-chip{color:#cbd5e1;background:#1e293b;border-color:#334354}.theme-dark .action-chip:hover{color:#fff;background:#263341}.theme-dark .palette-cube-btn{color:#60a5fa;background:#111822;border-color:#2b3847}.theme-dark .palette-cube-btn:hover{background:#1a2533;border-color:#3b82f6}.theme-dark .hasimdraw-desktop-viewport,.theme-dark .hasimdraw-paper-stage,.theme-dark .hasimdraw-paper-sheet,.theme-dark .chem-canvas{background:#0f1722}.theme-dark .hasimdraw-menubar,.theme-dark .hasimdraw-window-titlebar{color:#cbd5e1;background:#111822;border-color:#232e3c}.hasimdraw-molecule-hud{z-index:1050;pointer-events:auto;color:#0f172a;-webkit-user-select:none;user-select:none;background:#fff;border:1px solid #cbd5e1;border-radius:6px;flex-direction:column;font-size:11px;transition:box-shadow .12s,width .12s;animation:.12s ease-out hasimFadeIn;display:flex;position:absolute;overflow:hidden;box-shadow:0 4px 20px -2px #0f172a1f,0 2px 6px -1px #0000000d}.theme-dark .hasimdraw-molecule-hud{color:#f1f5f9;background:#0f172a;border-color:#334155;box-shadow:0 8px 26px #0000008c}.hasimdraw-molecule-hud.is-dragging{opacity:.96;box-shadow:0 14px 34px #00000038}.hasimdraw-molecule-hud.is-collapsed{border-radius:20px}.hud-titlebar{cursor:grab;-webkit-user-select:none;user-select:none;background:#f8fafc;border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;padding:5px 8px;transition:background .1s;display:flex}.theme-dark .hud-titlebar{background:#1e293b;border-bottom-color:#334155}.hud-titlebar:hover{background:#f1f5f9}.theme-dark .hud-titlebar:hover{background:#243046}.hasimdraw-molecule-hud.is-dragging .hud-titlebar{cursor:grabbing;background:#e2e8f0}.theme-dark .hasimdraw-molecule-hud.is-dragging .hud-titlebar{background:#334155}.hud-titlebar-left{align-items:center;gap:6px;display:flex}.hud-drag-handle{color:#94a3b8;cursor:grab}.hud-formula-title{color:#0f172a;letter-spacing:-.01em;font-size:12px;font-weight:700}.theme-dark .hud-formula-title{color:#f8fafc}.hud-ro5-badge{letter-spacing:.02em;text-transform:uppercase;border-radius:3px;padding:1px 5px;font-size:9px;font-weight:700}.hud-ro5-pass{color:#047857;background:#ecfdf5;border:1px solid #a7f3d0}.theme-dark .hud-ro5-pass{color:#6ee7b7;background:#064e3b;border-color:#047857}.hud-ro5-alert{color:#b45309;background:#fffbeb;border:1px solid #fde68a}.theme-dark .hud-ro5-alert{color:#fde68a;background:#78350f;border-color:#b45309}.hud-titlebar-actions{align-items:center;gap:2px;display:flex}.hud-icon-btn{color:#64748b;cursor:pointer;background:0 0;border:none;border-radius:3px;justify-content:center;align-items:center;width:20px;height:20px;padding:0;transition:all .1s;display:inline-flex}.hud-icon-btn:hover{color:#0f172a;background:#e2e8f0}.theme-dark .hud-icon-btn:hover{color:#fff;background:#334155}.hud-close-btn:hover{color:#dc2626;background:#fee2e2}.theme-dark .hud-close-btn:hover{color:#fca5a5;background:#7f1d1d}.hud-collapsed-body{background:#fff;align-items:center;gap:6px;padding:4px 10px;display:flex}.theme-dark .hud-collapsed-body{background:#0f172a}.hud-sep-dot{color:#94a3b8;font-size:10px}.hud-mini-btn{color:#475569;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:3px;justify-content:center;align-items:center;width:18px;height:18px;display:inline-flex}.theme-dark .hud-mini-btn{color:#cbd5e1;background:#1e293b;border-color:#475569}.hud-body{background:#fff;flex-direction:column;display:flex}.theme-dark .hud-body{background:#0f172a}.hud-subheading{background:#fafafa;border-bottom:1px solid #f1f5f9;justify-content:space-between;align-items:center;padding:4px 8px;display:flex}.theme-dark .hud-subheading{background:#131d31;border-bottom-color:#1e293b}.hud-name-truncate{white-space:nowrap;text-overflow:ellipsis;max-width:190px;overflow:hidden}.hud-metrics-grid{background:#f8fafc;border-bottom:1px solid #f1f5f9;grid-template-columns:repeat(3,1fr);gap:4px;padding:6px 8px;display:grid}.theme-dark .hud-metrics-grid{background:#111a2e;border-bottom-color:#1e293b}.hud-metric-cell{background:#fff;border:1px solid #e2e8f0;border-radius:4px;flex-direction:column;padding:3px 6px;display:flex}.theme-dark .hud-metric-cell{background:#1e293b;border-color:#334155}.hud-metric-label{text-transform:uppercase;letter-spacing:.04em;color:#64748b;font-size:9px;font-weight:600}.hud-metric-val{color:#0f172a;font-size:11px;font-weight:600}.theme-dark .hud-metric-val{color:#f1f5f9}.hud-atom-inspector{border-bottom:1px solid #f1f5f9;flex-direction:column;gap:4px;padding:6px 8px;display:flex}.theme-dark .hud-atom-inspector{border-bottom-color:#1e293b}.hud-atom-header{justify-content:space-between;align-items:center;display:flex}.hud-tag-stereo{color:#1d4ed8;background:#eff6ff;border:1px solid #bfdbfe;border-radius:3px;padding:1px 4px;font-size:9.5px;font-weight:700}.theme-dark .hud-tag-stereo{color:#93c5fd;background:#172554;border-color:#1e40af}.hud-tag-hyb{color:#475569;background:#f1f5f9;border:1px solid #cbd5e1;border-radius:3px;padding:1px 4px;font-size:9.5px;font-weight:600}.theme-dark .hud-tag-hyb{color:#cbd5e1;background:#1e293b;border-color:#475569}.hud-nmr-row{background:#f8fafc;border:1px solid #f1f5f9;border-radius:4px;align-items:center;gap:12px;padding:3px 6px;font-size:10px;display:flex}.theme-dark .hud-nmr-row{background:#131d31;border-color:#1e293b}.hud-nmr-item{align-items:center;gap:4px;display:flex}.hud-nmr-label{color:#64748b;font-weight:700}.hud-nmr-val{color:#0f172a;font-weight:600}.theme-dark .hud-nmr-val{color:#f1f5f9}.hud-atom-chips-container{flex-direction:column;margin-top:2px;display:flex}.hud-atom-chips-scroll{scrollbar-width:thin;align-items:center;gap:3px;padding-bottom:2px;display:flex;overflow-x:auto}.hud-atom-chip{color:#334155;cursor:pointer;white-space:nowrap;background:#fff;border:1px solid #cbd5e1;border-radius:3px;justify-content:center;align-items:center;padding:1px 5px;font-size:10px;font-weight:600;transition:all .1s;display:inline-flex}.theme-dark .hud-atom-chip{color:#cbd5e1;background:#1e293b;border-color:#475569}.hud-atom-chip:hover,.hud-atom-chip.is-hovered{color:#1d4ed8;background:#eff6ff;border-color:#2563eb}.theme-dark .hud-atom-chip:hover,.theme-dark .hud-atom-chip.is-hovered{color:#93c5fd;background:#1e3a8a;border-color:#60a5fa}.hud-atom-chip.is-active,.hud-atom-chip.is-selected{color:#fff;background:#0f172a;border-color:#0f172a}.theme-dark .hud-atom-chip.is-active,.theme-dark .hud-atom-chip.is-selected{color:#0f172a;background:#f8fafc;border-color:#f8fafc}.hud-sub-idx{margin-left:1px;font-size:8px}.hud-actions-strip{background:#f8fafc;flex-wrap:wrap;align-items:center;gap:3px;padding:5px 8px;display:flex}.theme-dark .hud-actions-strip{background:#0d1527}.hud-action-btn{color:#334155;cursor:pointer;background:#fff;border:1px solid #cbd5e1;border-radius:3px;align-items:center;gap:3.5px;padding:3px 6px;font-size:10.5px;font-weight:500;transition:all .1s;display:inline-flex}.theme-dark .hud-action-btn{color:#e2e8f0;background:#1e293b;border-color:#475569}.hud-action-btn:hover{color:#0f172a;background:#f1f5f9;border-color:#94a3b8}.theme-dark .hud-action-btn:hover{color:#fff;background:#243046;border-color:#64748b}.hud-action-fix{color:#b45309;background:#fffbeb;border-color:#fde68a}.theme-dark .hud-action-fix{color:#fde68a;background:#451a03;border-color:#b45309}
