.md-ptm{border-top:1px solid var(--border);padding:12px 0;margin:12px 0;min-width:0}
.md-ptm summary{cursor:pointer;font-weight:600;display:flex;justify-content:space-between;gap:12px}
.md-ptm-actions,.ptm-tools,.ptm-heading,.ptm-row,.ptm-footer{display:flex;align-items:center;gap:8px}
.md-ptm-actions{margin-top:10px}.md-ptm #md-ptm-status{margin-top:8px;font-size:12px}
.mutation-relaxation{display:grid;grid-template-columns:minmax(0,1fr) 84px;align-items:center;gap:8px;margin:14px 0;font-size:12px}.mutation-relaxation .field{margin:0}.mutation-relaxation small{grid-column:1/-1;overflow-wrap:anywhere}.mutation-relaxation .check-label{font-size:12px;min-width:0}
#md-ptm-summary{font-size:12px;overflow-wrap:anywhere}#md-ptm-summary p{margin:8px 0 0}
#md-mutation-summary{font-size:12px;overflow-wrap:anywhere}#md-mutation-summary p{margin:8px 0 0}.ptm-mode{display:flex;gap:6px;margin-bottom:12px}.ptm-mode button{flex:1;min-width:0;font-size:12px}.ptm-mode button[aria-pressed=true]{background:#21433e;color:#a2ead9}
.ptm-dialog{width:min(1240px,calc(100vw - 24px));max-width:none;height:min(880px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);padding:0;overflow:hidden;border-radius:8px}
.ptm-dialog[open]{display:flex;flex-direction:column}.ptm-heading{padding:14px 18px;border-bottom:1px solid var(--border);justify-content:space-between;flex:none}.ptm-heading h2{font-size:18px;margin:0}.ptm-heading small{font-size:12px}
.ptm-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;min-height:0;flex:1}.ptm-scene-column{display:flex;flex-direction:column;min-width:0;min-height:0;background:#111617}
.ptm-tools{padding:10px;flex:none;justify-content:space-between;flex-wrap:wrap}.ptm-tools .segmented{width:auto}.ptm-tools .segmented button{font-size:12px;padding:7px 10px}.ptm-tools button[aria-pressed=true]{background:#21433e;color:#a2ead9}
.ptm-context-tools{display:flex;align-items:center;gap:12px;padding:0 12px 10px;flex-wrap:wrap;flex:none;font-size:12px}.ptm-context-tools .field{margin:0;font-size:11px;gap:3px}.ptm-context-tools .check-label{font-size:12px;white-space:nowrap}.ptm-engine-field{width:100px}.ptm-radius-field{width:72px}.ptm-context-tools select,.ptm-context-tools input[type=number]{height:32px;min-height:32px;padding:4px 8px;font-size:12px;width:100%}
.ptm-scene{position:relative;flex:1;min-height:260px;width:100%}.ptm-scene-status{position:absolute;left:12px;top:12px;z-index:1;pointer-events:none;color:#d8e9e5;font-size:12px;max-width:calc(100% - 24px);overflow-wrap:anywhere}.ptm-scene canvas{display:block}
.ptm-settings{padding:14px;min-width:0;overflow:auto;border-left:1px solid var(--border)}.ptm-settings .field{margin-bottom:10px}.ptm-settings .form-row{grid-template-columns:1fr 1fr}.ptm-residues{height:180px;overflow:auto;border:1px solid var(--border);margin:8px 0 12px}
.ptm-residue{display:block;text-align:left;padding:8px 10px;width:100%;border:0;border-bottom:1px solid var(--border);background:transparent;color:inherit;font-size:12px;border-radius:0;min-height:36px}.ptm-residue[aria-pressed=true]{background:#21433e;color:#a2ead9}.ptm-residue small{display:block;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}.ptm-residue:focus-visible{outline:2px solid #53cddd;outline-offset:-2px}
.ptm-target{font-size:13px;margin-bottom:10px;overflow-wrap:anywhere}.ptm-row{align-items:flex-start;padding:10px 0;border-bottom:1px solid var(--border)}.ptm-row>div{flex:1;min-width:0;font-size:12px;overflow-wrap:anywhere}.ptm-row strong{display:block;font-size:13px;margin-bottom:4px}.ptm-row small{display:block;color:var(--muted);margin-top:3px}.ptm-row .icon-button{flex:none}.ptm-selection-heading{display:flex;justify-content:space-between;align-items:center;margin-top:18px;font-size:13px}
.ptm-settings .form-error{overflow-wrap:anywhere}.ptm-footer{justify-content:space-between;padding:12px 18px;flex:none;border-top:1px solid var(--border);flex-wrap:wrap}.ptm-footer .muted{font-size:12px;flex:1;min-width:180px;overflow-wrap:anywhere}.ptm-downloads{display:flex;gap:6px}.ptm-state{font-size:12px;margin:10px 0;overflow-wrap:anywhere}.ptm-review{color:#e7ad56}.ptm-settings input,.ptm-settings select{max-width:100%;min-width:0}
@media(max-width:760px){.ptm-dialog{height:calc(100dvh - 12px);width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}.ptm-layout{display:block;overflow:auto}.ptm-scene-column{height:auto}.ptm-scene{flex:none;height:240px;min-height:240px}.ptm-settings{border-left:0;border-top:1px solid var(--border);overflow:visible}.ptm-heading,.ptm-footer{padding:10px 12px}.ptm-residues{height:140px}.ptm-footer .muted{flex-basis:100%}.ptm-heading h2{font-size:16px}}
