.molecular-panel { padding: clamp(16px,2.4vw,32px); color: #264a3f; min-width: 0; }
.mol-heading h2 { margin: 0; color: #173f36; font: 400 clamp(25px,3vw,36px)/1.15 Georgia,serif; letter-spacing: -.033em; }
#mol-context { margin: 5px 0 15px; color: #586e60; font: 13px/1.5 Inter,"Segoe UI",sans-serif; }
.mol-pickers { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 9px 16px; }
.molecular-panel label { color: #3e5c4d; font: 600 12px/1.45 Inter,"Segoe UI",sans-serif; min-width: 0; }
.molecular-panel select { display: block; min-width: 0; width: 100%; min-height: 35px; margin-top: 3px; border: 1px solid #c5d4c7; border-radius: 4px; background: #fff; color: #294d3e; padding: 6px; font: 13px/1.35 Inter,"Segoe UI",sans-serif; }
.mol-pickers label { max-width: 100%; flex: 0 1 auto; }
.mol-pickers select { max-width: 100%; width: min(100%,32rem); }
.mol-state, .mol-muted, #mol-mapping, #mol-save-status { color: #516b5c; font: 12px/1.65 Inter,"Segoe UI",sans-serif; overflow-wrap: anywhere; }
.mol-state { margin: 10px 0 0; }
.mol-state:empty, #mol-save-status:empty { display:none; }
.mol-views { display: flex; align-items: stretch; gap: clamp(8px,2vw,26px); border-bottom: 1px solid #ccdacd; margin: 19px 0 15px; }
.mol-views button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: #547060; background: none; padding: 7px 1px 9px; font: 600 13px/1.35 Inter,"Segoe UI",sans-serif; }
.mol-views button[aria-selected=true] { border-bottom-color: #15624e; color: #174d3f; }
.mol-view h3, .mol-reports h3 { color: #274f3d; font: 400 clamp(20px,1.8vw,25px)/1.25 Georgia,serif; margin: 0; letter-spacing: -.02em; }
.mol-view h4,.mol-plot figcaption { margin: 0 0 6px; color: #385747; font: 650 13px/1.45 Inter,"Segoe UI",sans-serif; }
.mol-view > .mol-muted, #mol-mapping { margin: 6px 0 12px; }
.mol-view .study-citation-host > span { display: inline-flex; gap: 3px; }
.mol-binding-grid,.mol-sensitivity-grid,.mol-chart-grid { display: grid; gap: clamp(10px,2vw,20px); grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); align-items: start; }
.mol-structure,.mol-plot,.mol-facts { min-width: 0; border: 1px solid #d4e0d2; border-radius: 6px; }
.mol-structure { background: #edf3e9; }
.mol-pose-tools,.mol-figure-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; padding: 10px 12px; }
.mol-pose-tools { border-bottom: 1px solid #d5dfd0; }
.mol-pose-tools label { display: flex; align-items: center; gap: 5px; }
.mol-pose-tools select { width: auto; min-height: 28px; margin: 0; padding: 3px; font-size: 12px; }
.mol-check input,.molecular-panel input[type=range] { accent-color: #276047; }
#mol-pose { width: 100%; height: clamp(205px,24vw,320px); display: block; cursor: grab; touch-action: none; }
#mol-pose:active { cursor: grabbing; }
.mol-bond { stroke-linecap: round; }
.mol-observed-bond { stroke: #236d59; stroke-width: 4.2; }
.mol-predicted-bond { stroke: #a35526; stroke-width: 2.1; stroke-dasharray: 4 2; }
.mol-observed-atom { fill: #e8f4e9; stroke: #206451; stroke-width: 2.4; }
.mol-predicted-atom { fill: #f7cf9a; stroke: #a45427; stroke-width: 1.3; }
.mol-pocket-dot { fill: #9cac9e; stroke: #e6ede3; stroke-width: 1.2; }
.mol-pocket-label { fill: #4b6356; stroke: #edf3e9; stroke-width: 3px; paint-order: stroke; font: 9px ui-monospace,monospace; }
.mol-figure-foot { border-top: 1px solid #d5dfd0; }
.mol-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 12px; color: #405c4c; font: 11px/1.5 Inter,"Segoe UI",sans-serif; }
.mol-legend span::before { content: ''; display: inline-block; width: 16px; border-top: 2px solid #236d59; margin-right: 4px; vertical-align: middle; }
.mol-legend .mol-predicted::before { border-top: 2px dashed #a45427; }
.mol-legend .mol-baseline::before { border-top: 2px dotted #78838a; }
.mol-rotate { display: inline-flex; align-items: center; gap: 4px; }
.mol-rotate button { min-height: 28px; min-width: 28px; padding: 2px 6px; border: 1px solid #bfcebe; border-radius: 4px; background: #fff; color: #355a45; font: 12px Inter,"Segoe UI",sans-serif; }
.mol-facts { padding: 14px; background: #f9faf6; }
.molecular-panel dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 9px 0; color: #46604f; font: 12px/1.5 Inter,"Segoe UI",sans-serif; overflow-wrap: anywhere; }
.molecular-panel dt { font-weight: 650; }
.molecular-panel dd { margin: 0; }
.molecular-panel p:last-child { margin-bottom: 0; }
.mol-extra { margin: 13px 0 0; padding-top: 5px; border-top: 1px solid #dbe4d9; color: #3e5e49; font: 12px/1.65 Inter,"Segoe UI",sans-serif; }
.mol-extra summary { width: fit-content; cursor: pointer; padding: 5px 0; }
.mol-extra > div { max-height: min(48vh,375px); overflow: auto; }
#mol-study-control { margin: 8px 0 14px; }
.mol-chart-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.mol-plot { margin: 0; padding: 12px 10px; background: #f7f9f3; }
.mol-plot figcaption { margin-bottom: 0; }
.mol-plot > svg { display: block; width: 100%; height: auto; min-height: 125px; }
.mol-axis { display: block; margin: 5px 0 0; color: #546c5b; font: 11px/1.4 Inter,"Segoe UI",sans-serif; overflow-wrap: anywhere; }
.mol-plot text { fill: #506454; font: 11px ui-monospace, monospace; }
.mol-plot p.mol-legend { margin: 5px 0 0; }
.mol-gridline { stroke: #dce5d8; stroke-width: 1; }
.mol-line { stroke-width: 1.8; }
.mol-reference-line,.mol-reference-dot { stroke: #a45427; }
.mol-reference-line { stroke-dasharray: 6 4; }
.mol-baseline-line,.mol-baseline-dot { stroke: #75808b; }
.mol-baseline-line { stroke-dasharray: 2 4; }
.mol-dot { stroke-width: 1.6; fill: #f7f9f3; }
.mol-scenario-line,.mol-scenario-dot,.mol-measured-dot { stroke: #246950; }
.mol-scenario-dot,.mol-measured-dot { fill: #246950; }
.mol-select-label { display: block; width: fit-content; max-width: 100%; margin-top: 12px; }
.mol-sensitivity-grid { grid-template-columns: minmax(0,.8fr) minmax(0,1.3fr); }
.mol-controls { min-width: 0; background: #f7f9f4; border-radius: 4px; padding: 14px; }
.mol-controls > label,.mol-controls > input { display: block; width: 100%; }
.mol-controls > input { margin: 8px 0 0; }
#mol-coupling-value { float: right; color: #204f3c; font-variant-numeric: tabular-nums; }
.mol-scale { display: flex; justify-content: space-between; color: #5b6f5c; font: 10px ui-monospace,monospace; }
#mol-zero { margin-top: 8px; }
.mol-reports { margin-top: 20px; padding-top: 14px; border-top: 1px solid #cbd9ca; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.mol-reports h3 { font-size: 19px; }
.mol-reports .mol-muted { margin: 3px 0; }
#mol-save { min-height: 34px; padding: 7px 13px; font-size: 12px; }
#mol-save-status { width: 100%; margin: 0; }
#mol-downloads { display: flex; flex-wrap: wrap; gap: 5px; }
#mol-downloads:empty { display:none; }
#mol-error { margin: 10px 0; }
@media (max-width: 770px) {
  .mol-binding-grid,.mol-sensitivity-grid,.mol-chart-grid { grid-template-columns: 1fr; }
  .mol-facts { padding: 10px 12px; }
  .ref-toolbar .ref-tabs { flex-wrap: wrap; justify-content: flex-start; row-gap: 0; }
}
@media (max-width: 480px) {
  .mol-pickers > label { width: 100%; }
  .molecular-panel { padding: 14px; }
  .mol-views { gap: 12px; }
  .mol-views button { font-size: 12px; }
  .mol-pose-tools,.mol-figure-foot { padding: 7px; }
  #mol-pose { height: 190px; }
}
#mol-equations { display: inline-block; margin: 0 0 12px; color: #235c46; font: 12px/1.5 Inter,"Segoe UI",sans-serif; text-underline-offset: 2px; }
.molecular-panel .study-bubble { max-height: min(45vh,340px); overflow-y: auto; }
.mol-source-entry { margin-top: 8px; padding-top: 8px; border-top: 1px solid #d4ded2; }
.mol-replay { margin: 5px 0 11px; }
.mol-replay .mol-muted { margin: 5px 0; }
#mol-replay-command { display: block; width: fit-content; max-width: 100%; overflow-wrap: anywhere; padding: 4px 6px; background: #eef3eb; color: #294d3d; }

.mol-selectors { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px 14px; }
.mol-selectors label,.mol-manual-fields label,.mol-search-label { display: block; }
.mol-search, .mol-manual-fields input { display:block; box-sizing:border-box; width:100%; min-height:36px; border:1px solid #c5d4c7; border-radius:4px; padding:6px 9px; color:#294d3e; background:white; font:13px/1.4 Inter,"Segoe UI",sans-serif; }
.mol-search { max-width:38rem; margin:3px 0 12px; }
.mol-matches { border:1px solid #cad8c9; border-radius:5px; display:flex; flex-wrap:wrap; gap:10px 18px; max-height:265px; overflow:auto; padding:10px 12px; margin:-5px 0 12px; }
.mol-matches > div { flex:1 1 155px; min-width:0; }
.mol-matches h4 { font:650 12px/1.5 Inter,"Segoe UI",sans-serif; margin:0 0 5px; }
.mol-matches button { display:block; padding:5px 3px; border:0; background:transparent; color:#24563e; text-align:left; font:13px/1.35 Inter,"Segoe UI",sans-serif; text-decoration:underline; text-underline-offset:2px; overflow-wrap:anywhere; }
.mol-matches small, .mol-matches p { font:12px/1.5 Inter,"Segoe UI",sans-serif; color:#496657; }
#mol-coverage { margin:6px 0 0; }
.mol-evidence { border-left:3px solid #9db3a2; background:#f3f6f0; padding:9px 13px; margin:10px 0 12px; }
.mol-evidence h4 { margin:0; }
.mol-evidence[data-status=measured_affinity] { border-color:#36795a; }
.mol-evidence[data-status=measured_inactive] { border-color:#9b6740; }
#mol-affinity-note { margin:4px 0; }
#mol-affinity-values .mol-extra { margin:4px 0 0; border:0; padding:0; }
#mol-affinity-values ol { margin:3px 0 0; padding-left:20px; max-height:260px; overflow:auto; }
#mol-affinity-values li { padding:4px 0; }
#mol-affinity-values a { color:#285d43; }
#mol-unmapped > h4 { margin:4px 0; }
#mol-unmapped > p { margin:4px 0 9px; }
.mol-manual-fields { display:flex; align-items:flex-end; gap:10px; flex-wrap:wrap; }
.mol-manual-fields label:first-child { max-width:100%; flex:0 1 27rem; }
.mol-manual-fields label:nth-child(2) { flex:0 1 10rem; }
.mol-manual-fields input { margin-top:3px; }
.mol-manual-fields button { min-height:34px; }
.mol-data-table { max-height:25rem; overflow:auto; }
.mol-data-table table { width:100%; }
.molecular-panel [hidden] { display:none !important; }
@media (max-width:770px) { .mol-selectors { grid-template-columns:repeat(2,minmax(0,1fr)); } .mol-selectors > :first-child { grid-column:1 / -1; } }
@media (max-width:520px) { .mol-selectors { grid-template-columns:1fr; } .mol-manual-fields label:first-child { flex-basis:100%; } }
#mol-taxonomy { margin-top:7px; }
#mol-taxonomy h4 { margin:4px 0 0; font:650 12px/1.5 Inter,"Segoe UI",sans-serif; }
#mol-taxonomy > div { max-height:none; overflow:visible; }
#mol-taxonomy-data { max-height:18rem; overflow:auto; }
#mol-taxonomy-data dl { margin:6px 0 10px; grid-template-columns:minmax(70px,max-content) minmax(0,1fr); }
#mol-apply { width:auto; min-height:35px; margin:0; padding:7px 13px; font-size:12px; }
#mol-clear-input { min-height:35px; border:0; padding:5px 3px; background:transparent; color:#285d43; text-decoration:underline; text-underline-offset:2px; font:600 12px/1.4 Inter,"Segoe UI",sans-serif; }
