.sp-panel {
  --sp-border:#d8e1db;
  --sp-muted:#51665c;
  min-width:0;
  color:#18352d;
  background:#fff;
}
.sp-panel button:focus-visible,.sp-panel select:focus-visible,.sp-panel summary:focus-visible {
  outline:3px solid #b87418;outline-offset:2px;
}
.sp-head,.sp-line,.sp-seq-controls,.sp-seq-bottom,.sp-chain-title,.sp-reflinks,.sp-paging,.sp-chain-meta,.sp-seq-legend {
  display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;
}
.sp-head {
  padding:13px clamp(13px,2vw,23px);
  justify-content:space-between;border-bottom:1px solid var(--sp-border);
}
.sp-heading,.sp-ligand-title{margin:0;line-height:1.25;overflow-wrap:anywhere;}
.sp-heading{font-size:1.24rem;font-weight:650;letter-spacing:-.025em;}
.sp-gene,.sp-position,.sp-code,.sp-residue,.sp-readout,.sp-paging span{font-family:var(--mono,ui-monospace,monospace);}
.sp-gene{font-size:.87rem;color:var(--sp-muted);}
.sp-source {font-size:.86rem;font-weight:580;text-decoration:underline;text-underline-offset:3px;}
.sp-stage {min-height:290px;min-width:0;position:relative;background:#fafcfb;}
.sp-stage-loading {display:grid;place-items:center;min-height:285px;color:var(--sp-muted);font-size:.92rem;margin:0;}
.sp-stage>.sp-source{display:block;text-align:center;padding:0 0 16px;}
.sp-warning,.sp-note,.sp-meta,.sp-chain-meta,.sp-seq-legend,.sp-readout,.sp-entry-picker,.sp-chain-select{font-size:.87rem;line-height:1.55;color:var(--sp-muted);}
.sp-warning:not([hidden]){padding:8px 18px;background:#fff8e9;color:#74481c;}
.sp-detail{border-top:1px solid var(--sp-border);}
.sp-subtabs{display:flex;gap:4px;padding-inline:clamp(10px,1.7vw,20px);border-bottom:1px solid var(--sp-border);}
.sp-tab{border:0;border-bottom:2px solid transparent;background:transparent;padding:13px 9px 10px;font-weight:590;font-size:.91rem;color:var(--sp-muted);}
.sp-tab[aria-pressed="true"]{color:#145a42;border-bottom-color:#18714f;}
.sp-subbody,.sp-ligand-first{padding:16px clamp(13px,2vw,23px) 18px;min-width:0;}
.sp-ligand-first{padding-block:10px 14px;border-bottom:1px solid var(--sp-border);}
.sp-ligand-first .sp-ligand-title{display:none;}
.sp-ligand-first .sp-line:empty{display:none;}
.sp-seq-controls{align-items:flex-end;justify-content:space-between;margin-bottom:12px;}
.sp-entry-picker,.sp-chain-select{display:flex;align-items:center;gap:8px;min-width:0;font-weight:550;}
.sp-chain-select{flex:1 1 230px;}
.sp-select {flex:1 1 auto;min-width:0;max-width:100%;border:1px solid #c8d5cd;border-radius:6px;color:#183c2e;background:#fff;padding:5px 25px 5px 8px;font:inherit;}
.sp-button,.sp-text-button {font-size:.85rem;font-weight:560;line-height:1.5;}
.sp-button {border:1px solid #ccd9d0;border-radius:5px;padding:4px 10px;background:#f9fbf8; color:#1e583f;}
.sp-button:disabled {opacity:.45;}
.sp-button:hover:enabled{background:#e8f3e9;}
.sp-text-button{color:#176449;padding:3px 0;white-space:nowrap;}
.sp-text-button:hover,.sp-source:hover{text-decoration:underline;}
.sp-copyhelper {position:fixed;top:0;left:-9999px;}
.sp-badge {--sp-role:#358566;color:#1e4336;font-size:.79rem;border:1px solid #cbd8cf;border-left:4px solid var(--sp-role);border-radius:4px;padding:1px 7px;background:#f8fbf8;white-space:nowrap;}
.sp-chain-title {font-size:.96rem;font-weight:590;overflow-wrap:anywhere;}
.sp-chain-meta,.sp-reflinks {margin-top:6px;}
.sp-seq-legend{gap:7px 13px;margin-top:12px;font-size:.79rem;}
.sp-swatch-note{display:inline-flex;align-items:center;gap:5px;}
.sp-swatch-note::before{content:"";width:11px;height:11px;display:inline-block;border-radius:2px;background:#dbeae8;border:1px solid #ccdedc;}
.sp-unobserved::before{background:#fff;border:1px dashed #9caaa1;}
.sp-seq-grid {margin-top:8px;border:1px solid var(--sp-border);border-radius:7px;padding:5px clamp(5px,1vw,10px) 11px;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:2px 12px;}
.sp-ten {padding-top:5px; min-width:0;}
.sp-position{display:block;color:#546b60;font-size:.75rem;line-height:1.1;margin:1px 0 4px 2px;}
.sp-letters{display:flex;max-width:224px;gap:1px;}
.sp-residue{flex:1 1 0;max-width:23px;min-width:0;line-height:1.55;font-size:.84rem;color:#345e4c;border-radius:2px;padding:0;border:1px solid transparent;background:#eef3ef;}
.sp-observed{background:color-mix(in srgb,var(--sp-role) 16%,white);color:#1c3941;}
.sp-missing{background:white;color:#77827b;border:1px dashed #d3dbd5;}
.sp-residue:hover,.sp-residue[aria-pressed="true"]{background:#174d3a;color:#fff;}
.sp-seq-bottom{justify-content:space-between;align-items:flex-start;margin-top:10px;}
.sp-readout{font-family:inherit;font-size:.81rem;}
.sp-paging {justify-content:flex-end;gap:7px;margin-left:auto;}
.sp-paging span{font-size:.78rem;}
.sp-ligand + .sp-ligand {margin-top:15px;border-top:1px solid var(--sp-border);padding-top:14px;}
.sp-ligand-title {font-size:1.03rem;}
.sp-note,.sp-meta{margin:6px 0;}
.sp-molvalue{margin-top:10px;}
.sp-molvalue .sp-line{justify-content:space-between;}
.sp-kicker{font-size:.84rem;color:#355648;}
.sp-code{display:block;overflow-wrap:anywhere;word-break:break-all;white-space:pre-wrap;background:#f3f7f2;border:1px solid #dce6db;border-radius:6px;font-size:.87rem;line-height:1.52;padding:8px 10px;color:#19392d;margin-top:4px;user-select:all;}
.sp-raw {margin-top:8px;}
.sp-raw summary {cursor:pointer;color:#39664c;font-size:.83rem;}
@media(max-width:650px) {
  .sp-head{gap:8px;}
  .sp-subbody{padding-inline:12px;}
  .sp-seq-grid{grid-template-columns:repeat(auto-fit,minmax(142px,1fr));gap:2px 6px;}
  .sp-stage{min-height:245px;}
  .sp-stage-loading{min-height:241px;}
}
.sp-fusion{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px;}
.sp-fusion .sp-badge{white-space:normal;}
.sp-other-components{margin-top:15px;padding-top:10px;border-top:1px solid var(--sp-border);}
.sp-jump{display:inline-flex;align-items:center;gap:3px;margin-left:3px;}
.sp-jump input{width:65px;color:var(--ink);border:1px solid #cbd8cd;border-radius:5px;font:inherit;padding:4px 5px;}
.sp-interfaces:not(:empty){padding:11px clamp(13px,2vw,23px);border-top:1px solid var(--sp-border);color:#2d5140;font-size:.88rem;}
.sp-interfaces summary{cursor:pointer;font-weight:575;}
.sp-topology {padding:10px clamp(13px,2vw,23px);border-bottom:1px solid var(--sp-border);}
.sp-topology .sp-note {margin:0;}
.sp-color-line,.sp-color-choices,.sp-tm-key{display:flex;align-items:center;flex-wrap:wrap;gap:7px 11px}
.sp-color-line{font-size:.87rem}.sp-color-line>.sp-source{margin-left:auto}
.sp-color-choices{gap:0;background:#f1f5f2;border:1px solid #d4dfd7;border-radius:6px;padding:2px}
.sp-color-choice{background:none;border:0;border-radius:4px;padding:3px 8px;color:#456251;font:inherit;cursor:pointer}
.sp-color-choice[aria-pressed=true]{background:white;color:#164832;box-shadow:0 1px 3px #28483624;font-weight:650}
.sp-tm-key:not(:empty){padding-top:7px;}
.sp-key-item{display:inline-flex;align-items:center;gap:4px;font:600 .79rem var(--mono,monospace);color:#365344}
.sp-key-item::before{content:'';display:inline-block;height:.69rem;width:.69rem;border-radius:3px;background:var(--tm-color)}
.sp-other-key{margin-top:5px;font-size:.78rem;color:#536a5d}
.sp-other-key summary{cursor:pointer}
.sp-residue.sp-segment-residue{background:color-mix(in srgb,var(--tm-color) 22%,white);border-bottom:3px solid var(--tm-color);color:#203a32;}
.sp-residue.sp-segment-residue.sp-missing{background:white;border:1px dashed color-mix(in srgb,var(--tm-color) 65%,white);border-bottom:3px solid var(--tm-color);color:#596a60;}
.sp-residue.sp-segment-residue:hover,.sp-residue.sp-segment-residue[aria-pressed=true]{background:color-mix(in srgb,var(--tm-color) 40%,white);color:#142a23;outline:2px solid #173e30}
.sp-neighbors:not(:empty){border-top:1px solid var(--sp-border);padding:10px clamp(13px,2vw,23px)}
.sp-neighbor-link{font:inherit;font-size:.85rem;font-weight:600;color:#12563d;border:1px solid #c2d4c8;border-radius:5px;padding:4px 10px;background:#f2f7f3;margin-top:8px}
