.chemg-chat{color:#0f172a}.chemg-chat a,.chemg-chat button,.chemg-chat summary{-webkit-tap-highlight-color:transparent}.chemg-chat a:focus-visible,.chemg-chat button:focus-visible,.chemg-chat summary:focus-visible{outline:2px solid #6366f1;outline-offset:3px}.chemg-chat .chat-icon-button,.chemg-chat .chat-primary-button,.chemg-chat .chat-secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 11px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#475569;font-size:13px;font-weight:500;transition:background-color .15s}.chemg-chat .chat-icon-button{width:36px;padding:8px;border-color:transparent}.chemg-chat .chat-icon-button:hover,.chemg-chat .chat-secondary-button:hover{background:#f1f5f9}.chemg-chat .chat-primary-button{border-color:#4f46e5;background:#4f46e5;color:#fff}.chemg-chat .chat-primary-button:hover{background:#4338ca}.chemg-chat button:disabled{cursor:not-allowed;opacity:.5}.chemg-chat .chat-field{width:100%;min-width:0;min-height:40px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;padding:8px 10px;font-size:14px;font-weight:400}.chemg-chat .chat-field:focus-visible{outline:2px solid #6366f1;outline-offset:1px}.chemg-chat .chat-tool-result{min-width:0;border:1px solid #e2e8f0;border-radius:14px;background:#fff;padding:18px}.chemg-chat .chat-result-answer{margin:0;overflow-wrap:anywhere;font-size:22px;line-height:1.3;font-weight:500;font-variant-numeric:tabular-nums;color:#0f172a}.chemg-chat .chat-result-answer-text{font-size:18px}.chemg-chat .chat-result-answer sub{font-size:.7em}.chemg-chat .chat-result-unit{margin-left:.3em;font-size:.7em;font-weight:400;color:#64748b}.chemg-chat .chat-tool-result-compact{padding:14px 16px}.chemg-chat .chat-tool-result-compact .chat-result-details{margin-top:12px;padding-top:8px}.chemg-chat .chat-tool-status{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;padding:8px 12px;font-size:13px;color:#334155}.chemg-chat .chat-tool-status-details{margin-left:auto;font-size:12px;color:#64748b}.chemg-chat .chat-tool-status-details[open]{flex-basis:100%;margin-left:0}.chemg-chat .chat-tool-status-details summary{cursor:pointer}.chemg-chat .chat-result-answer .chat-markdown p{margin:0}.chemg-chat .chat-result-details{margin-top:16px;padding-top:12px;border-top:1px solid #f1f5f9;font-size:12px;color:#64748b}.chemg-chat .chat-result-details summary{cursor:pointer;padding-block:4px}.chemg-chat .chat-result-json{max-height:360px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:8px;background:#f8fafc;padding:12px;color:#475569;font-size:12px}.chemg-chat .chat-structured-result{overflow-wrap:anywhere;font-size:14px}.chemg-chat .chat-structured-result .cn-tool-values{display:grid;gap:12px;margin:0}.chemg-chat .chat-structured-result .cn-tool-values>div{min-width:0}.chemg-chat .chat-structured-result dt{margin-bottom:3px;color:#64748b;font-size:12px}.chemg-chat .chat-structured-result dd{margin-left:0}.chemg-chat .chat-structured-result ul{padding-left:18px}.chemg-chat .chat-structured-result details{margin-top:12px}.chemg-chat .chat-structured-result summary{cursor:pointer;font-size:12px;color:#64748b}.chemg-chat .chat-structured-result pre{max-height:300px;overflow:auto;font-size:12px}.chemg-chat .chat-structured-result .cn-mol-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.chemg-chat .chat-structured-result .cn-action-pill{min-height:36px;border:1px solid #e2e8f0;border-radius:8px;padding:5px 9px;font-size:12px}.chemg-chat .chat-structured-result .cn-action-pill[aria-pressed=true]{background:#eef2ff;color:#4338ca}.chemg-chat .chat-structured-result table{width:100%;font-size:12px}.chemg-chat .chat-structured-result td,.chemg-chat .chat-structured-result th{padding:6px 8px;text-align:left;border-bottom:1px solid #e2e8f0}.chemg-chat .chat-structured-result th{color:#64748b;font-weight:500}.chemg-chat .chat-structured-result .cn-tool-table table{border-collapse:collapse;font-size:13px}.chemg-chat .chat-markdown{overflow-wrap:anywhere}.chemg-chat .chat-markdown pre,.chemg-chat .chat-markdown-table{max-width:100%;overflow-x:auto}.chemg-chat .chat-markdown-figure{display:block;margin:12px 0}.chemg-chat .chat-markdown-figure img{display:block;max-width:min(100%,360px);height:auto;border:1px solid #e2e8f0;border-radius:12px;background:#fff;padding:8px}.chemg-chat .chat-molecule{display:grid;gap:14px}.chemg-chat .chat-molecule-canvas{display:flex;align-items:center;justify-content:center;min-height:160px;border:1px solid #f1f5f9;border-radius:12px;background:#fff;padding:12px}.chemg-chat .chat-molecule-canvas img{display:block;width:auto;max-width:100%;max-height:320px;height:auto;object-fit:contain}.chemg-chat .chat-molecule-facts{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 24px;margin:0;font-size:14px}.chemg-chat .chat-molecule-facts>div{display:contents}.chemg-chat .chat-molecule-facts dt{align-self:center;color:#64748b;font-size:12px}.chemg-chat .chat-molecule-facts dd{margin:0;min-width:0;align-self:center}.chemg-chat .chat-molecule-smiles{overflow-x:auto;white-space:nowrap;border-radius:6px;background:#f8fafc;padding:3px 7px;color:#334155;font-size:13px}.chemg-chat .chat-tool-activity{margin-top:12px;font-size:12px;color:#64748b}.chemg-chat .chat-tool-activity summary{display:inline-flex;align-items:center;gap:6px;cursor:pointer;border-radius:999px;border:1px solid #e2e8f0;padding:3px 10px;list-style:none}.chemg-chat .chat-tool-activity summary::-webkit-details-marker{display:none}.chemg-chat .chat-tool-activity summary:hover{background:#f8fafc}.chemg-chat .chat-tool-activity ol{display:grid;gap:8px;margin:8px 0 0;padding:0;list-style:none}.chemg-chat .chat-tool-activity-name{display:block;margin-bottom:4px;font-weight:500;color:#334155}.chemg-chat .chat-tool-activity .chat-result-json{max-height:200px;margin:0}.chemg-chat .chat-notice{display:flex;gap:8px;align-items:flex-start;border:1px solid #fecdd3;border-radius:10px;background:#fff1f2;padding:10px 12px;color:#9f1239;font-size:14px;line-height:1.5}.chemg-chat .chat-result-symbol{margin-right:.35em;font-weight:400;color:#64748b}.chemg-chat .chat-result-answer sup{font-size:.6em}.chemg-chat .chat-lab-card{padding:14px 16px}.chemg-chat .chat-lab-icon{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;background:#eef2ff;color:#4f46e5}.chemg-chat .chat-lab-instructions{margin:0;border-left:2px solid #e2e8f0;padding-left:10px;font-size:13px;line-height:1.55;color:#475569;white-space:pre-wrap;overflow-wrap:anywhere}.chemg-chat .chat-lab-list{display:grid;margin:0;padding:0;list-style:none;border:1px solid #f1f5f9;border-radius:10px}.chemg-chat .chat-lab-list>li{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:8px 12px;font-size:14px}.chemg-chat .chat-lab-list>li+li{border-top:1px solid #f1f5f9}.chemg-chat .chat-lab-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}.chemg-chat .chat-lab-chip{display:inline-flex;align-items:center;gap:4px;border:1px solid #e2e8f0;border-radius:999px;padding:2px 9px;font-size:12px;color:#64748b}.chemg-chat .chat-lab-chip-ok{border-color:#a7f3d0;background:#ecfdf5;color:#047857}.chemg-chat .chat-lab-chip-warn{border-color:#fde68a;background:#fffbeb;color:#92400e}.chemg-chat .chat-equation{display:inline-flex;flex-wrap:wrap;align-items:baseline;column-gap:.4em;row-gap:2px}.chemg-chat .chat-equation sub,.chemg-chat .chat-equation sup{font-size:.68em}.chemg-chat .chat-equation-op{color:#64748b}.chemg-chat .chat-equation-coef{margin-right:.08em}.chemg-chat .chat-fact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px 16px;margin:0}.chemg-chat .chat-fact-grid dt{margin-bottom:2px;font-size:12px;color:#64748b}.chemg-chat .chat-fact-grid dd{margin:0;font-size:14px;color:#1e293b;overflow-wrap:anywhere}.chemg-chat .chat-inline-details summary{cursor:pointer;font-size:13px;color:#475569}@media (pointer:coarse){.chemg-chat .chat-icon-button,.chemg-chat .chat-primary-button,.chemg-chat .chat-secondary-button,.chemg-chat .cn-action-pill{min-height:44px}.chemg-chat .chat-icon-button{width:44px}.chemg-chat .chat-field{min-height:44px;font-size:16px}}@media (max-width:480px){.chemg-chat .chat-tool-result{padding:14px}}@media (prefers-reduced-motion:reduce){.chemg-chat *{scroll-behavior:auto!important}}