/* Chemical Structure Editor. Only chemical_structure_editor.html links this file. */
[data-tool=chemical_structure_editor]{--ce-bg:#1a1527;--ce-deep:#120e1c;--ce-card:#241f33;--ce-line:#3d3358;--ce-purple:#6f5686;--ce-lilac:#c8a2ff;--ce-gold:#f6cd63;--ce-text:#eadcf7;--ce-mute:#b8abd2;--ce-red:#ff8a9a;--ce-green:#7fe0b0;max-width:1440px;margin-inline:auto;color:var(--ce-text);font-size:14px}
[data-tool=chemical_structure_editor] *{box-sizing:border-box}
[data-tool=chemical_structure_editor] [hidden]{display:none!important}
[data-tool=chemical_structure_editor] button{font:inherit;cursor:pointer}
[data-tool=chemical_structure_editor] :is(input,select,textarea){font:inherit;color:var(--ce-text);background:var(--ce-deep);border:1px solid var(--ce-line);border-radius:8px;padding:7px 9px;min-width:0;max-width:100%}
[data-tool=chemical_structure_editor] input[type=checkbox]{accent-color:var(--ce-gold)}
[data-tool=chemical_structure_editor] input[type=color]{padding:2px;height:34px;width:46px}
[data-tool=chemical_structure_editor] :is(input,select,button,textarea):focus-visible{outline:2px solid var(--ce-gold);outline-offset:1px}

[data-tool=chemical_structure_editor] .ce-hero{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:28px;align-items:center;padding:28px 32px;border:1px solid var(--ce-purple);border-radius:20px;background:radial-gradient(ellipse at 92% 0%,#9b6fe040,transparent 55%),radial-gradient(ellipse at 0% 100%,#f6cd6318,transparent 50%),linear-gradient(160deg,#2d2640,#242032);margin:0 0 14px;text-align:left;box-shadow:0 14px 40px #0006}
[data-tool=chemical_structure_editor] .ce-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:12px;letter-spacing:1.3px;text-transform:uppercase;color:var(--ce-gold);font-weight:700;margin-bottom:8px}
[data-tool=chemical_structure_editor] .ce-eyebrow i{width:9px;height:9px;border-radius:50%;background:var(--ce-gold);animation:ce-ping 2s infinite}
@keyframes ce-ping{0%{box-shadow:0 0 0 0 #f6cd6399}80%,100%{box-shadow:0 0 0 10px #f6cd6300}}
[data-tool=chemical_structure_editor] .ce-hero h1{margin:0;font-size:2.2rem;line-height:1.12;color:#fff;text-align:left}
[data-tool=chemical_structure_editor] .ce-hero p{margin:10px 0 0;color:#e1cfea;max-width:68ch;line-height:1.6;text-align:left}
[data-tool=chemical_structure_editor] .ce-chips{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:16px 0 0}
[data-tool=chemical_structure_editor] .ce-chips li{padding:6px 12px;border:1px solid #756087;border-radius:999px;font-size:13px;background:#1c1729aa}
[data-tool=chemical_structure_editor] .ce-chips li:first-child{border-color:var(--ce-gold);color:var(--ce-gold)}
[data-tool=chemical_structure_editor] .ce-live{padding:14px;border-radius:16px;border:1px solid var(--ce-line);background:#1a1527cc}
[data-tool=chemical_structure_editor] .ce-live-head{display:flex;justify-content:space-between;gap:10px;margin-bottom:8px}
[data-tool=chemical_structure_editor] .ce-live-head span{font-size:11px;letter-spacing:1.2px;text-transform:uppercase;color:var(--ce-mute);font-weight:700}
[data-tool=chemical_structure_editor] .ce-live-head b{color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
[data-tool=chemical_structure_editor] #ceLiveCanvas{display:block;width:100%;height:auto;aspect-ratio:64/38;border-radius:10px;background:#15111f}
[data-tool=chemical_structure_editor] .ce-live-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:10px 0 0}
[data-tool=chemical_structure_editor] .ce-live-stats div{background:var(--ce-deep);border-radius:8px;padding:6px 8px;min-width:0}
[data-tool=chemical_structure_editor] .ce-live-stats dt{font-size:10px;text-transform:uppercase;letter-spacing:.8px;color:var(--ce-mute)}
[data-tool=chemical_structure_editor] .ce-live-stats dd{margin:2px 0 0;font-weight:800;font-size:13px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

[data-tool=chemical_structure_editor] .ce-ws{border:1px solid var(--ce-line);border-radius:18px;background:var(--ce-bg);overflow:hidden;box-shadow:0 14px 40px #0005}
[data-tool=chemical_structure_editor] .ce-topbar{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:flex-end;padding:10px 12px;border-bottom:1px solid var(--ce-line);background:linear-gradient(180deg,#2a2340,#221c31)}
[data-tool=chemical_structure_editor] .ce-field{display:flex;flex-direction:column;gap:3px;min-width:0}
[data-tool=chemical_structure_editor] .ce-field>span{font-size:10px;text-transform:uppercase;letter-spacing:.9px;color:var(--ce-mute);font-weight:700}
[data-tool=chemical_structure_editor] .ce-inline{flex-direction:row;align-items:center;gap:6px}
[data-tool=chemical_structure_editor] .ce-name input{width:240px;font-weight:700}
[data-tool=chemical_structure_editor] .ce-top-actions{display:flex;flex-wrap:wrap;gap:6px;margin-left:auto;align-items:center}
[data-tool=chemical_structure_editor] :is(.ce-btn,.ce-ib){border:1px solid var(--ce-line);background:#2c2540;color:var(--ce-text);border-radius:8px;padding:7px 11px;line-height:1.1;transition:background .15s,border-color .15s,transform .1s}
[data-tool=chemical_structure_editor] .ce-ib{min-width:34px;padding:7px 8px}
[data-tool=chemical_structure_editor] :is(.ce-btn,.ce-ib):hover{border-color:var(--ce-lilac);background:#352d4d}
[data-tool=chemical_structure_editor] :is(.ce-btn,.ce-ib,.ce-primary):active{transform:scale(.96)}
[data-tool=chemical_structure_editor] :is(.ce-btn,.ce-ib):disabled{opacity:.45;cursor:not-allowed}
[data-tool=chemical_structure_editor] .ce-primary{border:0;background:var(--ce-gold);color:#241f33;font-weight:800;border-radius:9px;padding:8px 14px}
[data-tool=chemical_structure_editor] .ce-btn.is-on{background:var(--ce-gold);color:#241f33;border-color:var(--ce-gold)}

[data-tool=chemical_structure_editor] .ce-main{display:grid;grid-template-columns:250px minmax(0,1fr) 300px;height:680px}
[data-tool=chemical_structure_editor] .ce-list{display:flex;flex-direction:column;border-right:1px solid var(--ce-line);background:#1d1829;min-height:0}
[data-tool=chemical_structure_editor] .ce-list-head{display:flex;gap:6px;padding:8px;border-bottom:1px solid var(--ce-line)}
[data-tool=chemical_structure_editor] .ce-list-head input{flex:1}
[data-tool=chemical_structure_editor] .ce-events{list-style:none;margin:0;padding:6px;overflow:auto;flex:1;min-height:0}
[data-tool=chemical_structure_editor] .ce-events li{display:grid;grid-template-columns:6px minmax(0,1fr);gap:8px;padding:7px 8px;border-radius:9px;cursor:pointer;border:1px solid transparent;animation:ce-in .25s ease both}
@keyframes ce-in{from{opacity:0;transform:translateX(-6px)}}
[data-tool=chemical_structure_editor] .ce-events li:hover{background:#2a2340}
[data-tool=chemical_structure_editor] .ce-events li[aria-selected=true]{background:#2f2747;border-color:var(--ce-gold)}
[data-tool=chemical_structure_editor] .ce-events li i{border-radius:3px}
[data-tool=chemical_structure_editor] .ce-events b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#fff;font-size:13px}
[data-tool=chemical_structure_editor] .ce-events small{display:block;color:var(--ce-mute);font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
[data-tool=chemical_structure_editor] .ce-events small.bad{color:var(--ce-red)}
[data-tool=chemical_structure_editor] .ce-list-foot{margin:0;padding:8px 10px;border-top:1px solid var(--ce-line);font-size:12px;color:var(--ce-mute)}

[data-tool=chemical_structure_editor] .ce-stage-col{display:flex;flex-direction:column;min-width:0;min-height:0}
[data-tool=chemical_structure_editor] .ce-stage{position:relative;flex:1;min-height:0;overflow:hidden;background:#15111f;cursor:grab;touch-action:none}
[data-tool=chemical_structure_editor] .ce-stage.is-drag{cursor:grabbing}
[data-tool=chemical_structure_editor] .ce-stage.is-ev{cursor:ew-resize}
[data-tool=chemical_structure_editor] #ceCanvas{display:block;width:100%;height:100%}
[data-tool=chemical_structure_editor] .ce-zoom{position:absolute;right:10px;bottom:10px;display:flex;gap:4px}
[data-tool=chemical_structure_editor] .ce-zoom .ce-ib{background:#2c2540e6}
[data-tool=chemical_structure_editor] .ce-range{position:absolute;left:10px;bottom:12px;padding:4px 9px;border-radius:999px;background:#120e1ccc;font-size:12px;color:var(--ce-mute);pointer-events:none}
[data-tool=chemical_structure_editor] .ce-tip{position:absolute;max-width:280px;padding:9px 11px;border-radius:10px;background:#120e1cf2;border:1px solid var(--ce-line);font-size:12.5px;line-height:1.45;pointer-events:none;box-shadow:0 8px 24px #0008;z-index:2}
[data-tool=chemical_structure_editor] .ce-tip b{color:#fff;display:block}
[data-tool=chemical_structure_editor] .ce-tip em{color:var(--ce-gold);font-style:normal;font-size:11.5px}
[data-tool=chemical_structure_editor] .ce-hint{padding:7px 12px;border-top:1px solid var(--ce-line);font-size:12px;color:var(--ce-mute);background:#1d1829}

[data-tool=chemical_structure_editor] .ce-inspector{border-left:1px solid var(--ce-line);background:#1d1829;overflow:auto;padding:10px;min-height:0}
[data-tool=chemical_structure_editor] .ce-seg{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:3px;border-radius:10px;background:var(--ce-deep);margin-bottom:10px}
[data-tool=chemical_structure_editor] .ce-seg button{border:0;border-radius:8px;padding:7px;background:transparent;color:var(--ce-mute);font-weight:700}
[data-tool=chemical_structure_editor] .ce-seg button[aria-selected=true]{background:var(--ce-purple);color:#fff}
[data-tool=chemical_structure_editor] .ce-form{display:grid;gap:9px}
[data-tool=chemical_structure_editor] .ce-form .ce-field input,[data-tool=chemical_structure_editor] .ce-form .ce-field select,[data-tool=chemical_structure_editor] .ce-form textarea{width:100%}
[data-tool=chemical_structure_editor] .ce-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:end}
[data-tool=chemical_structure_editor] .ce-parsed{font-size:11.5px;color:var(--ce-green);min-height:15px}
[data-tool=chemical_structure_editor] .ce-parsed.bad{color:var(--ce-red)}
[data-tool=chemical_structure_editor] .ce-h3{margin:12px 0 2px;font-size:11px;text-transform:uppercase;letter-spacing:1px;color:var(--ce-mute)}
[data-tool=chemical_structure_editor] .ce-item{display:grid;grid-template-columns:40px minmax(0,1fr) 30px;gap:6px;align-items:center}
[data-tool=chemical_structure_editor] .ce-item.era{grid-template-columns:40px minmax(0,1fr) 30px;padding:6px;border:1px solid var(--ce-line);border-radius:9px}
[data-tool=chemical_structure_editor] .ce-item.era .ce-row{grid-column:1/-1}
[data-tool=chemical_structure_editor] .ce-item input[type=color]{width:40px}
[data-tool=chemical_structure_editor] .ce-x{border:1px solid var(--ce-line);background:transparent;color:var(--ce-red);border-radius:7px;height:32px}
[data-tool=chemical_structure_editor] .ce-imgrow{display:flex;gap:8px;align-items:center}
[data-tool=chemical_structure_editor] .ce-imgrow img{width:48px;height:48px;object-fit:cover;border-radius:8px;border:1px solid var(--ce-line)}
[data-tool=chemical_structure_editor] .ce-icons{display:flex;flex-wrap:wrap;gap:4px}
[data-tool=chemical_structure_editor] .ce-icons button{width:30px;height:30px;border:1px solid var(--ce-line);border-radius:7px;background:#2c2540;padding:0}
[data-tool=chemical_structure_editor] .ce-icons button[aria-pressed=true]{border-color:var(--ce-gold);background:#3a3150}
[data-tool=chemical_structure_editor] .ce-empty{color:var(--ce-mute);line-height:1.6;padding:6px 2px}
[data-tool=chemical_structure_editor] .ce-check{display:flex;gap:6px;align-items:center;font-size:13px}
[data-tool=chemical_structure_editor] .ce-grow{flex:1}

[data-tool=chemical_structure_editor] .ce-exports{margin-top:16px;padding:20px;border:1px solid var(--ce-line);border-radius:18px;background:var(--ce-bg)}
[data-tool=chemical_structure_editor] .ce-exports-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;align-items:flex-end}
[data-tool=chemical_structure_editor] .ce-exports h2{margin:0;color:#fff;font-size:1.35rem}
[data-tool=chemical_structure_editor] .ce-exports-head p{margin:4px 0 0;color:var(--ce-mute);max-width:70ch}
[data-tool=chemical_structure_editor] .ce-ex-opts{display:flex;flex-wrap:wrap;gap:10px}
[data-tool=chemical_structure_editor] .ce-export-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px;margin-top:14px}
[data-tool=chemical_structure_editor] .ce-ex{display:grid;grid-template-columns:52px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;text-align:left;padding:11px;border:1px solid var(--ce-line);border-radius:12px;background:var(--ce-card);color:var(--ce-text);transition:border-color .15s,transform .15s}
[data-tool=chemical_structure_editor] .ce-ex:hover:not(:disabled){border-color:var(--ce-gold);transform:translateY(-2px)}
[data-tool=chemical_structure_editor] .ce-ex:disabled{opacity:.45;cursor:not-allowed}
[data-tool=chemical_structure_editor] .ce-ex i{grid-row:1/3;display:grid;place-items:center;border-radius:9px;font-style:normal;font-weight:900;font-size:11.5px;background:#3a3150;color:var(--ce-lilac)}
[data-tool=chemical_structure_editor] .ce-ex[data-kind=img] i{background:#4a3a1f;color:var(--ce-gold)}
[data-tool=chemical_structure_editor] .ce-ex[data-kind=data] i{background:#1f3d33;color:var(--ce-green)}
[data-tool=chemical_structure_editor] .ce-ex b{color:#fff}
[data-tool=chemical_structure_editor] .ce-ex small{color:var(--ce-mute);font-size:12px}
[data-tool=chemical_structure_editor] .ce-progress{display:flex;gap:10px;align-items:center;margin-top:12px}
[data-tool=chemical_structure_editor] .ce-progress-bar{flex:1;height:8px;border-radius:9px;background:var(--ce-deep);overflow:hidden}
[data-tool=chemical_structure_editor] .ce-progress-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--ce-lilac),var(--ce-gold));transition:width .15s}
[data-tool=chemical_structure_editor] .ce-status{min-height:20px;margin:10px 0 0;color:var(--ce-mute)}
[data-tool=chemical_structure_editor] .ce-status.ok{color:var(--ce-green)}
[data-tool=chemical_structure_editor] .ce-status.warn{color:var(--ce-gold)}
[data-tool=chemical_structure_editor] .ce-status.err{color:var(--ce-red)}

[data-tool=chemical_structure_editor] .ce-dialog{border:1px solid var(--ce-purple);border-radius:16px;background:#1d1829;color:var(--ce-text);padding:20px;width:min(640px,calc(100vw - 32px));box-shadow:0 20px 60px #000a}
[data-tool=chemical_structure_editor] .ce-dialog::backdrop{background:#0009}
[data-tool=chemical_structure_editor] .ce-dialog h2{margin:0 0 8px;color:#fff;font-size:1.25rem}
[data-tool=chemical_structure_editor] .ce-dialog p{margin:6px 0;color:var(--ce-mute)}
[data-tool=chemical_structure_editor] .ce-sample{margin:0 0 8px;padding:9px 11px;border-radius:9px;background:var(--ce-deep);font-size:12.5px;color:var(--ce-lilac);white-space:pre-wrap}
[data-tool=chemical_structure_editor] #ceImportText{width:100%;font-family:ui-monospace,Consolas,monospace;font-size:13px}
[data-tool=chemical_structure_editor] .ce-import-note{min-height:18px;font-size:12.5px}
[data-tool=chemical_structure_editor] .ce-dialog-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px}
[data-tool=chemical_structure_editor] .ce-keys-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px 18px;margin:8px 0 14px}
[data-tool=chemical_structure_editor] .ce-keys-grid div{display:flex;justify-content:space-between;gap:10px;padding:5px 0;border-bottom:1px solid #2c2540}
[data-tool=chemical_structure_editor] kbd{background:var(--ce-deep);border:1px solid var(--ce-line);border-radius:6px;padding:1px 7px;font-size:12px;white-space:nowrap}

@media (max-width:1100px){
 [data-tool=chemical_structure_editor] .ce-hero{grid-template-columns:1fr}
 [data-tool=chemical_structure_editor] .ce-main{grid-template-columns:220px minmax(0,1fr);grid-template-rows:600px auto;height:auto}
 [data-tool=chemical_structure_editor] .ce-inspector{grid-column:1/-1;border-left:0;border-top:1px solid var(--ce-line)}
}
@media (max-width:720px){
 [data-tool=chemical_structure_editor] .ce-hero{padding:20px 16px}
 [data-tool=chemical_structure_editor] .ce-hero h1{font-size:1.7rem}
 [data-tool=chemical_structure_editor] .ce-main{grid-template-columns:1fr;grid-template-rows:auto 480px auto}
 [data-tool=chemical_structure_editor] .ce-list{border-right:0;border-bottom:1px solid var(--ce-line);max-height:260px}
 [data-tool=chemical_structure_editor] .ce-name,[data-tool=chemical_structure_editor] .ce-name input{width:100%}
 [data-tool=chemical_structure_editor] .ce-topbar>.ce-field{flex:1 1 100%}
 [data-tool=chemical_structure_editor] .ce-top-actions{margin-left:0}
 [data-tool=chemical_structure_editor] .ce-keys-grid{grid-template-columns:1fr}
 [data-tool=chemical_structure_editor] .ce-exports{padding:14px}
 [data-tool=chemical_structure_editor] .ce-hint{display:none}
}
@media (prefers-reduced-motion:reduce){[data-tool=chemical_structure_editor] *{animation:none!important;transition:none!important}}

/* editor-specific parts */
[data-tool=chemical_structure_editor] .ce-main{grid-template-columns:210px minmax(0,1fr) 300px}
[data-tool=chemical_structure_editor] .ce-smiles{flex:1 1 280px}
[data-tool=chemical_structure_editor] .ce-smiles-row{display:flex;gap:6px}
[data-tool=chemical_structure_editor] .ce-smiles-row input{flex:1;font-family:ui-monospace,Consolas,monospace}
[data-tool=chemical_structure_editor] .ce-palette{border-right:1px solid var(--ce-line);background:#1d1829;overflow:auto;padding:10px;min-height:0}
[data-tool=chemical_structure_editor] .ce-group{display:grid;grid-template-columns:1fr 1fr;gap:5px}
[data-tool=chemical_structure_editor] .ce-tool,[data-tool=chemical_structure_editor] .ce-atom,[data-tool=chemical_structure_editor] .ce-ring{border:1px solid var(--ce-line);background:#2c2540;color:var(--ce-text);border-radius:8px;padding:7px 6px;display:flex;gap:6px;align-items:center;justify-content:center;font-size:12.5px;transition:background .15s,border-color .15s,transform .1s}
[data-tool=chemical_structure_editor] :is(.ce-tool,.ce-atom,.ce-ring):hover{border-color:var(--ce-lilac)}
[data-tool=chemical_structure_editor] :is(.ce-tool,.ce-atom,.ce-ring)[aria-checked=true]{background:var(--ce-gold);color:#241f33;border-color:var(--ce-gold);font-weight:800}
[data-tool=chemical_structure_editor] .ce-tool svg{width:22px;height:16px;flex:none}
[data-tool=chemical_structure_editor] .ce-atoms{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}
[data-tool=chemical_structure_editor] .ce-atom{font-weight:800;font-size:14px;padding:7px 0}
[data-tool=chemical_structure_editor] .ce-rings{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
[data-tool=chemical_structure_editor] .ce-ring{flex-direction:column;gap:2px;padding:5px 2px;font-size:10.5px}
[data-tool=chemical_structure_editor] .ce-ring svg{width:30px;height:28px}
[data-tool=chemical_structure_editor] .ce-other{margin-top:8px}
[data-tool=chemical_structure_editor] .ce-other input{width:100%}
[data-tool=chemical_structure_editor] .ce-stage{cursor:crosshair}
[data-tool=chemical_structure_editor] .ce-stage.is-select{cursor:default}
[data-tool=chemical_structure_editor] .ce-stage.is-erase{cursor:not-allowed}
[data-tool=chemical_structure_editor] .ce-empty{position:absolute;inset:0;display:grid;place-content:center;text-align:center;gap:6px;pointer-events:none;color:var(--ce-mute);padding:20px}
[data-tool=chemical_structure_editor] .ce-empty b{color:#fff;font-size:1.2rem}
[data-tool=chemical_structure_editor] .ce-props{display:grid;grid-template-columns:1fr 1fr;gap:6px}
[data-tool=chemical_structure_editor] .ce-props div{background:var(--ce-deep);border-radius:9px;padding:7px 9px;min-width:0;animation:ce-in .25s ease both}
@keyframes ce-in{from{opacity:.3}}
[data-tool=chemical_structure_editor] .ce-props div.wide{grid-column:1/-1}
[data-tool=chemical_structure_editor] .ce-props dt{font-size:10px;text-transform:uppercase;letter-spacing:.8px;color:var(--ce-mute)}
[data-tool=chemical_structure_editor] .ce-props dd{margin:2px 0 0;font-weight:800;color:#fff;font-size:14px;overflow-wrap:anywhere}
[data-tool=chemical_structure_editor] .ce-props dd.big{font-size:20px;color:var(--ce-gold)}
[data-tool=chemical_structure_editor] .ce-smiles-out{display:flex;gap:6px;align-items:flex-start}
[data-tool=chemical_structure_editor] .ce-smiles-out code{flex:1;min-width:0;background:var(--ce-deep);border-radius:8px;padding:7px 9px;font-size:12.5px;overflow-wrap:anywhere;color:var(--ce-lilac);max-height:90px;overflow:auto}
[data-tool=chemical_structure_editor] .ce-warn{margin-top:8px;padding:8px 10px;border-radius:9px;border:1px solid #ff8a9a66;background:#ff8a9a14;color:var(--ce-red);font-size:12.5px;line-height:1.45}
[data-tool=chemical_structure_editor] .ce-comp{display:grid;gap:5px}
[data-tool=chemical_structure_editor] .ce-comp-row{display:grid;grid-template-columns:30px minmax(0,1fr) 58px;gap:8px;align-items:center;font-size:12.5px}
[data-tool=chemical_structure_editor] .ce-comp-row b{color:#fff}
[data-tool=chemical_structure_editor] .ce-comp-row span{height:8px;border-radius:6px;background:var(--ce-deep);overflow:hidden}
[data-tool=chemical_structure_editor] .ce-comp-row i{display:block;height:100%;border-radius:6px;transition:width .35s ease}
[data-tool=chemical_structure_editor] .ce-comp-row em{font-style:normal;text-align:right;color:var(--ce-mute)}
[data-tool=chemical_structure_editor] .ce-display{display:grid;gap:6px}
[data-tool=chemical_structure_editor] .ce-sel{margin-top:12px;padding:10px;border:1px solid var(--ce-line);border-radius:10px;display:grid;gap:8px}
[data-tool=chemical_structure_editor] .ce-sel .ce-row{grid-template-columns:1fr 1fr}
@media (max-width:1100px){[data-tool=chemical_structure_editor] .ce-main{grid-template-columns:190px minmax(0,1fr);grid-template-rows:600px auto}}
@media (max-width:720px){
 [data-tool=chemical_structure_editor] .ce-main{grid-template-columns:1fr;grid-template-rows:auto 460px auto}
 [data-tool=chemical_structure_editor] .ce-palette{border-right:0;border-bottom:1px solid var(--ce-line);max-height:none;display:grid;gap:6px}
 [data-tool=chemical_structure_editor] .ce-group{grid-template-columns:repeat(4,1fr)}
 [data-tool=chemical_structure_editor] .ce-atoms{grid-template-columns:repeat(6,1fr)}
 [data-tool=chemical_structure_editor] .ce-rings{grid-template-columns:repeat(6,1fr)}
 [data-tool=chemical_structure_editor] .ce-ring span:last-child{display:none}
 [data-tool=chemical_structure_editor] .ce-live-stats{grid-template-columns:1fr 1fr}
 [data-tool=chemical_structure_editor] .ce-smiles{flex:1 1 100%}
}
[data-tool=chemical_structure_editor] .ce-props div.wide2{grid-column:1/-1}
