:is(.nb-prototype,.stored-structure-viewer) .linked-input{background:var(--bg);min-width:0;color:var(--text)}:is(.nb-prototype,.stored-structure-viewer) .linked-toolbar{border-bottom:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:8px;padding:12px 16px;display:flex}:is(.nb-prototype,.stored-structure-viewer) .linked-toolbar>div{background:var(--grey);--muted-text:var(--text-secondary);border-radius:6px;flex-wrap:wrap;gap:2px;padding:3px;display:flex}:is(.nb-prototype,.stored-structure-viewer) .linked-display{border-bottom:1px solid var(--line);flex-wrap:wrap;align-items:flex-end;gap:8px 12px;padding:10px 16px;display:flex}:is(.nb-prototype,.stored-structure-viewer) .linked-display>label{min-width:0;font-size:var(--font-helper);color:var(--text-secondary);flex-direction:column;flex:150px;gap:4px;display:flex}:is(.nb-prototype,.stored-structure-viewer) .linked-display select{border:1px solid var(--line);background:var(--surface,#fff);width:100%;min-height:44px;color:var(--text);font-size:var(--font-label);border-radius:6px;padding:0 10px}:is(.nb-prototype,.stored-structure-viewer) .linked-display fieldset{border:0;flex-wrap:wrap;flex:100%;gap:4px 12px;min-width:0;margin:0;padding:0;display:flex}:is(.nb-prototype,.stored-structure-viewer) .linked-display legend{font-size:var(--font-helper);color:var(--text-secondary);margin-bottom:4px;padding:0}:is(.nb-prototype,.stored-structure-viewer) .linked-chain-toggle{min-height:44px;font-size:var(--font-label);align-items:center;gap:6px;display:inline-flex}:is(.nb-prototype,.stored-structure-viewer) .linked-chain-toggle input{width:18px;height:18px}:is(.nb-prototype,.stored-structure-viewer) .linked-input button{border:1px solid var(--line);background:var(--bg);color:inherit;cursor:pointer;font-size:var(--font-helper);min-height:var(--control-height-sm);border-radius:var(--radius-sm);padding:6px 10px}:is(.nb-prototype,.stored-structure-viewer) .linked-input button[aria-pressed=true]{background:var(--blue-soft);border-color:var(--blue);color:var(--blue);--muted-text:var(--text-secondary)}:is(.nb-prototype,.stored-structure-viewer) .linked-input button:disabled{opacity:.45;cursor:default}:is(.nb-prototype,.stored-structure-viewer) .linked-input button:focus-visible,:is(.nb-prototype,.stored-structure-viewer) .linked-input input:focus-visible{outline:2px solid var(--blue);outline-offset:2px}:is(.nb-prototype,.stored-structure-viewer) .linked-canvas{background:var(--bg);height:340px;position:relative;overflow:hidden}:is(.nb-prototype,.stored-structure-viewer) .linked-canvas-error{height:180px}:is(.nb-prototype,.stored-structure-viewer) .linked-canvas canvas{touch-action:none;width:100%;height:100%;display:block}:is(.nb-prototype,.stored-structure-viewer) .linked-canvas>p,:is(.nb-prototype,.stored-structure-viewer) .linked-canvas>div{background:var(--surface-muted);font-size:var(--font-helper);text-align:center;flex-direction:column;justify-content:center;align-items:center;padding:16px;display:flex;position:absolute;inset:0}:is(.nb-prototype,.stored-structure-viewer) .linked-range{padding:16px 16px 0}:is(.nb-prototype,.stored-structure-viewer) .linked-range label{font-weight:600;font-size:var(--font-label);margin:0 0 6px;display:block}:is(.nb-prototype,.stored-structure-viewer) .linked-range>div{flex-wrap:wrap;gap:8px;display:flex}:is(.nb-prototype,.stored-structure-viewer) .linked-range input{border:1px solid var(--line);background:var(--bg);width:auto;min-width:0;font:var(--font-body) var(--font-mono);height:var(--control-height);border-color:var(--control-line);border-radius:var(--radius-sm);flex:180px;padding:8px 12px}:is(.nb-prototype,.stored-structure-viewer) .linked-range p{color:var(--muted-text);font-size:var(--font-helper);margin:8px 0}:is(.nb-prototype,.stored-structure-viewer) .linked-range p[role=alert]{color:var(--danger)}:is(.nb-prototype,.stored-structure-viewer) .linked-residues{-webkit-user-select:none;user-select:none;grid-template-columns:repeat(auto-fill,minmax(48px,1fr));gap:4px;max-height:350px;padding:16px;display:grid;overflow-y:auto}:is(.nb-prototype,.stored-structure-viewer) .linked-residues button{touch-action:pan-y;min-width:0;min-height:48px;font:600 var(--font-label) var(--font-mono);border-radius:4px;flex-direction:column;justify-content:center;align-items:center;padding:4px 0;display:flex}:is(.nb-prototype,.stored-structure-viewer) .linked-residues button small{font:var(--font-caption) var(--font-mono);color:var(--muted-text);overflow-wrap:anywhere;max-width:100%;line-height:1.4;overflow:visible}:is(.nb-prototype,.stored-structure-viewer) .linked-residues button.selected{background:var(--blue);color:#fff;border-color:var(--blue)}:is(.nb-prototype,.stored-structure-viewer) .linked-residues button.selected small{color:#fff}:is(.nb-prototype,.stored-structure-viewer) .linked-pagination{font-size:var(--font-caption);flex-wrap:wrap;align-items:center;gap:8px;padding:0 16px 12px;display:flex}:is(.nb-prototype,.stored-structure-viewer) .linked-pagination>span{color:var(--muted-text);flex:1}:is(.nb-prototype,.stored-structure-viewer) .linked-caption{color:var(--muted-text);line-height:1.6;font-size:var(--font-helper);margin:0;padding:8px 16px 12px}:is(.nb-prototype,.stored-structure-viewer) .linked-mobile-tabs{display:none}:is(.nb-prototype,.stored-structure-viewer) .structure-import{color:var(--muted-text);font-size:var(--font-helper);flex-wrap:wrap;align-items:center;gap:10px;padding:12px 0;display:flex}:is(.nb-prototype,.stored-structure-viewer) .structure-import>span{overflow-wrap:anywhere;min-width:0}:is(.nb-prototype,.stored-structure-viewer) .structure-import input{display:none}@media (max-width:760px){:is(.nb-prototype,.stored-structure-viewer) .linked-mobile-tabs{border-bottom:1px solid var(--line);gap:6px;padding:10px 12px;display:flex}:is(.nb-prototype,.stored-structure-viewer) .linked-tab-sequence .linked-structure,:is(.nb-prototype,.stored-structure-viewer) .linked-tab-structure .linked-sequence{display:none}:is(.nb-prototype,.stored-structure-viewer) .linked-canvas{height:300px}:is(.nb-prototype,.stored-structure-viewer) .linked-canvas-error{height:160px}:is(.nb-prototype,.stored-structure-viewer) .linked-residues{grid-template-columns:repeat(auto-fill,minmax(48px,1fr));gap:4px;padding:10px}:is(.nb-prototype,.stored-structure-viewer) .linked-toolbar{padding:10px}:is(.nb-prototype,.stored-structure-viewer) .linked-input button{font-size:var(--font-helper);min-height:var(--control-height-sm);border-radius:var(--radius-sm);padding:5px 7px}:is(.nb-prototype,.stored-structure-viewer) .linked-residues button{min-height:48px;font:600 var(--font-label) var(--font-mono);padding:4px 0}:is(.nb-prototype,.stored-structure-viewer) .linked-range{padding:12px 10px 0}}
