.ency-hero .structure-card{background:var(--soft);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.structure-open{display:block;position:relative;background:#f5f5f5;text-decoration:none}
.ency-hero .structure-card img{height:auto;width:100%;object-fit:contain;display:block}
.structure-expand{position:absolute;right:12px;bottom:12px;padding:7px 11px;border-radius:6px;background:#102c36;color:#fff;font-size:.7rem;box-shadow:0 2px 8px #0002}
.structure-open:hover .structure-expand,.structure-open:focus-visible .structure-expand{background:#17664f}
.ency-hero .structure-card figcaption{position:static;display:grid;gap:8px;color:var(--muted);background:transparent;padding:16px;margin:0;font-size:.72rem;line-height:1.5}
.structure-card figcaption strong{color:var(--ink);font-size:.8rem}.structure-card figcaption a{color:var(--green);text-decoration:underline;text-underline-offset:3px}
.structure-viewing{overflow:hidden}
#structure-dialog{width:min(1120px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--ink);box-shadow:0 22px 80px #0005}
#structure-dialog::backdrop{background:#071a26cf;backdrop-filter:blur(5px)}
.structure-toolbar{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;border-bottom:1px solid var(--line)}
.structure-toolbar h2{margin:2px 0;font-size:1.35rem}.structure-toolbar .eyebrow{margin:0;font-size:.65rem}
#structure-close{border:1px solid var(--line);border-radius:8px;background:var(--soft);color:var(--ink);width:44px;height:44px;cursor:pointer}
.structure-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;padding:12px 22px;background:var(--soft);font-size:.8rem}
.structure-actions a{color:var(--green)}.structure-actions button{padding:9px 13px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:6px;cursor:pointer;min-height:40px}
.structure-canvas{overflow:auto;max-height:65dvh;background:#f5f5f5}.structure-canvas img{display:block;width:100%;height:auto;max-height:65dvh;object-fit:contain;margin:auto}
.structure-canvas.is-zoomed img{width:1600px;max-width:none;max-height:none;min-width:1600px}
.structure-note{padding:14px 22px;margin:0;font-size:.8rem;line-height:1.5;color:var(--muted)}
@media(max-width:600px){#structure-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.structure-toolbar,.structure-actions{padding:12px 14px}.structure-note{padding:14px}.structure-toolbar h2{font-size:1.1rem}}
.structure-card .button{font-size:.8rem;justify-content:center;padding:10px}.structure-actions button[aria-pressed="true"]{background:var(--green);color:var(--paper)}#structure-zoom{margin:10px 20px;padding:7px 12px;border:1px solid var(--line);border-radius:5px;background:var(--soft);color:var(--ink)}
.molecule-controls{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:12px 20px}.molecule-controls label{display:flex;gap:8px;align-items:center;font-size:.8rem}.molecule-controls button,.molecule-controls select{background:var(--soft);border:1px solid var(--line);border-radius:6px;color:var(--ink);padding:8px 11px;font-size:.8rem;min-height:42px}.molecule-controls button[aria-pressed="true"]{border-color:var(--green)}
#molecule-stage{position:relative;height:min(55dvh,560px);min-height:260px;background:#102731;touch-action:none;overflow:hidden}#molecule-stage canvas{display:block;outline:none}.model-status{margin:0;padding:8px 20px;font-size:.8rem;font-weight:600;background:var(--soft)}.model-legend,.model-help{font-size:.75rem;margin:0;padding:8px 20px;color:var(--muted)}#model-provenance{padding-top:0;font-size:.72rem}
#model-provenance a{color:var(--green);text-decoration:underline}
